From 74153e11b5d363eec138e58fa7637066b462dc14 Mon Sep 17 00:00:00 2001 From: TessaIO Date: Fri, 22 Mar 2024 22:22:08 +0100 Subject: [PATCH] chore/deploy: make interval property in PodMonitor configurable Signed-off-by: TessaIO --- .../helm/node-feature-discovery/templates/prometheus.yaml | 2 +- deployment/helm/node-feature-discovery/values.yaml | 1 + docs/deployment/helm.md | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/deployment/helm/node-feature-discovery/templates/prometheus.yaml b/deployment/helm/node-feature-discovery/templates/prometheus.yaml index b9f4b46405..3d680e24e8 100644 --- a/deployment/helm/node-feature-discovery/templates/prometheus.yaml +++ b/deployment/helm/node-feature-discovery/templates/prometheus.yaml @@ -12,7 +12,7 @@ metadata: spec: podMetricsEndpoints: - honorLabels: true - interval: 10s + interval: {{ .Values.prometheus.scrapeInterval }} path: /metrics port: metrics scheme: http diff --git a/deployment/helm/node-feature-discovery/values.yaml b/deployment/helm/node-feature-discovery/values.yaml index dac6fcf4bd..a802433b10 100644 --- a/deployment/helm/node-feature-discovery/values.yaml +++ b/deployment/helm/node-feature-discovery/values.yaml @@ -537,4 +537,5 @@ tls: prometheus: enable: false + scrapeInterval: 10s labels: {} diff --git a/docs/deployment/helm.md b/docs/deployment/helm.md index ae3baa8b2c..80ba842856 100644 --- a/docs/deployment/helm.md +++ b/docs/deployment/helm.md @@ -101,6 +101,7 @@ Chart parameters are available. | `featureGates.NodeFeatureAPI`| bool | true | Enable the [NodeFeature](../usage/custom-resources.md#nodefeature) CRD API for communicating node features. This will automatically disable the gRPC communication. **NOTE**: this parameter is related to the deprecated gRPC API and will be removed with it in a future release | | `prometheus.enable` | bool | false | Specifies whether to expose metrics using prometheus operator | | `prometheus.labels` | dict | {} | Specifies labels for use with the prometheus operator to control how it is selected | +| `prometheus.scrapeInterval` | string | 10s | Specifies the interval by which metrics are scraped | | `priorityClassName` | string | | The name of the PriorityClass to be used for the NFD pods. | Metrics are configured to be exposed using prometheus operator API's by