We have pmm-agent and standalone vmagent on same host
pmm has autogenerated configuration file /usr/local/percona/pmm/tmp/agent_type_vm_agent/b6a9f90d-3c40-4459-9a1a-2ab99e9d3a40/vmagentscrapecfg
I’ve tried to add this into configuration, but they get wiped out
scrape_configs:
- job_name: 'idp1'
static_configs:
- targets: ['idp.local.net:9000']
how can I add changes into pmm-agent configuration?
The idea is to have single pmm-agent that will collect all metrics
nurlan
April 11, 2025, 10:17am
2
I’ve tried that and it is not working
this address http://idp.local.net:9000/metrics gives just a text
and here is error I get in Pmm list of sevices if I tried to add it
Unknown External exporter cb6b9831-5a6c-47ba-a6b1-c491521165a4
nurlan
April 12, 2025, 4:52pm
4
Status unknown is ok for external exporter, we have recorded jira task for it. Have you checked metrics in explore?
Ok, I see needed metrics in the metrics exploere
But why is it failed on node information? or this is what jira task is about?
Is this is direct collecting? not via pmm agent?
nurlan
April 16, 2025, 8:18am
7
yes, that’s what Jira task is about
nurlan
April 16, 2025, 8:19am
8
it depends on metrics mode selected, if it’s push(default for cli) then vmagent will collect and push to PMM Server. if it’s pull then PMM Server will collect directly.