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.