Add custom lines into vmagent under pmm-agent

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

Hi,
you can add you exporter as external one and VMAgent will scrape it.
For PMM 2 External Services - Percona Monitoring and Management
For PMM 3 Connect external instance - Percona Monitoring and Management

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

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?

yes, that’s what Jira task is about

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.