Skip to content

Commit

Permalink
[prometheus-artifactory-exporter] Add ability to enable optional metr…
Browse files Browse the repository at this point in the history
…ics (#11)
  • Loading branch information
peimanja authored Dec 7, 2022
1 parent 1859b60 commit 4fe68d5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/prometheus-artifactory-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
appVersion: "1.9.5"
appVersion: "1.10.0"
description: A Helm chart for the Prometheus Artifactory Exporter
name: prometheus-artifactory-exporter
version: 0.3.0
version: 0.4.0
keywords:
- metrics
- artifactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ spec:
args:
- "--log.level={{ .Values.options.logLevel }}"
- "--log.format={{ .Values.options.logFormat }}"
{{- range $metric := .Values.options.optionalMetrics }}
- "--optional-metric={{ $metric }}"
{{- end }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
Expand Down
6 changes: 5 additions & 1 deletion charts/prometheus-artifactory-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ image:
registry: ghcr.io
repository: peimanja/artifactory_exporter
# set to canary for the latest unreleased version
tag: v1.9.5
tag: v1.10.0
pullPolicy: IfNotPresent

nameOverride: ""
Expand All @@ -44,6 +44,10 @@ options:
telemetryPath: /metrics
verifySSL: false
timeout: 5s
# Some metrics are expensive to collect, so they are disabled by default.
# visit https://github.com/peimanja/artifactory_exporter#optional-metrics for more details
optionalMetrics: []
# - replication_status

service:
type: ClusterIP
Expand Down

0 comments on commit 4fe68d5

Please sign in to comment.