czerwonk / ping_exporter

Prometheus exporter for ICMP echo requests using https://github.com/digineo/go-ping
MIT License
530 stars 115 forks source link

Prometheus Operator support #116

Closed djjudas21 closed 2 months ago

djjudas21 commented 2 months ago

Hi there, I started using this project recently so I decided to contribute support for the Prometheus Operator. This change only affects the Helm chart, but allows seamless integration for people using Kubernetes and the Prometheus Operator.

Setting serviceMonitor.enabled: true creates a serviceMonitor resource which makes Prometheus start scraping the exporter.

Setting prometheusRules.enabled: true adds some basic Prometheus alerting rules which alert on high latency or high packet loss.

This is tested & working on my Prometheus Operator stack.

Do you need me to bump the chart version before you merge?

czerwonk commented 2 months ago

Thanks for contributing! :-)