Skip to content

can we have the Postgres collector yml file example #385

Closed Answered by burningalchemist
saranggm asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @saranggm, I guess you can have a look at the example here:

config:
target:
data_source_name: 'postgresql://postgres:[email protected]:5432?sslmode=disable'
collectors: [active_connections]
collectors:
- collector_name: active_connections
metrics:
- metric_name: active_connections
type: gauge
help: 'Active connections'
key_labels:
- "datname"
- "usename"
- "state"
values:
- "count"
query_ref: active_connections
queries:
- query_name: active_connections
query: |

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by burningalchemist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants
Converted from issue

This discussion was converted from issue #380 on November 07, 2023 12:37.