Skip to content

Commit 0d98cc7

Browse files
committed
hosting(grafana): update log queries
1 parent 06ffa50 commit 0d98cc7

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

hosting/terraform/grafana/dashboards/synd-api.json

+18-18
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"sort": "none"
102102
}
103103
},
104-
"pluginVersion": "11.3.0-75812",
104+
"pluginVersion": "11.4.0-77868",
105105
"targets": [
106106
{
107107
"datasource": {
@@ -203,7 +203,7 @@
203203
"sort": "none"
204204
}
205205
},
206-
"pluginVersion": "11.3.0-75812",
206+
"pluginVersion": "11.4.0-77868",
207207
"targets": [
208208
{
209209
"datasource": {
@@ -291,15 +291,15 @@
291291
"textMode": "auto",
292292
"wideLayout": true
293293
},
294-
"pluginVersion": "11.3.0-75812",
294+
"pluginVersion": "11.4.0-77868",
295295
"targets": [
296296
{
297297
"datasource": {
298298
"type": "loki",
299299
"uid": "grafanacloud-logs"
300300
},
301301
"editorMode": "code",
302-
"expr": "count(count(count_over_time({job=\"syndicationd/synd-api\"} | json | attributes_operation = \"FetchEntries\" and attributes_result = \"success\"[1w])) by (attributes_enduser_id))",
302+
"expr": "count(count(count_over_time({service_name=\"synd-api\", service_namespace=\"syndicationd\"} | operation = \"FetchEntries\" and result = \"success\"[1w])) by (attributes_enduser_id))",
303303
"queryType": "range",
304304
"refId": "A"
305305
}
@@ -366,7 +366,7 @@
366366
"sizing": "auto",
367367
"valueMode": "color"
368368
},
369-
"pluginVersion": "11.3.0-75812",
369+
"pluginVersion": "11.4.0-77868",
370370
"targets": [
371371
{
372372
"datasource": {
@@ -475,7 +475,7 @@
475475
"sort": "none"
476476
}
477477
},
478-
"pluginVersion": "11.3.0-75812",
478+
"pluginVersion": "11.4.0-77868",
479479
"targets": [
480480
{
481481
"datasource": {
@@ -629,7 +629,7 @@
629629
"sort": "none"
630630
}
631631
},
632-
"pluginVersion": "11.3.0-75812",
632+
"pluginVersion": "11.4.0-77868",
633633
"targets": [
634634
{
635635
"datasource": {
@@ -732,7 +732,7 @@
732732
"sort": "none"
733733
}
734734
},
735-
"pluginVersion": "11.3.0-75812",
735+
"pluginVersion": "11.4.0-77868",
736736
"targets": [
737737
{
738738
"datasource": {
@@ -805,7 +805,7 @@
805805
},
806806
"showHeader": true
807807
},
808-
"pluginVersion": "11.3.0-75812",
808+
"pluginVersion": "11.4.0-77868",
809809
"targets": [
810810
{
811811
"datasource": {
@@ -885,15 +885,15 @@
885885
"sortOrder": "Descending",
886886
"wrapLogMessage": true
887887
},
888-
"pluginVersion": "11.3.0-75812",
888+
"pluginVersion": "11.4.0-77868",
889889
"targets": [
890890
{
891891
"datasource": {
892892
"type": "loki",
893893
"uid": "grafanacloud-logs"
894894
},
895-
"editorMode": "builder",
896-
"expr": "{job=\"syndicationd/synd-api\", level=\"ERROR\"} |= ``",
895+
"editorMode": "code",
896+
"expr": "{service_namespace=\"syndicationd\", service_name = \"synd-api\", level=\"ERROR\"} |= ``",
897897
"queryType": "range",
898898
"refId": "A"
899899
}
@@ -976,7 +976,7 @@
976976
"sort": "none"
977977
}
978978
},
979-
"pluginVersion": "11.3.0-75812",
979+
"pluginVersion": "11.4.0-77868",
980980
"targets": [
981981
{
982982
"datasource": {
@@ -1078,7 +1078,7 @@
10781078
"sort": "none"
10791079
}
10801080
},
1081-
"pluginVersion": "11.3.0-75812",
1081+
"pluginVersion": "11.4.0-77868",
10821082
"targets": [
10831083
{
10841084
"datasource": {
@@ -1190,7 +1190,7 @@
11901190
"sort": "none"
11911191
}
11921192
},
1193-
"pluginVersion": "11.3.0-75812",
1193+
"pluginVersion": "11.4.0-77868",
11941194
"targets": [
11951195
{
11961196
"datasource": {
@@ -1214,19 +1214,19 @@
12141214
],
12151215
"preload": false,
12161216
"refresh": "1h",
1217-
"schemaVersion": 39,
1217+
"schemaVersion": 40,
12181218
"tags": [],
12191219
"templating": {
12201220
"list": []
12211221
},
12221222
"time": {
1223-
"from": "now-12h",
1223+
"from": "now-2d",
12241224
"to": "now"
12251225
},
12261226
"timepicker": {},
12271227
"timezone": "browser",
12281228
"title": "synd-api",
12291229
"uid": "cdd2yfdz497uoc",
1230-
"version": 45,
1230+
"version": 47,
12311231
"weekStart": ""
12321232
}

0 commit comments

Comments
 (0)