prometheus-operator / kube-prometheus

Use Prometheus to monitor Kubernetes and applications running on Kubernetes
https://prometheus-operator.dev/
Apache License 2.0
6.78k stars 1.94k forks source link

kube_replicaset_spec_replicas Diffrent Data #2013

Open Jim0530 opened 1 year ago

Jim0530 commented 1 year ago

What happened? Calling Prometheus API with same parameter, but get different result for different request Did you expect to see some different? Should be the same data no matter how many times calling api How to reproduce it (as minimally and precisely as possible): url api/v1/query params {'query': 'kube_replicaset_spec_replicas{replicaset="wfauto-ver-api-66d46cd5d7"} response [1676625521, '1'], [1676625536,'1'], [1676625551, '1'] [1676625521, '1'], [1676625536, '0'], [1676625551, '0']

Jim0530 commented 1 year ago

Did anyone know how to solve it? Thanks