Skip to content

Conversation

@qfritz
Copy link
Contributor

@qfritz qfritz commented Feb 2, 2024

Last commits to update our tutorials and reference after migration to sql-exporter.

🙋 Would you be able to check the exporter-deployment.md file please, and complete it if needed? Thanks in advance.

@qfritz qfritz requested a review from vmercierfr February 2, 2024 09:25
- idx_blks_hit:
usage: "COUNTER"
description: "Number of buffer hits in all indexes on this table"
CREATE ROLE sql_exporter IN ROLE pg_monitor PASSWORD 'hackme' LOGIN; -- You may use a better password
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should use prometheus_sql_exporter

Suggested change
CREATE ROLE sql_exporter IN ROLE pg_monitor PASSWORD 'hackme' LOGIN; -- You may use a better password
CREATE ROLE prometheus_sql_exporter IN ROLE pg_monitor PASSWORD 'hackme' LOGIN; -- You may use a better password

- postgres_15_instance_pg_stat_bgwriter
static_configs:
- targets:
pg1: 'pg://sql_exporter:${PASSWORD}@127.0.0.1:25432/postgres'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
pg1: 'pg://sql_exporter:${PASSWORD}@127.0.0.1:25432/postgres'
pg1: 'pg://prometheus_sql_exporter:${PASSWORD}@127.0.0.1:5432/postgres'

- postgres_15_database_pg_statio_user_tables
static_configs:
- targets:
db1: 'pg://sql_exporter:${PASSWORD}@127.0.0.1:25432/db1'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
db1: 'pg://sql_exporter:${PASSWORD}@127.0.0.1:25432/db1'
db1: 'pg://prometheus_sql_exporter:${PASSWORD}@127.0.0.1:5432/db1'

static_configs:
- targets:
db1: 'pg://sql_exporter:${PASSWORD}@127.0.0.1:25432/db1'
db2: 'pg://sql_exporter:${PASSWORD}@127.0.0.1:25432/db2'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
db2: 'pg://sql_exporter:${PASSWORD}@127.0.0.1:25432/db2'
db2: 'pg://prometheus_sql_exporter:${PASSWORD}@127.0.0.1:5432/db2'

@qfritz qfritz marked this pull request as draft July 4, 2024 12:52
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.

3 participants