Collection of self-managed postgres metrics

These settings are for the self-managed postgres deployments.

For the collector to scrape data from postgres, it requires a few things. Please follow the instructions here and come back to this page.


The postgres instance needs to be annotated as following. Restart postgres after you make these changes.

postgresql: primary: podAnnotations: '["postgres"]' '[{}]' '[{"host": "%%host%%", "port":5432, "username": "<user-you-created>", "password" : "<password-you-chose>", "tags" : []}]' readReplicas: podAnnotations: '["postgres"]' '[{}]' '[{"host": "%%host%%", "port":5432, "username": "<user-you-created>", "password" : "<password-you-chose>", "tags" : []}]'