Replies: 1 comment 3 replies
-
I think increasing |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I have a metric counter which represents the number of calls, and for some labels combination, it generates a single sample data only from time to time.
The problem is that in the dashboard with the following promql these samples are not considered. I know this is a known architecture characteristic for rate/increase functions... but is there some workaround to consider these metrics that do not have the first value as zero? I am using vector to create this metrics from a logs stream and the combination of labels is not predictable.
Promql:
sum(increase(number_of_calls{job=
"$job",foo="$foo"}[$__interval]))Also, as soon as the metric is generated it expires after 60s (flush_period_secs) and if the same metric has value again after 5minutes for instance, the increase will be zero again, so I am wondering to increase the flush_period_secs to a very high value, or is there some way to disable it (set it to 0 disable?!) ? Unfortunately even this way, the first value of each counter will be always discarded when applying a increase/rate function.
I really appreciate some guidance on this.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions