Skip to content
Snippets Groups Projects

Adding Vacuum Queue metrics to postgres-exporter.yaml

Merged Emanuel Calvo requested to merge emanuel_ongres/omnibus-gitlab:infrastucture8494 into master
All threads resolved!

Updating postgres-exporter.yaml for integrating the Vacuum Queue stat to Prometheus.

Issue reference: https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/8494

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • unassigned @twk3

  • assigned to @mnohr

  • Emanuel Calvo added 1 commit

    added 1 commit

    • d64d672b - Added changelog for the postgres_exporter metric Vacuum Queue addition

    Compare with previous version

  • Emanuel Calvo resolved all threads

    resolved all threads

  • Emanuel Calvo added 1 commit

    added 1 commit

    • 873a55d9 - Update postgres-queries.yaml

    Compare with previous version

  • mentioned in issue #4887 (closed)

  • assigned to @dwilkins

  • David Wilkins
  • David Wilkins
    • Resolved by DJ Mountney

      @emanuel_ongres Thanks for your contribution! :tada: I made a couple of suggestions above for your consideration. I wanted to go ahead and get these to you since I think they're pretty straightforward. I'm continuing to do some deeper testing, but it might take a little time.

      Also, that's an impressive statement - it's a little challenging to spin it up on a dev environment and get some vacuums to kick off. My initial attempt included changing the where clause to ensure that postgres-exporter actually got some rows back from the query.

      I'm having a couple of issues with Grafana including the new pg_vacuum_queue_* metrics in it's type-ahead suggestions. Prometheus includes them in the type-ahead suggestions and I suspect that this difference has something to do with blank values for some columns in the queries. To be fair, I think those blank columns are due to my changes to the where clause. I'll let you know as soon as I know something definitive.

  • David Wilkins
    • Resolved by DJ Mountney

      @emanuel_ongres I've completed my checks - sorry for the delay. Just a few suggestions on naming and column types. Several of existing postgres-exporter queries return gauge columns that are NULL, so that doesn't seem to be a problem.

      This will be a great addition to the metrics!

  • DJ Mountney assigned to @emanuel_ongres and @twk3 and unassigned @mnohr

    assigned to @emanuel_ongres and @twk3 and unassigned @mnohr

  • Emanuel Calvo added 1 commit

    added 1 commit

    Compare with previous version

  • 🤖 GitLab Bot 🤖 changed milestone to %12.7

    changed milestone to %12.7

  • assigned to @dwilkins

  • David Wilkins
  • David Wilkins
  • David Wilkins
  • David Wilkins
  • Emanuel Calvo added 1 commit

    added 1 commit

    • 6a0ce0b6 - Done updates to the postgres-queries.yaml

    Compare with previous version

  • Emanuel Calvo added 1 commit

    added 1 commit

    • a8872f8b - Fixed the query and output postgres-queries.yaml

    Compare with previous version

  • assigned to @dwilkins

  • 🤖 GitLab Bot 🤖 changed milestone to %12.8

    changed milestone to %12.8

    • Resolved by David Wilkins

      @twk3 the query and metric definition look good to me :thumbsup: . My only concern is that it might not return metrics for tables in the gitabhq_* database due to the setting in /opt/gitlab/etc/postgres-exporter/env/DATA_SOURCE_NAME.

  • David Wilkins approved this merge request

    approved this merge request

  • mentioned in issue #5015 (closed)

  • DJ Mountney resolved all threads

    resolved all threads

  • DJ Mountney approved this merge request

    approved this merge request

  • merged

  • DJ Mountney mentioned in commit 79dcb605

    mentioned in commit 79dcb605

  • Contributor
  • 🤖 GitLab Bot 🤖 added grouprespond label and removed 1 deleted label

    added grouprespond label and removed 1 deleted label

  • Please register or sign in to reply
    Loading