Mercurial > prosody-modules
annotate misc/grafterm/dashboard.json @ 5897:896e7c7bf87f
Merge
author | Stephen Paul Weber <singpolyma@singpolyma.net> |
---|---|
date | Tue, 30 Apr 2024 15:07:06 -0500 |
parents | 7e6bf0a5aef2 |
children |
rev | line source |
---|---|
5739
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1 { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
2 "version": "v1", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
3 "datasources": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
4 "prometheus": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
5 "prometheus": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
6 "address": "http://127.0.0.1:9090" |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
7 } |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
8 } |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
9 }, |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
10 "dashboard": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
11 "variables": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
12 "job": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
13 "constant": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
14 "value": "prosody" |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
15 } |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
16 } |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
17 }, |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
18 "widgets": [ |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
19 { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
20 "title": "CPU", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
21 "gridPos": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
22 "w": 50 |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
23 }, |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
24 "graph": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
25 "visualization": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
26 "yAxis": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
27 "unit": "percent", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
28 "decimals": 2 |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
29 } |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
30 }, |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
31 "queries": [ |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
32 { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
33 "datasourceID": "prometheus", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
34 "expr": "rate(process_cpu_seconds_total{job=\"{{.job}}\"}[5m])", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
35 "legend": "CPU" |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
36 } |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
37 ] |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
38 } |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
39 }, |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
40 { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
41 "title": "Memory", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
42 "gridPos": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
43 "w": 50 |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
44 }, |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
45 "graph": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
46 "visualization": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
47 "yAxis": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
48 "unit": "bytes" |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
49 } |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
50 }, |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
51 "queries": [ |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
52 { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
53 "datasourceID": "prometheus", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
54 "expr": "max_over_time(process_resident_memory_bytes{job=\"{{.job}}\"}[5m])", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
55 "legend": "RSS" |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
56 }, |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
57 { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
58 "datasourceID": "prometheus", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
59 "expr": "max_over_time(malloc_heap_used_bytes{job=\"{{.job}}\"}[5m])", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
60 "legend": "Malloc" |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
61 }, |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
62 { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
63 "datasourceID": "prometheus", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
64 "expr": "max_over_time(lua_heap_bytes{job=\"{{.job}}\"}[5m])", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
65 "legend": "Lua" |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
66 } |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
67 ] |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
68 } |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
69 }, |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
70 { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
71 "title": "C2S", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
72 "gridPos": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
73 "x": 50, |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
74 "w": 50 |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
75 }, |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
76 "graph": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
77 "visualization": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
78 "yAxis": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
79 "unit": "none", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
80 "decimals": 0 |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
81 } |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
82 }, |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
83 "queries": [ |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
84 { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
85 "datasourceID": "prometheus", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
86 "expr": "sum(prosody_mod_c2s__connections{type=\"c2s\",job=\"{{.job}}\"})", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
87 "legend": "c2s" |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
88 } |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
89 ] |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
90 } |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
91 }, |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
92 { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
93 "title": "S2S", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
94 "gridPos": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
95 "x": 50, |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
96 "w": 50 |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
97 }, |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
98 "graph": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
99 "visualization": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
100 "yAxis": { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
101 "unit": "none", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
102 "decimals": 0 |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
103 } |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
104 }, |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
105 "queries": [ |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
106 { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
107 "datasourceID": "prometheus", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
108 "expr": "sum(prosody_mod_s2s__connections_inbound{type=\"s2sin\",job=\"{{.job}}\"})", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
109 "legend": "s2sin" |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
110 }, |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
111 { |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
112 "datasourceID": "prometheus", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
113 "expr": "sum(prosody_mod_s2s__connections_outbound{type=\"s2sout\",job=\"{{.job}}\"})", |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
114 "legend": "s2sout" |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
115 } |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
116 ] |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
117 } |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
118 } |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
119 ] |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
120 } |
7e6bf0a5aef2
misc: Add a basic grafterm dashboard
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
121 } |