Providing option to disable labels in prometheus output for string fields#3765
Conversation
|
What about using the measurement filtering options to provide this using taginclude/tagexclude and fielddrop/fieldpass? |
|
@danielnelson Yes, I could do that. But I would have to know the list or patterns of tags beforehand. Instead if I disable converting string fields to labels globally, then I don't have to fiddle with all input plugins. So what do you think about having atleast an option to disable this feature like how we had before 1.5.0 release? |
|
That makes sense, could you provide this in a similar way to how we we do it in the docker plugin with |
…prometheus_output_patch
|
@danielnelson To keep it consistent across output plugins, I thought of doing something like So this change should provide options to enable/disable string metrics to labels globally and then include/exclude certain labels using measurement filtering. |
#3350 introduced a change where all string fields are turned to labels. However in certain cases where string value changes, it introduces a new metric due to the change in label value.
Hence this will provide an option to disable as well as enable only for certain string values. The default behavior doesn't change with this commit.