diff --git a/Chart.yaml b/Chart.yaml index 6bf8ff0..1d468a7 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v2 name: x509-certificate-exporter -version: 1.9.0 +version: 1.10.0 # when bumping appVersion, change the annotation too (manual for now) -appVersion: 2.7.0 +appVersion: 2.8.0 type: application description: A Prometheus exporter for certificates focusing on expiration monitoring keywords: @@ -28,7 +28,7 @@ annotations: artifacthub.io/license: MIT artifacthub.io/images: | - name: x509-certificate-exporter - image: enix/x509-certificate-exporter:2.7.0 + image: enix/x509-certificate-exporter:2.8.0 - name: kube-rbac-proxy image: quay.io/coreos/kube-rbac-proxy:v0.5.0 whitelisted: true diff --git a/README.md b/README.md index b89b456..3eee48d 100644 --- a/README.md +++ b/README.md @@ -483,6 +483,7 @@ in the container namespace. | Key | Type | Default | Description | |-----|------|---------|-------------| +| exposeRelativeMetrics | bool | `false` | Enable additional metrics with relative durations instead of absolute timestamps | | extraLabels | object | `{}` | | | fullnameOverride | string | `""` | String to fully override x509-certificate-exporter.fullname template with a string | | hostNetwork | bool | `false` | Enable hostNetwork mode. Useful when Prometheus is deployed outside of the Kubernetes cluster | diff --git a/templates/daemonset.yaml b/templates/daemonset.yaml index ab72eb8..c2d4753 100644 --- a/templates/daemonset.yaml +++ b/templates/daemonset.yaml @@ -67,6 +67,9 @@ spec: {{- with default $.Values.hostPathsExporter.debugMode $dsDef.debugMode }} - --debug {{- end }} + {{- if $.Values.exposeRelativeMetrics }} + - --expose-relative-metrics + {{- else }} {{- if not $.Values.rbacProxy.enabled }} - --port={{ $.Values.podListenPort }} {{- else }} diff --git a/templates/deployment.yaml b/templates/deployment.yaml index a12dfb7..0fc4788 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -77,6 +77,9 @@ spec: {{- if .Values.secretsExporter.debugMode }} - --debug {{- end }} + {{- if $.Values.exposeRelativeMetrics }} + - --expose-relative-metrics + {{- else }} - --watch-kube-secrets {{- range .Values.secretsExporter.secretTypes }} - --secret-type={{ .type | trim }}:{{ .key | trim }} diff --git a/values.yaml b/values.yaml index 25e7f49..afc2e0b 100644 --- a/values.yaml +++ b/values.yaml @@ -10,6 +10,9 @@ nameOverride: "" # -- String to fully override x509-certificate-exporter.fullname template with a string fullnameOverride: "" +# -- Enable additional metrics with relative durations instead of absolute timestamps +exposeRelativeMetrics: false + # -- Specify docker-registry secret names as an array imagePullSecrets: []