Open jszwedko opened 3 years ago
There are a couple of complications with this:
http_client_responses_total
which has a status
as a tag) its unclear what tag to publish the initial metric with0
to keep the timeseries active in whatever sink the user is usingGood step into right direction would be including 0's for non-component based https://vector.dev/docs/reference/configuration/sources/internal_metrics/
e.g.
etc; since those are quite important to get right with rate
promQL in the monitoring system
Just hit the same issue. When we could expect this issue to be fixed?
Just hit the same issue. When we could expect this issue to be fixed?
It's not currently on the roadmap so it is difficult to say (contributions, of course, always welcome). As mentioned above this is also tricky for metrics that have dynamic tags.
Current Vector Version
Use-cases
It has occurred to me that we don't publish metrics for events until the event is fired, for example we never publish
processing_errors_total
for thejson_parser
transform until an event actually fails to parse. I believe this can lead to some confusion with users not understanding what set of metrics should be published for a given set of components and requires users to convert null values to 0 when making dashboards (in Grafana at least). The latter aspect also makes it impossible to tell when a metric is missing or simply hasn't been published yet.I think this may be one cause of https://github.com/timberio/vector/issues/6530
Example config:
Note that if you only publish valid JSON messages, you will never see
In the output. That metric only appears if an event fails to parse as JSON.
Proposal
Ensure that all metrics are published initially with their 0 value.
References