Skip to content

Commit 181a552

Browse files
authored
PostgreSQL observ lib (#1565)
* draft * add settings table * some other improvements * add cluster dashboard * some other improvements * fix queries dashboard * cleanup prolixive comments * small fixes * lint * add mixtool * lint * add lint exclusions * add lint exclusions * grr pattern * several improvements * rename instance dashboard and clean orphaned signals and panels * small improv * .lint update * other improvements * lint * refactor table queries to use queriesSelector * correct threshold colors * lint * formatting * more name formatting * lint * format table * fix signal
1 parent 297984b commit 181a552

32 files changed

+12514
-0
lines changed

postgres-observ-lib/.go-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.25.1

postgres-observ-lib/.lint

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
exclusions:
2+
panel-datasource-rule:
3+
reason: "grafonnet created panels use --Mixed-- datasource by default"
4+
5+
template-instance-rule:
6+
reason: "Instance selector is single-select for instance-specific dashboards; Cluster dashboard is cluster-wide"
7+
entries:
8+
- dashboard: "PostgreSQL cluster overview"
9+
- dashboard: "PostgreSQL instance overview"
10+
- dashboard: "PostgreSQL query performance"
11+
12+
target-instance-rule:
13+
reason: "Cluster level dashboard shows all instances"
14+
entries:
15+
- dashboard: "PostgreSQL cluster overview"
16+
17+
panel-units-rule:
18+
reason: "rows/s is semantically correct; table panels don't require units"
19+
entries:
20+
- panel: "Write operations (primary)"
21+
- panel: "Read operations by instance"
22+
- panel: "Rows activity"
23+
- panel: "Top queries by rows"
24+
- panel: "Unused indexes"
25+
- panel: "PostgreSQL settings"
26+
- panel: "Read/Write over time"

postgres-observ-lib/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include ../Makefile_mixin

0 commit comments

Comments
 (0)