1
1
groups:
2
2
- name: synapse
3
3
rules:
4
- # These 3 rules are used in the included Prometheus console
4
+
5
+ ###
6
+ ### Prometheus Console Only
7
+ ### The following rules are only needed if you use the Prometheus Console
8
+ ### in contrib/prometheus/consoles/synapse.html
9
+ ###
5
10
- record: 'synapse_federation_client_sent'
6
11
labels:
7
12
type: "EDU"
@@ -15,7 +20,6 @@ groups:
15
20
type: "Query"
16
21
expr: 'sum(synapse_federation_client_sent_queries) by (job)'
17
22
18
- # These 3 rules are used in the included Prometheus console
19
23
- record: 'synapse_federation_server_received'
20
24
labels:
21
25
type: "EDU"
@@ -29,7 +33,6 @@ groups:
29
33
type: "Query"
30
34
expr: 'sum(synapse_federation_server_received_queries) by (job)'
31
35
32
- # These 2 rules are used in the included Prometheus console
33
36
- record: 'synapse_federation_transaction_queue_pending'
34
37
labels:
35
38
type: "EDU"
@@ -38,8 +41,16 @@ groups:
38
41
labels:
39
42
type: "PDU"
40
43
expr: 'synapse_federation_transaction_queue_pending_pdus + 0'
44
+ ###
45
+ ### End of 'Prometheus Console Only' rules block
46
+ ###
47
+
41
48
42
- # These 3 rules are used in the included Grafana dashboard
49
+ ###
50
+ ### Grafana Only
51
+ ### The following rules are only needed if you use the Grafana dashboard
52
+ ### in contrib/grafana/synapse.json
53
+ ###
43
54
- record: synapse_storage_events_persisted_by_source_type
44
55
expr: sum without(type, origin_type, origin_entity) (synapse_storage_events_persisted_events_sep_total{origin_type="remote"})
45
56
labels:
@@ -53,11 +64,11 @@ groups:
53
64
labels:
54
65
type: bridges
55
66
56
- # This rule is used in the included Grafana dashboard
57
67
- record: synapse_storage_events_persisted_by_event_type
58
68
expr: sum without(origin_entity, origin_type) (synapse_storage_events_persisted_events_sep_total)
59
69
60
- # This rule is used in the included Grafana dashboard
61
70
- record: synapse_storage_events_persisted_by_origin
62
71
expr: sum without(type) (synapse_storage_events_persisted_events_sep_total)
63
-
72
+ ###
73
+ ### End of 'Grafana Only' rules block
74
+ ###
0 commit comments