Skip to content
Snippets Groups Projects
This project is mirrored from https://gitlab.com/gitlab-org/build/omnibus-mirror/postgres_exporter.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
  1. Jul 28, 2022
  2. Jun 15, 2022
  3. Feb 23, 2022
    • Joe Adams's avatar
      refactor pg_stat_bgwriter metrics into standalone collector · 27d23d02
      Joe Adams authored
      
      This moves the metrics that are queried from pg_stat_bgwriter into a dedicated collector instead of dynamically generating queries and metrics from a map. It renames some metrics including adding the `_total` suffix on all of the counters to match prometheus standards. This implementation uses QueryRowContext to allow for later addition of context for cancellation. From the Postgres documentation, it states that there is one line per WAL sender process, but it is unclear how to differentiate between them in any meaningful way. When querying the table, there is no column to identify the row, only metrics about bgwriter.
      
      Signed-off-by: default avatarJoe Adams <github@joeadams.io>
      27d23d02
  4. Jan 18, 2022
  5. Nov 29, 2021
  6. Nov 17, 2021
  7. Sep 08, 2021
    • Xela's avatar
      Add some SQL in README.md · 20aefc2e
      Xela authored
      
      Getting the error when adding non-root postgres user for exporter:
      ```
      postgres=# CREATE OR REPLACE FUNCTION get_pg_stat_statements() RETURNS SETOF pg_stat_statements AS
      postgres-# $$ SELECT * FROM public.pg_stat_statements; $$
      postgres-# LANGUAGE sql
      postgres-# VOLATILE
      postgres-# SECURITY DEFINER;
      ERROR:  type "pg_stat_statements" does not exist
      ```
      Add following sql command for enable pg_stat_statements:
      ```
      CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
      ```
      
      Signed-off-by: default avatarXela Tirdan <xelatirdan@gmail.com>
      20aefc2e
  8. Aug 24, 2021
  9. Aug 02, 2021
  10. Apr 19, 2021
  11. Mar 11, 2021
  12. Mar 02, 2021
  13. Feb 28, 2021
  14. Feb 23, 2021
  15. Dec 24, 2020
  16. Aug 28, 2020
  17. Apr 09, 2020
  18. Nov 19, 2019
  19. Oct 31, 2019
  20. Oct 30, 2019
  21. Aug 12, 2019
  22. Jul 12, 2019
  23. Jul 03, 2019
  24. Jun 30, 2019
  25. Jun 15, 2019
  26. Feb 20, 2019
  27. Dec 18, 2018
  28. Nov 11, 2018
  29. Nov 02, 2018
  30. Jul 16, 2018
  31. Mar 20, 2018