Merge app_agent_receiver instance metric endpoints #3149
Labels
app-agent-receiver
Related to the app-agent-receiver
enhancement
New feature or request
variant/static
Related to Grafana Agent Static.
Currently, if we have multiple app-agent-receiver endpoints in use, there is a separate
/metrics
endpoint for each.With a single endpoint the URL to scrape is:
With multiple endpoints in use, the URL is:
This causes a couple of problems:
It becomes more tricky for the user to scrape these endpoints (since $instanceId) is fairly dynamic. I'm also not sure if this introduces issues around name conventions and url path specs (does it place restrictions on the instance-name?_
The resulting metrics look the same, and there's no
instanceId
label to differentiate between them.I believe there is
__meta__
labels provided, but I'm not too sure how I can make use of these (running the agents in k8s).In general, is there a benefit to having separate metrics endpoints?
I'm currently working around any issues here with some relabelling config in my
ServiceMonitor
to add the extra labels.The text was updated successfully, but these errors were encountered: