-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64e802d
commit 09cbdb6
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |