Skip to content

Commit

Permalink
Update postgres-exporter to app v0.4.7 (helm#10079)
Browse files Browse the repository at this point in the history
Update to the latest postgres-exporter app release: 0.4.7

Merge in the new pg_statio_user_tables config: https://raw.githubusercontent.com/wrouesnel/postgres_exporter/42f9de480a8ab6f391d1cf85eb3dfe4261a14459/queries.yaml

Signed-off-by: Kevin Pullin <[email protected]>
  • Loading branch information
kppullin authored and k8s-ci-robot committed Dec 17, 2018
1 parent 8844806 commit 0951e9f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
4 changes: 2 additions & 2 deletions stable/prometheus-postgres-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
appVersion: "0.4.6"
appVersion: "0.4.7"
description: A Helm chart for prometheus postgres-exporter
name: prometheus-postgres-exporter
version: 0.6.0
version: 0.6.1
home: https://github.com/wrouesnel/postgres_exporter
sources:
- https://github.com/wrouesnel/postgres_exporter
Expand Down
36 changes: 35 additions & 1 deletion stable/prometheus-postgres-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ replicaCount: 1

image:
repository: wrouesnel/postgres_exporter
tag: v0.4.6
tag: v0.4.7
pullPolicy: IfNotPresent

service:
Expand Down Expand Up @@ -133,6 +133,40 @@ config:
usage: "COUNTER"
description: "Number of times this table has been analyzed by the autovacuum daemon"
pg_statio_user_tables:
query: "SELECT schemaname, relname, heap_blks_read, heap_blks_hit, idx_blks_read, idx_blks_hit, toast_blks_read, toast_blks_hit, tidx_blks_read, tidx_blks_hit FROM pg_statio_user_tables"
metrics:
- schemaname:
usage: "LABEL"
description: "Name of the schema that this table is in"
- relname:
usage: "LABEL"
description: "Name of this table"
- heap_blks_read:
usage: "COUNTER"
description: "Number of disk blocks read from this table"
- heap_blks_hit:
usage: "COUNTER"
description: "Number of buffer hits in this table"
- idx_blks_read:
usage: "COUNTER"
description: "Number of disk blocks read from all indexes on this table"
- idx_blks_hit:
usage: "COUNTER"
description: "Number of buffer hits in all indexes on this table"
- toast_blks_read:
usage: "COUNTER"
description: "Number of disk blocks read from this table's TOAST table (if any)"
- toast_blks_hit:
usage: "COUNTER"
description: "Number of buffer hits in this table's TOAST table (if any)"
- tidx_blks_read:
usage: "COUNTER"
description: "Number of disk blocks read from this table's TOAST table indexes (if any)"
- tidx_blks_hit:
usage: "COUNTER"
description: "Number of buffer hits in this table's TOAST table indexes (if any)"
pg_database:
query: " SELECT pg_database.datname, pg_database_size(pg_database.datname) as size FROM pg_database"
metrics:
Expand Down

0 comments on commit 0951e9f

Please sign in to comment.