You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: grafana/provisioning/dashboards/anms-monitor.json
+77-61Lines changed: 77 additions & 61 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@
24
24
"editable": true,
25
25
"fiscalYearStartMonth": 0,
26
26
"graphTooltip": 0,
27
-
"id": 1,
27
+
"id": 0,
28
28
"links": [],
29
29
"panels": [
30
30
{
@@ -117,11 +117,12 @@
117
117
"type": "postgres",
118
118
"uid": "amp_core"
119
119
},
120
+
"editorMode": "code",
120
121
"format": "time_series",
121
122
"group": [],
122
123
"metricColumn": "none",
123
124
"rawQuery": true,
124
-
"rawSql": "SELECT\n $__timeGroup(reference_time::timestamp,'1m') as time,\n count(report_list) as value,\n agent_endpoint_uri AS metric\nFROM ari_rptset join registered_agents on ari_rptset.agent_id = registered_agents.registered_agents_id\ngroup by 1, agent_endpoint_uri\norder by time asc",
125
+
"rawSql": "SELECT\n $__timeGroup(reference_time::timestamp,'1m') as time,\n count(report_items) as value,\n agent_endpoint_uri AS metric\nFROM vw_ari_rpt_set join registered_agents on vw_ari_rpt_set.agent_id = registered_agents.registered_agents_id\ngroup by 1, agent_endpoint_uri\norder by time asc",
125
126
"refId": "A",
126
127
"select": [
127
128
[
@@ -133,6 +134,23 @@
133
134
}
134
135
]
135
136
],
137
+
"sql": {
138
+
"columns": [
139
+
{
140
+
"parameters": [],
141
+
"type": "function"
142
+
}
143
+
],
144
+
"groupBy": [
145
+
{
146
+
"property": {
147
+
"type": "string"
148
+
},
149
+
"type": "groupBy"
150
+
}
151
+
],
152
+
"limit": 50
153
+
},
136
154
"timeColumn": "time",
137
155
"where": [
138
156
{
@@ -458,11 +476,12 @@
458
476
"type": "postgres",
459
477
"uid": "amp_core"
460
478
},
479
+
"editorMode": "code",
461
480
"format": "table",
462
481
"group": [],
463
482
"metricColumn": "none",
464
483
"rawQuery": true,
465
-
"rawSql": "-- all reports \nSELECT \n reference_time,\n agent_id, \nreport_list\nFROM\nari_rptset",
484
+
"rawSql": "-- all reports \nSELECT \n reference_time,\nmgr_time,\nagent_id, \nencode(time_offset,'hex') as time_offset,\n encode(report_source,'hex') as report_source,\n report_items\nFROM\nvw_ari_rpt_set",
0 commit comments