You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be able to set metirc's TYPE for prometheus output
Current behavior:
Currently almost all of unstandart methrics (like an inputs.exec generated) get "#TYPE untyped"
For example even standart system metric from telegraf: "# TYPE ntpq_when untyped"
Desired behavior:
Get the parameter in prometheus output plugin to modify "# TYPE ... untyped" string for exact metric names
Use case: [Why is this important (helps with prioritizing requests)]
One of the greates thing in Prometheus is that it has different metric types and can collect and store them in different ways depends on it's type.
Most painfull point is that there is no possibility to use "counter" metric power when you create a custom metric and put in html within output.prometheus.
Because it becomes "untyped" and you have to calculate a sum of previous and current value right on a source.
It would be great if some "name" and "type" parameters will appear in prometheus output plugin. And give us possibility to change the type of each metric this way
The text was updated successfully, but these errors were encountered:
You can set this information on data sent to the prometheus input, and when we add the prometheus parser #4414 it will be possible to do this from an exec script as well.
It is possible to set this type in input plugins, some are currently doing this, but I don't want to start adding these type hints to all of them until we have a better way to send metadata as described in #3670.
I believe these types are just more or less documentation, since AFAIK they are not used by prometheus. I checked prometheus documentation again and it says:
The Prometheus server does not yet make use of the type information and flattens all data into untyped time series. This may change in the future.
Hi.
Got it.
Prometheus parser would be the best option for my porposes.
Because use the schema - create a script to send static to inputs.prometheus, path true it to output.prometheus is not so clear and well handled.
Also the TYPE counter works fine in Prometheus and let you send data to prommetheus as rate but store them as huge count.
Feature Request
Opening a feature request kicks off a discussion.
Proposal:
To be able to set metirc's TYPE for prometheus output
Current behavior:
Currently almost all of unstandart methrics (like an inputs.exec generated) get "#TYPE untyped"
For example even standart system metric from telegraf: "# TYPE ntpq_when untyped"
Desired behavior:
Get the parameter in prometheus output plugin to modify "# TYPE ... untyped" string for exact metric names
Use case: [Why is this important (helps with prioritizing requests)]
One of the greates thing in Prometheus is that it has different metric types and can collect and store them in different ways depends on it's type.
Most painfull point is that there is no possibility to use "counter" metric power when you create a custom metric and put in html within output.prometheus.
Because it becomes "untyped" and you have to calculate a sum of previous and current value right on a source.
It would be great if some "name" and "type" parameters will appear in prometheus output plugin. And give us possibility to change the type of each metric this way
The text was updated successfully, but these errors were encountered: