mogaal / helm-charts Goto Github PK
View Code? Open in Web Editor NEWThis is mogaal's helm repository
License: Other
This is mogaal's helm repository
License: Other
Please add an imagePullSecrets to the deployment manifest and in the values file.
serviceAccountName: {{ include "prometheus-yace-exporter.fullname" . }}
should be serviceAccountName: {{ include "prometheus-yace-exporter.serviceAccountName" . }}
Hey @mogaal, can you please provide a LICENSE file?
there are pending PRs waiting for several months with no response
I have enabled ServiceMonitor but the manifest is not deployed.
If serviceMonitor.enabled: true
, the ServiceMonitor manifest should be available.
Specifically, prepare the following manifest and run the command.
# Default values for prometheus-yace-exporter.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
image:
repository: quay.io/invisionag/yet-another-cloudwatch-exporter
tag: v0.28.0-alpha
pullPolicy: IfNotPresent
nameOverride: ""
fullnameOverride: ""
service:
type: ClusterIP
port: 80
annotations: {}
labels: {}
ingress:
enabled: false
annotations:
{}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths: []
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
resources:
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
limits:
cpu: 500m
memory: 2Gi
requests:
cpu: 500m
memory: 2Gi
nodeSelector: {}
tolerations: []
affinity: {}
podAnnoatations: {}
podLabels: {}
extraArgs: []
# decoupled-scraping: false
# scraping-interval: 300
aws:
role:
# The name of a pre-created secret in which AWS credentials are stored. When
# set, aws_access_key_id is assumed to be in a field called access_key,
# aws_secret_access_key is assumed to be in a field called secret_key, and the
# session token, if it exists, is assumed to be in a field called
# security_token
secret:
name:
includesSessionToken: false
# Note: Do not specify the aws_access_key_id and aws_secret_access_key if you specified role or secret.name before
aws_access_key_id:
aws_secret_access_key:
serviceAccount:
# Specifies whether a ServiceAccount should be created
create: true
annotations: {}
labels: {}
# The name of the ServiceAccount to use.
# If not set and create is true, a name is generated using the fullname template
name: prometheus-yace-exporter
rbac:
# Specifies whether RBAC resources should be created
create: true
serviceMonitor:
# When set true then use a ServiceMonitor to configure scraping
enabled: true
# Set the namespace the ServiceMonitor should be deployed
# namespace: monitoring
# Set how frequently Prometheus should scrape
interval: 60s
# Set targetPort for serviceMonitor
port: http
# Set path to cloudwatch-exporter telemtery-path
# telemetryPath: /metrics
# Set labels for the ServiceMonitor, use this to define your scrape label for Prometheus Operator
labels:
prometheus: agent
# Set timeout for scrape
timeout: 30s
config: |-
discovery:
jobs:
- type: AWS/ElastiCache
regions:
- ap-northeast-1
period: 600
length: 300
enableMetricData: true
metrics:
- name: ActiveDefragHits
statistics: [Average, Sum]
$ kubectl create namespace monitoring >/dev/null 2>&1
$ helm repo add prometheus-yace-exporter https://mogaal.github.io/helm-charts/ >/dev/null 2>&1
$ helm repo update >/dev/null 2>&1
$ helm upgrade prometheus-yace-exporter prometheus-yace-exporter/prometheus-yace-exporter \
--install \
--namespace monitoring \
-f ./values.yaml \
--dry-run=client
$ helm template prometheus-yace-exporter prometheus-yace-exporter/prometheus-yace-exporter -f ./values.yaml --dry-run=client
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- servicemonitor.yaml
helmCharts:
- name: prometheus-yace-exporter
repo: https://mogaal.github.io/helm-charts/
releaseName: prometheus-yace-exporter
version: 0.5.0
valuesFile: values.yaml
namespace: monitoring
includeCRDs: true
$ kustomize build ./ --enable-helm
The issue stems from the incorrect evaluation of the "APIVersions" set in the ServiceMonitor Chart. In my environment, monitoring.coreos.com/v1 exists but is falsely evaluated as false. As a result, this ServiceMonitor manifest is not being deployed.
You should remove the element:
and ( .Capabilities.APIVersions.Has "monitoring.coreos.com/v1" )
Would you mind adding a version tag to latest (and subsequent) releases? This would make it easier for us to use.
Thanks.
Hello, the configuration for the service monitor that the chart uses does not work properly. The servicemonitor is using targetPort: 80
, which looks for a port exposed on a deployment instead of port, which uses a named port on a service. The targetPort needs to be updated to 5000 or swapped with port: http
for the servicemonitor to work.
I'd be willing to make the change if you're open to a pull request.
The URL in index.yaml, in the gh-pages branch, seems to be incorrect since yesterday. I am not able to helm-install prometheus-yace-exporter anymore.
It is currently set to
urls:
- https://mogaal.github.io/prometheus-yace-exporter-0.1.0.tgz
while previously it was:
urls:
- prometheus-yace-exporter-0.1.0.tgz
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.