1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-17 05:48:21 +00:00

examples: add example grafana dashboard

Example visualization for all metrics except
nfd_node_update_requests_total which counts the deprecated (and
disabled-by-default) gRPC requests.
This commit is contained in:
Markus Lehtonen 2023-10-09 17:01:08 +00:00
parent a379fafcaa
commit b75de2a283
2 changed files with 1327 additions and 2 deletions

View file

@ -32,12 +32,12 @@ The exposed metrics are
| `nfd_gc_objects_deleted_total` | Counter | Number of NodeFeature and NodeResourceTopology objects garbage collected. | `nfd_gc_objects_deleted_total` | Counter | Number of NodeFeature and NodeResourceTopology objects garbage collected.
| `nfd_gc_object_delete_failures_total` | Counter | Number of errors in deleting NodeFeature and NodeResourceTopology objects. | `nfd_gc_object_delete_failures_total` | Counter | Number of errors in deleting NodeFeature and NodeResourceTopology objects.
## Via Kustomize ## Kustomize
To deploy NFD with metrics enabled using kustomize, you can use the To deploy NFD with metrics enabled using kustomize, you can use the
[Metrics Overlay](kustomize.md#metrics). [Metrics Overlay](kustomize.md#metrics).
## Via Helm ## Helm
By default metrics are enabled when deploying NFD via Helm. To enable Prometheus By default metrics are enabled when deploying NFD via Helm. To enable Prometheus
to scrape metrics from NFD, you need to pass the following values to Helm: to scrape metrics from NFD, you need to pass the following values to Helm:
@ -55,3 +55,9 @@ to scrape metrics from any PodMonitor.
or setting labels on the PodMonitor via the helm parameter `prometheus.labels` or setting labels on the PodMonitor via the helm parameter `prometheus.labels`
to control which Prometheus instances will scrape this PodMonitor. to control which Prometheus instances will scrape this PodMonitor.
## Grafana dashboard
NFD contains an example Grafana dashboard. You can import
[`examples/grafana-dashboard.json`](https://raw.githubusercontent.com/kubernetes-sigs/node-feature-discovery/{{site.release}}/examples/grafana-dashboard.json)
to your Grafana instance to visualize the NFD metrics.

File diff suppressed because it is too large Load diff