Skip to content

Commit

Permalink
Add dremio dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonbyrdziak committed Nov 10, 2023
1 parent 64e802d commit 09cbdb6
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions dremio/helm/dremio/templates/dashboards.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
apiVersion: platform.plural.sh/v1alpha1
kind: Dashboard
metadata:
name: dremio-postgres
spec:
name: postgres # name of the dashboard in the console UI
description: Monitoring for hasura's postgres db # short description
timeslices: [30m, 1h, 2h, 1d] # durations options to allow display for
defaultTime: 30m
labels: # global values to slice the dashboard further
- name: instance
query:
query: pg_stat_database_tup_fetched{namespace="{{ .Release.Namespace }}"}
label: instance
graphs:
- queries: # list of grouped prometheus queries per graph
- query: SUM(pg_stat_database_tup_fetched{instance=~"$instance"})
legend: tuples fetched
- query: SUM(pg_stat_database_tup_inserted{instance=~"$instance"})
legend: tuples inserted
- query: SUM(pg_stat_database_tup_updated{instance=~"$instance"})
legend: tuples updated
name: Storage Performance
- queries:
- query: pg_settings_max_connections{instance="$instance"}
legend: connections
name: Max Connections
- queries:
- query: avg(rate(process_cpu_seconds_total{instance="$instance"}[5m]) * 1000)
legend: seconds
name: CPU time
- queries:
- query: avg(rate(process_resident_memory_bytes{instance="$instance"}[5m]))
legend: resident mem
- query: avg(rate(process_virtual_memory_bytes{instance="$instance"}[5m]))
legend: process mem
format: bytes
name: Memory utilization
- queries:
- query: process_open_fds{instance="$instance"}
legend: fds
name: Open file descriptors
- queries:
- query: pg_settings_max_wal_size_bytes{instance="$instance"}
legend: WAL size
name: Max WAL size
- queries:
- query: irate(pg_stat_database_xact_commit{instance="$instance"}[5m])
legend: commits
- query: irate(pg_stat_database_xact_rollback{instance="$instance"}[5m])
legend: rollbacks
name: Transactions
- queries:
- query: pg_stat_database_blks_hit{instance="$instance"} / (pg_stat_database_blks_read{instance="$instance"} + pg_stat_database_blks_hit{instance="$instance"})
legend: hit rate
name: Cache hit rate

0 comments on commit 09cbdb6

Please sign in to comment.