Cannot enable exporter flags via pmm-admin

Description

pmm-admin doesn’t seem to have the ability to enable specific exporter flags (like the ones disabled by default), for example: from how can one enable collector.database_wraparound ?

How to test

None

How to document

None

Activity

Show:

Roma Novikov 
March 4, 2024 at 1:32 PM

I’m converting this to the request of managing Flags/collectors in general.

While the one specific collector will be worked on

Aaditya Dubey 
January 27, 2024 at 8:17 AM

Hi

Thank you for the report and feedback.

Daniel Guzman Burgos 
January 26, 2024 at 2:14 PM

Proposed workaround from engineering

Jiří Čtvrtka  6 hours ago

@dgb sure

  1. Go to env where PG exporter is running

  2. List running process there (for example ps aux | grep postgres or use different command)

  3. You should see something like:

So in my case postgres_exporter running under ID 16741.

  1. Use kill ID (from previous command)

  2. Now just run this binary again manually, but add one more flag to it and it is: collector.database_wraparound

So in my case it would be:

As you can see I just copy it out with all flags and added collector.database_wraparound to the end.

  1. Now it should run again with all provided flags. After while PMM should start scraping as usual and you should see collector enabled between flags of running PG exporter and also in output of PG exporter endpoint. Like this you should be able to customise (add/remove) all flags you need.

Details

Assignee

Reporter

Priority

Components

Needs QA

Needs Doc

Created January 25, 2024 at 9:32 PM
Updated November 13, 2024 at 9:47 AM