Skip to content

Commit bd601f8

Browse files
fixed dashbord
1 parent a07af2b commit bd601f8

File tree

2 files changed

+25
-24
lines changed

2 files changed

+25
-24
lines changed

grafana/provisioning/dashboards/dashboard.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
},
1616
{
1717
"type": "datasource",
18-
"id": "loki",
18+
"id": "Loki",
1919
"name": "Loki",
2020
"version": "1.0.0"
2121
},
2222
{
2323
"type": "datasource",
24-
"id": "prometheus",
24+
"id": "Prometheus",
2525
"name": "Prometheus",
2626
"version": "1.0.0"
2727
},
@@ -48,8 +48,8 @@
4848
},
4949
{
5050
"datasource": {
51-
"type": "loki",
52-
"uid": "loki"
51+
"type": "Loki",
52+
"uid": "Loki"
5353
},
5454
"enable": true,
5555
"expr": "{filename=\"/var/log/tns-app.log\"} |= \"error\"",
@@ -68,8 +68,8 @@
6868
"panels": [
6969
{
7070
"datasource": {
71-
"type": "prometheus",
72-
"uid": "prometheus"
71+
"type": "Prometheus",
72+
"uid": "Prometheus"
7373
},
7474
"fieldConfig": {
7575
"defaults": {
@@ -148,8 +148,8 @@
148148
"targets": [
149149
{
150150
"datasource": {
151-
"type": "prometheus",
152-
"uid": "prometheus"
151+
"type": "Prometheus",
152+
"uid": "Prometheus"
153153
},
154154
"editorMode": "code",
155155
"expr": "rate(tns_request_duration_seconds_count[5m])",
@@ -164,8 +164,8 @@
164164
},
165165
{
166166
"datasource": {
167-
"type": "prometheus",
168-
"uid": "prometheus"
167+
"type": "Prometheus",
168+
"uid": "Prometheus"
169169
},
170170
"fieldConfig": {
171171
"defaults": {
@@ -244,8 +244,8 @@
244244
"targets": [
245245
{
246246
"datasource": {
247-
"type": "prometheus",
248-
"uid": "prometheus"
247+
"type": "Prometheus",
248+
"uid": "Prometheus"
249249
},
250250
"editorMode": "code",
251251
"expr": "sum(rate(tns_request_duration_seconds_count[5m])) by(route)",
@@ -260,8 +260,8 @@
260260
},
261261
{
262262
"datasource": {
263-
"type": "loki",
264-
"uid": "loki"
263+
"type": "Loki",
264+
"uid": "Loki"
265265
},
266266
"gridPos": {
267267
"h": 9,
@@ -283,8 +283,8 @@
283283
"targets": [
284284
{
285285
"datasource": {
286-
"type": "loki",
287-
"uid": "loki"
286+
"type": "Loki",
287+
"uid": "Loki"
288288
},
289289
"editorMode": "code",
290290
"expr": "{filename=\"/var/log/tns-app.log\"}",
@@ -299,8 +299,8 @@
299299
},
300300
{
301301
"datasource": {
302-
"type": "loki",
303-
"uid": "loki"
302+
"type": "Loki",
303+
"uid": "Loki"
304304
},
305305
"gridPos": {
306306
"h": 9,
@@ -322,8 +322,8 @@
322322
"targets": [
323323
{
324324
"datasource": {
325-
"type": "loki",
326-
"uid": "loki"
325+
"type": "Loki",
326+
"uid": "Loki"
327327
},
328328
"editorMode": "code",
329329
"expr": "{filename=\"/var/log/tns-app.log\"} |= \"error\"",

grafana/provisioning/dashboards/dashboards.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ apiVersion: 1
33
providers:
44
- name: 'default'
55
orgId: 1
6-
folder: ''
6+
folder: ''
77
type: file
88
disableDeletion: false
99
editable: true
10+
options:
11+
path: /etc/grafana/provisioning/dashboards
1012

1113
dashboards:
1214
- name: 'Tutorial Dashboard (Completed)'
13-
type: 'file'
15+
type: file
1416
orgId: 1
1517
disableDeletion: false
1618
editable: true
17-
options:
18-
path: dashboard.json
19+
file: dashboard.json

0 commit comments

Comments
 (0)