Hi All.
I am currently configuring graphs in grafana based on metrics from prometheus. I have a problem that fot the same query I get different results:
Grafana:
sum(increase(hadoop_nodemanager_containerskilled{env="uat",unit="si"}[24h])) -> 19
Prometheus:
sum(increase(hadoop_nodemanager_containerskilled{env="uat",unit="si"}[24h])) -> 35
Additionally in Prometheus I see:
query:
increase(hadoop_nodemanager_containerskilled{env="uat",unit="si"}[24h])
result:
{component="yarn",env="uat",instance="node2:40001",job="reactvar",name="NodeManagerMetrics",unit="si"} 3.0006688819090885
{component="yarn",env="uat",instance="node1:40001",job="reactvar",name="NodeManagerMetrics",unit="si"} 5.001834806853806
{component="yarn",env="uat",instance="node3:40001",job="reactvar",name="NodeManagerMetrics",unit="si"} 19.012688825216884
{component="yarn",env="uat",instance="node4:40001",job="reactvar",name="NodeManagerMetrics",unit="si"} 8.002809822812276
I tried to set different "step" and "resolution" for Grafana but this has not helped. In Prometheus scrape_interval=30s.
Can someone help?
BR,
Rafal.