Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
Do not require prometheus.zebrium.custom/scrape=true annotation on no…
Browse files Browse the repository at this point in the history
…de-exporter service

This will allow users to use existing node-exporter deployment without adding
new annotation (which may not do).

For custom service, users are still required to add prometheus.zebrium.custom/scrape=true
annotation.
  • Loading branch information
bradyzebrium committed Oct 28, 2020
1 parent b70f3a0 commit d58824b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 21 deletions.
12 changes: 6 additions & 6 deletions charts/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ apiVersion: v1
entries:
zstats:
- apiVersion: v1
appVersion: 1.40.1
created: 2020-09-11T14:51:39.817205715-07:00
appVersion: 1.44.0
created: 2020-10-28T09:39:51.743925768-07:00
description: Zebrium stats collector for Kubernetes.
digest: de5f28f0899e967698190a9ec5e0496dad891fdef5988aca1f4b129be125c571
digest: a2dd6b652b5e1103d737244fd68a9c5f6b8db23ec7e4d074301b3e91a90c7114
home: https://www.zebrium.com
icon: https://www.zebrium.com/hubfs/logo2.png
keywords:
Expand All @@ -20,6 +20,6 @@ entries:
sources:
- https://github.com/zebrium/ze-stats
urls:
- https://github.com/zebrium/ze-stats/releases/download/1.40.1/zstats-1.40.1.tgz
version: 1.40.1
generated: 2020-09-11T14:51:39.816909078-07:00
- https://github.com/zebrium/ze-stats/releases/download/1.44.0/zstats-1.44.0.tgz
version: 1.44.0
generated: 2020-10-28T09:39:51.742536304-07:00
4 changes: 2 additions & 2 deletions charts/zstats/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
name: zstats
description: Zebrium stats collector for Kubernetes.
version: 1.40.1
appVersion: 1.40.1
version: 1.44.0
appVersion: 1.44.0
keywords:
- stats
- prometheus
Expand Down
12 changes: 0 additions & 12 deletions charts/zstats/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,9 @@ data:
kubernetes_sd_configs:
- role: endpoints
relabel_configs:
{{- if .Values.zebrium.prometheusIoScrapeEnabled }}
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scrape]
action: keep
regex: true
{{- else }}
- source_labels: [__meta_kubernetes_service_annotation_prometheus_zebrium_io_scrape]
action: keep
regex: true
{{- end }}
- action: labelmap
regex: __meta_kubernetes_service_label_(.+)
- source_labels: [__meta_kubernetes_namespace]
Expand All @@ -67,15 +61,9 @@ data:
kubernetes_sd_configs:
- role: endpoints
relabel_configs:
{{- if .Values.zebrium.prometheusIoScrapeEnabled }}
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scrape]
action: keep
regex: true
{{- else }}
- source_labels: [__meta_kubernetes_service_annotation_prometheus_zebrium_custom_scrape]
action: keep
regex: true
{{- end }}
- action: labelmap
regex: __meta_kubernetes_service_label_(.+)
- source_labels: [__meta_kubernetes_namespace]
Expand Down
1 change: 0 additions & 1 deletion charts/zstats/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ zebrium:
authToken: ""
autoupdate: "1"
verifySSL: true
prometheusIoScrapeEnabled: false
enableDebug: false
name: zstats-collector

Expand Down

0 comments on commit d58824b

Please sign in to comment.