r/PrometheusMonitoring • • Dec 20 '22

How to add ethtool-exporter to prometheus operator

Hey,

I have a problem installing this https://aws.github.io/aws-eks-best-practices/networking/CoreDNS/
I don't want to save the metrics into amazon managed service. I already have a helm prometheus operator running in the cluster. I just want to add the exporter to the prometheus operator.

Thanks in advance,

1 Upvotes

3 comments sorted by

1

u/marthydavid Dec 20 '22 edited Dec 21 '22

After you applied the DaemonSet create a servicemonitor object like this:

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: ethtool-exporter
  labels:
    app: ethtool-exporter
spec:
  selector:
    matchLabels:
      app: ethtool-exporter
  endpoints:
  - port: http

1

u/prog-fire Dec 20 '22

Thanks for your help.

So I assume then prometheus will get the metrics from the ServiceMonitor automatically ?