Skip to content

Feature queries from file #11

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

Merged

Conversation

noushi
Copy link
Contributor

@noushi noushi commented Jun 29, 2016

Hi @wrouesnel ,

This PR adds support for custom queries in an external YAML file.

SHOW variables are not supported yet.

It should help close #1 .

I've deployed it yesterday and we're successfully getting metrics from our 54 Postgres replicas.

@wrouesnel
Copy link
Contributor

Very nice! I'll review and merge asap.

@noushi
Copy link
Contributor Author

noushi commented Jun 29, 2016

👍 Thanks!
It'll probably need some variable and function renaming to fit the Go standard.
I'll do it asap.

@noushi
Copy link
Contributor Author

noushi commented Jun 29, 2016

Done.
I'll wait for your review.

Btw, the yaml metric is a custom one we use, so it would probably make sense to update queries.yaml to have names that closely reflect the Pg admin functions.

@ncabatoff
Copy link
Contributor

I found an issue with noushi's PR so I created a PR on it (noushi#1), not sure if that's the right way to do it? Just thought I'd mention it here so that you incorporate the fix when you merge this PR, in case noushi hasn't done so himself.

@wrouesnel wrouesnel merged commit 895166b into prometheus-community:master Sep 8, 2016
@noushi
Copy link
Contributor Author

noushi commented Sep 9, 2016

Thank you @wrouesnel @ncabatoff .

dehaansa pushed a commit to dehaansa/postgres_exporter that referenced this pull request Oct 24, 2024
Sticksman pushed a commit to Sticksman/postgres_exporter that referenced this pull request Apr 24, 2025
…pc_deployment

Separate k8s vpc deployment for postgres-exporter
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.

binary replication montitoring metrics
3 participants