-
Notifications
You must be signed in to change notification settings - Fork 34
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 config to set target database for metric query #450
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ spec: | |
image: quay.io/prometheuscommunity/postgres-exporter:v0.12.0 | ||
queries: | ||
pgmq: | ||
query: select queue_name, queue_length, oldest_msg_age_sec, newest_msg_age_sec, total_messages from public.pgmq_metrics_all() | ||
query: select queue_name, queue_length, oldest_msg_age_sec, newest_msg_age_sec, total_messages from pgmq.metrics_all() | ||
master: true | ||
metrics: | ||
- queue_name: | ||
|
@@ -73,6 +73,8 @@ spec: | |
- total_messages: | ||
description: Total number of messages that have passed into the queue. | ||
usage: GAUGE | ||
target_databases: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we also need to add this to the Stack definition at src/stacks/templates? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No it will add it automatically when reconciling the |
||
- "postgres" | ||
runtime_config: | ||
- name: shared_buffers | ||
value: "1024MB" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to fix a clippy warning where
path
isn't being used.