How Can I Persist Nginx Status Data on Prometheus?

8/15/2019

I have 1 master 1 slave kubernetes cluster deployed prometheus+grafana+nginx(proxy).

I can get metrics from nginx and i can see in the grafana dashboard.But when i delete nginx pod all the stats are restarting.When i use traefik with prometheus metrics it depends on prometheus .So when i restarted traefik i can reach old traefik status from prometheus.

How can i persist nginx status data ?

I am using sophos/nginx-prometheus-metrics container for nginx.

-- akuscu
docker
kubernetes
nginx
prometheus
reverse-proxy

0 Answers