Skip to content

Commit

Permalink
chore/deploy: make interval property in PodMonitor configurable
Browse files Browse the repository at this point in the history
Signed-off-by: TessaIO <ahmedgrati1999@gmail.com>
  • Loading branch information
TessaIO committed Mar 26, 2024
1 parent 0132544 commit 74153e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
spec:
podMetricsEndpoints:
- honorLabels: true
interval: 10s
interval: {{ .Values.prometheus.scrapeInterval }}
path: /metrics
port: metrics
scheme: http
Expand Down
1 change: 1 addition & 0 deletions deployment/helm/node-feature-discovery/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -537,4 +537,5 @@ tls:

prometheus:
enable: false
scrapeInterval: 10s
labels: {}
1 change: 1 addition & 0 deletions docs/deployment/helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 74153e1

Please sign in to comment.