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

Add more metrics to prometheus endpoint #263

Merged
merged 1 commit into from
Jan 19, 2023

Conversation

magec
Copy link
Collaborator

@magec magec commented Dec 20, 2022

Currently prometheus endpoint only outputs metrics related with 'stats' (those shown in a SHOW STATS admin command).

This change:

  • Adds server metrics to prometheus endpoint.
  • Adds database metrics to prometheus endpoint.
  • Adds pools metrics to prometheus endpoint.
  • Change metrics name to have a prefix of (stats|pools|databases|servers).

This change is not backward compatible as metric names are now prefixed. Maybe we can leave current metric names 'as is' and add prefixes only for the new stuff, but I like it more with everything prefixed.

/cc @dat2

This change:
- Adds server metrics to prometheus endpoint.
- Adds database metrics to prometheus endpoint.
- Adds pools metrics to prometheus endpoint.
- Change metrics name to have a prefix of (stats|pools|databases|servers).
Copy link
Contributor

@levkk levkk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool!

@levkk levkk merged commit c58f955 into postgresml:main Jan 19, 2023
@magec magec deleted the improve-prometheus-metrics branch January 19, 2023 16:40
jmeagher pushed a commit to jmeagher/pgcat that referenced this pull request Feb 17, 2023
Contains
chore(deps): bump tokio from 1.24.1 to 1.24.2 (postgresml#286)
Log error messages for network failures (postgresml#289)
Removes message cloning operation required for query router (postgresml#285)
Add more metrics to prometheus endpoint (postgresml#263)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants