Skip to content

Commit 74153e1

Browse files
committed
chore/deploy: make interval property in PodMonitor configurable
Signed-off-by: TessaIO <[email protected]>
1 parent 0132544 commit 74153e1

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

deployment/helm/node-feature-discovery/templates/prometheus.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ metadata:
1212
spec:
1313
podMetricsEndpoints:
1414
- honorLabels: true
15-
interval: 10s
15+
interval: {{ .Values.prometheus.scrapeInterval }}
1616
path: /metrics
1717
port: metrics
1818
scheme: http

deployment/helm/node-feature-discovery/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,4 +537,5 @@ tls:
537537

538538
prometheus:
539539
enable: false
540+
scrapeInterval: 10s
540541
labels: {}

docs/deployment/helm.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ Chart parameters are available.
101101
| `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 |
102102
| `prometheus.enable` | bool | false | Specifies whether to expose metrics using prometheus operator |
103103
| `prometheus.labels` | dict | {} | Specifies labels for use with the prometheus operator to control how it is selected |
104+
| `prometheus.scrapeInterval` | string | 10s | Specifies the interval by which metrics are scraped |
104105
| `priorityClassName` | string | | The name of the PriorityClass to be used for the NFD pods. |
105106

106107
Metrics are configured to be exposed using prometheus operator API's by

0 commit comments

Comments
 (0)