Skip to content

Commit 1982097

Browse files
authored
Update monitoring guidance to utilize Prometheus Node Exporter (#698)
* Update monitoring guidance to utilize Prometheus Node Exporter * Update ethtool device-include regex to match consistent device naming scheme
1 parent 6988c68 commit 1982097

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

latest/bpg/networking/monitoring.adoc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,19 @@ Let's now capture the metrics discussed above, store them in Amazon Managed Serv
5353
* An AMP workspace configured in your AWS account. For instructions, see https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-onboard-create-workspace.html[Create a workspace] in the AMP User Guide.
5454
* Amazon Managed Grafana Workspace
5555

56-
=== Deploying Prometheus ethtool exporter
56+
=== Deploying Prometheus Node Exporter
5757

58-
The deployment contains a python script that pulls information from ethtool and publishes it in prometheus format.
58+
In order to collect the ethtool metrics for worker nodes, we need to deploy a collector which gathers the metrics and exposes them in Prometheus format. The following commands will add the `prometheus-community` Helm repository and install the `prometheus-node-exporter` chart with the `ethtool` collector enabled.
5959

6060
----
61-
kubectl apply -f https://raw.githubusercontent.com/Showmax/prometheus-ethtool-exporter/master/deploy/k8s-daemonset.yaml
61+
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
62+
63+
helm upgrade -i prometheus-node-exporter prometheus-community/prometheus-node-exporter \
64+
--set extraArgs[0]="--collector.ethtool" \
65+
--set extraArgs[1]="--collector.ethtool.device-include=(eth|em|eno|ens|enp)[0-9s]+" \
66+
--set extraArgs[2]="--collector.ethtool.metrics-include=.*" \
67+
--set podAnnotations."prometheus\.io/scrape='true'" \
68+
--set podAnnotations."prometheus\.io/port='9100'"
6269
----
6370

6471
=== Deploy the ADOT collector to scrape the ethtool metrics and store in Amazon Managed Service for Prometheus workspace

0 commit comments

Comments
 (0)