Skip to content

Commit af8a41c

Browse files
authored
Merge pull request #1639 from TessaIO/chore-add-prometheus-pod-monitor-interval
chore/deploy: make interval property in PodMonitor configurable
2 parents 275e625 + 74153e1 commit af8a41c

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
@@ -549,4 +549,5 @@ tls:
549549

550550
prometheus:
551551
enable: false
552+
scrapeInterval: 10s
552553
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)