I am using victoria metrics as data source. I am pulling status for K8 pods, goal is count number of pods at any given point in 0, 1, 2 etc. Problem is output is 0, 1.000, 2.000
count({name=“Status”,entityTypeId=“K8S_POD”}==0) gives me what I want but ==1.000 does not return expected results. Is there a way to convert value to integer before I compare and count?
[quote=“manpreetbmc, post:1, topic:43078”]
victoria metrics
[/quote
yes what data source do you have
data source is Victoria Metrics.
never heard about this,did you mean victoria secrets ?
victoria metrics is a time series database and uses metricql which is very similar to promql. MetricsQL | VictoriaMetrics
I think I figured out the issue, there was a " that was microsoft word formatted. fixed it and query is working fine.
please select as topic resled