Hello Prometheus Community,
I hope the person reading this has an awesome day, and thanks for helping out.
I have a thanos query API endpoint, which if I query for a smaller start and end timestamp, it is giving a different value compared to the same query which has a bigger difference between start and end timestamps. I request to know what might be causing this unexpected behaviour?
1) Query with 6 second difference between start and end timestamp:
<endpoint>/thanosquery/api/v1/query_range?query=sum(increase(envoy_cluster_upstream_rq
{
kubernetes_namespace="sample_namespacce",
kubernetes_pod_name="sample_pod_name",
envoy_cluster_name="sample_cluster_name",
}[3m])/3)
by (kubernetes_namespace,envoy_cluster_name)
&start=1731304828&end=1731304833&step=1s
2) Query with 2 minutes difference between start and end timestamp:
<endpoint>/thanosquery/api/v1/query_range?query=sum(increase(envoy_cluster_upstream_rq
{
kubernetes_namespace="sample_namespacce",
kubernetes_pod_name="sample_pod_name",
envoy_cluster_name="sample_cluster_name",
}[3m])/3)
by (kubernetes_namespace,envoy_cluster_name)
&start=1731304800&end=1731304860&step=1s
Thank you for your time,
Kishore.