Skip to content

Added new metric node_agent_collected_metrics along with new internal prom registry#309

Open
vishnukumarkvs wants to merge 1 commit into
coroot:mainfrom
vishnukumarkvs:prom-metric-for-agent-collected-metrics
Open

Added new metric node_agent_collected_metrics along with new internal prom registry#309
vishnukumarkvs wants to merge 1 commit into
coroot:mainfrom
vishnukumarkvs:prom-metric-for-agent-collected-metrics

Conversation

@vishnukumarkvs
Copy link
Copy Markdown
Contributor

@vishnukumarkvs vishnukumarkvs commented May 17, 2026

Hi,

To view the amount of metrics a coroot node agent scrapes, I have added a new prometheus metric node_agent_collected_metrics (Type Gauge) to calculate the amount of series it scrapes in a scrape interval.

I have also created a new metrics endpoint on a new port (default: 9093) to differentiate between agent internal metrics and the agent's ebpf scraped metrics. So, prometheus can scrape only agents internal metrics like node_agent_info, collected_metrics etc and skip ebpf metrics(which we send via http push to coroot)

@def
Copy link
Copy Markdown
Member

def commented May 18, 2026

I don't think we need this as a separate metric, especially on a dedicated endpoint. Also, this metric isn't very actionable, so even if you see a high number of metrics, it's not clear what to do next.

We could instead log some metric statistics in the remote writer, for example the top 10 metric names by number of series.

To understand how many metrics each machine is writing to Prometheus, you can use a query like:

count by (machine_id) ({machine_id!=""})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants