diff --git a/charts/prometheus-artifactory-exporter/Chart.yaml b/charts/prometheus-artifactory-exporter/Chart.yaml index dcf8ecc..be53818 100644 --- a/charts/prometheus-artifactory-exporter/Chart.yaml +++ b/charts/prometheus-artifactory-exporter/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v1 -appVersion: "1.15.1" +appVersion: "1.16.0" description: A Helm chart for the Prometheus Artifactory Exporter name: prometheus-artifactory-exporter -version: 0.8.1 +version: 0.9.0 keywords: - metrics - artifactory diff --git a/charts/prometheus-artifactory-exporter/templates/deployment.yaml b/charts/prometheus-artifactory-exporter/templates/deployment.yaml index 64c8431..74b612d 100644 --- a/charts/prometheus-artifactory-exporter/templates/deployment.yaml +++ b/charts/prometheus-artifactory-exporter/templates/deployment.yaml @@ -45,6 +45,11 @@ spec: args: - "--log.level={{ .Values.options.logLevel }}" - "--log.format={{ .Values.options.logFormat }}" + {{- if .Values.options.useCache }} + - "--use-cache" + - "--cache-timeout={{ .Values.options.cacheTimeout | default "30s" }}" + - "--cache-ttl={{ .Values.options.cacheTTL | default "5m"}}" + {{- end }} {{- range $metric := .Values.options.optionalMetrics }} - "--optional-metric={{ $metric }}" {{- end }} diff --git a/charts/prometheus-artifactory-exporter/values.yaml b/charts/prometheus-artifactory-exporter/values.yaml index a583bcf..2575c71 100644 --- a/charts/prometheus-artifactory-exporter/values.yaml +++ b/charts/prometheus-artifactory-exporter/values.yaml @@ -23,7 +23,7 @@ image: registry: ghcr.io repository: peimanja/artifactory_exporter # set to canary for the latest unreleased version - tag: v1.15.1 + tag: v1.16.0 pullPolicy: IfNotPresent # imagePullSecrets: @@ -51,6 +51,9 @@ options: telemetryPath: /metrics verifySSL: false timeout: 5s + useCache: false + cacheTimeout: 30s + cacheTTL: 5m # 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: [] @@ -77,7 +80,7 @@ ingress: tls: [] # - secretName: chart-example-tls # hosts: - # - chart-example.local + # - chart-example.local resources: {} # We usually recommend not to specify default resources and to leave this as a conscious