Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/povilasv/coredns-mixin
A set of Prometheus alerts & grafana dashboards for CoreDNS.
https://github.com/povilasv/coredns-mixin
coredns kubernetes mixin monitoring-mixins prometheus
Last synced: about 2 months ago
JSON representation
A set of Prometheus alerts & grafana dashboards for CoreDNS.
- Host: GitHub
- URL: https://github.com/povilasv/coredns-mixin
- Owner: povilasv
- License: apache-2.0
- Created: 2020-02-18T16:17:58.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-19T11:03:59.000Z (over 1 year ago)
- Last Synced: 2024-11-04T20:42:20.749Z (4 months ago)
- Topics: coredns, kubernetes, mixin, monitoring-mixins, prometheus
- Language: Jsonnet
- Homepage:
- Size: 40 KB
- Stars: 22
- Watchers: 4
- Forks: 17
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Prometheus Monitoring Mixin for CoreDNS
[](https://circleci.com/gh/povilasv/coredns-mixin)A set of Grafana dashboards & Prometheus alerts for CoreDNS.
## How to use
This mixin is designed to be vendored into the repo with your infrastructure config.
To do this, use [jsonnet-bundler](https://github.com/jsonnet-bundler/jsonnet-bundler):## Generate config files
You can manually generate the alerts, dashboards and rules files, but first you
must install some tools:```
$ go get github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
$ brew install jsonnet
```Then, grab the mixin and its dependencies:
```
$ git clone https://github.com/povilasv/coredns-mixin
$ cd coredns-mixin
$ jb install
```Finally, build the mixin:
```
$ make prometheus_alerts.yaml
$ make dashboards_out
```The `prometheus_alerts.yaml` file then need to passed
to your Prometheus server, and the files in `dashboards_out` need to be imported
into you Grafana server. The exact details will depending on how you deploy your
monitoring stack.## Background
* For more information about monitoring mixins, see this [design doc](https://docs.google.com/document/d/1A9xvzwqnFVSOZ5fD3blKODXfsat5fg6ZhnKu9LK3lB4/edit#).
* CoreDNS Prometheus metrics plugin [docs](https://github.com/coredns/coredns/tree/master/plugin/metrics)