-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional metadata #36
Comments
Since they aren't really used by the exporter itself, it does feel a little odd, but I can see some potential uses. My gut instinct is to rename it "metadata", and allow any arbitrary map[string]interface{} to be set. |
Yeah, that's exactly why I'm asking first. I also thought that naming it metadata would be far better suited for general use and wouldn't mislead people. As for the use case, we'd be adding the metadata to individual modules, not the whole config for expexp. For us, this allows us to inject those labels to all metrics of any exporter running on the machine. Helps with tagging services, components, tenants, etc in a multi-tenant use case where Prometheus is shared by many teams that use similar exporters. I can whip up a PR for metadata as discussed if that's something you see being added. |
Here's my thinking (I think). I can still be persuaded, and obviously I don't know your use case. |
Going to close this, I'm not sure this would add enough value. |
I came searching for this exact requirement (ie. having the ability to add labels). Please let me know if I should create a new issue? Here is my use case I have two environments for an application
Two scrape jobs are then created on prometheus side to scrape both environment. by supporting the addition of labels, on the expexp side i will be able to specify the environment from which the metrics are exported. This will remove the need for configuring per environment per application prometheus jobs. |
We're looking for utilizing exporter_exporter to expose additional metadata about each module that would then be consumed by third-party systems via the JSON response.
Currently, what we're using is
labels
. I.e. each module has a section oflabels
that is also exposed via JSON and can then be used by another system which constructs scrape targets forfile_sd
. Note, these aren't actually added to the metrics themselves by exporter_exporter as it still only acts as a proxy. Would that be something that could be added to exporter_exporter?E.g.
and
That's pretty much it, we're not actually doing anything more than exposing it in the json response.
The text was updated successfully, but these errors were encountered: