Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load custom queries with postgres exporter #137

Open
idoqo opened this issue Sep 3, 2022 · 0 comments
Open

Load custom queries with postgres exporter #137

idoqo opened this issue Sep 3, 2022 · 0 comments
Labels
hacktoberfest Hacktoberfest issues

Comments

@idoqo
Copy link
Collaborator

idoqo commented Sep 3, 2022

We currently visualize postgres metrics in grafana using the dashboard at pg-exporter-dashboard.json.

This dashboard contains some metrics that don't seem to be loaded by default and show up as N/A on the dashboard. Some of such metrics are:

  • Total Database Size (pg_database_size())
  • PostgreSQL uptime (pg_postmaster_start_time()).

We can make these metrics available by starting postgres_exporter with the extend.query-path flag and pass in their custom queries file.

@idoqo idoqo added the hacktoberfest Hacktoberfest issues label Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Hacktoberfest issues
Projects
None yet
Development

No branches or pull requests

1 participant