This commit is contained in:
Eugenio Marzo
2021-01-26 19:22:36 +01:00
parent b9fb4e9612
commit d686c8d1f9

View File

@@ -49,6 +49,15 @@ To experience KubeInvaders in action, try it out in this free O'Reilly Katacoda
KubeInvaders exposes metrics for Prometheus through the standard endpoint /metrics
This is an example of Prometheus configuration
```bash
scrape_configs:
- job_name: kubeinvaders
static_configs:
- targets:
- kubeinvaders.kubeinvaders.svc.cluster.local:8080
````
Example of metrics
```bash
@@ -66,6 +75,7 @@ deleted_pods_total 16
# Total number of deleted pods
deleted_namespace_pods_count{namespace=myawesomenamespace} 8
```
![Download Grafana dashboard](https://github.com/lucky-sideburn/KubeInvaders/blob/master/grafana/KubeInvadersDashboard.json)
![Alt Text](https://github.com/lucky-sideburn/KubeInvaders/blob/master/grafana2.png)