feat(x509-certificate-exporter): add exposeRelativeMetrics

This commit is contained in:
Arthur Chaloin
2022-06-14 12:31:30 +02:00
parent 202e9cbf58
commit 657e269236
5 changed files with 13 additions and 3 deletions
+3 -3
View File
@@ -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
+1
View File
@@ -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 |
+3
View File
@@ -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 }}
+3
View File
@@ -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 }}
+3
View File
@@ -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: []