forked from HHS/TANF-app
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3174 from raft-tech/3047-plg-mvp
Local PLG MVP
- Loading branch information
Showing
7 changed files
with
233 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
155 changes: 155 additions & 0 deletions
155
tdrs-backend/plg/grafana/dashboards/loki_test_dashboard.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
{ | ||
"annotations": { | ||
"list": [ | ||
{ | ||
"builtIn": 1, | ||
"datasource": { | ||
"type": "grafana", | ||
"uid": "-- Grafana --" | ||
}, | ||
"enable": true, | ||
"hide": true, | ||
"iconColor": "rgba(0, 211, 255, 1)", | ||
"name": "Annotations & Alerts", | ||
"type": "dashboard" | ||
} | ||
] | ||
}, | ||
"editable": true, | ||
"fiscalYearStartMonth": 0, | ||
"graphTooltip": 0, | ||
"links": [], | ||
"panels": [ | ||
{ | ||
"datasource": { | ||
"name": "Loki", | ||
"type": "loki", | ||
"uid": "L8E80F9AEF21F6940" | ||
}, | ||
"gridPos": { | ||
"h": 8, | ||
"w": 24, | ||
"x": 0, | ||
"y": 0 | ||
}, | ||
"id": 1, | ||
"options": { | ||
"dedupStrategy": "none", | ||
"enableLogDetails": true, | ||
"prettifyLogMessage": true, | ||
"showCommonLabels": false, | ||
"showLabels": false, | ||
"showTime": false, | ||
"sortOrder": "Descending", | ||
"wrapLogMessage": false | ||
}, | ||
"targets": [ | ||
{ | ||
"datasource": { | ||
"type": "loki", | ||
"uid": "L8E80F9AEF21F6940" | ||
}, | ||
"expr": "{job=\"django\"}", | ||
"queryType": "range", | ||
"refId": "A" | ||
} | ||
], | ||
"title": "Django Logs", | ||
"type": "logs" | ||
}, | ||
{ | ||
"datasource": { | ||
"name": "Loki", | ||
"type": "loki", | ||
"uid": "L8E80F9AEF21F6940" | ||
}, | ||
"gridPos": { | ||
"h": 10, | ||
"w": 24, | ||
"x": 0, | ||
"y": 8 | ||
}, | ||
"id": 2, | ||
"options": { | ||
"dedupStrategy": "none", | ||
"enableLogDetails": true, | ||
"prettifyLogMessage": false, | ||
"showCommonLabels": false, | ||
"showLabels": false, | ||
"showTime": false, | ||
"sortOrder": "Descending", | ||
"wrapLogMessage": false | ||
}, | ||
"targets": [ | ||
{ | ||
"datasource": { | ||
"type": "loki", | ||
"uid": "L8E80F9AEF21F6940" | ||
}, | ||
"expr": "{job=\"nginx\"}", | ||
"queryType": "range", | ||
"refId": "A" | ||
} | ||
], | ||
"title": "Nginx Logs", | ||
"type": "logs" | ||
}, | ||
{ | ||
"datasource": { | ||
"name": "Loki", | ||
"type": "loki", | ||
"uid": "L8E80F9AEF21F6940" | ||
}, | ||
"gridPos": { | ||
"h": 9, | ||
"w": 24, | ||
"x": 0, | ||
"y": 18 | ||
}, | ||
"id": 3, | ||
"options": { | ||
"dedupStrategy": "none", | ||
"enableLogDetails": true, | ||
"prettifyLogMessage": false, | ||
"showCommonLabels": false, | ||
"showLabels": false, | ||
"showTime": false, | ||
"sortOrder": "Descending", | ||
"wrapLogMessage": false | ||
}, | ||
"targets": [ | ||
{ | ||
"datasource": { | ||
"type": "loki", | ||
"uid": "L8E80F9AEF21F6940" | ||
}, | ||
"expr": "{job=\"varlogs\"}", | ||
"queryType": "range", | ||
"refId": "A" | ||
} | ||
], | ||
"title": "Promtail varlogs", | ||
"type": "logs" | ||
} | ||
], | ||
"schemaVersion": 39, | ||
"tags": [ | ||
"Loki", | ||
"Logs", | ||
"Nginx", | ||
"Django" | ||
], | ||
"templating": { | ||
"list": [] | ||
}, | ||
"time": { | ||
"from": "now-30m", | ||
"to": "now" | ||
}, | ||
"timepicker": {}, | ||
"timezone": "browser", | ||
"title": "Loki Test", | ||
"uid": "adx2v8wzehla8e", | ||
"version": 1, | ||
"weekStart": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
server: | ||
http_listen_port: 9080 | ||
grpc_listen_port: 0 | ||
|
||
positions: | ||
filename: /tmp/positions.yaml | ||
|
||
clients: | ||
- url: http://loki:3100/loki/api/v1/push | ||
|
||
scrape_configs: | ||
- job_name: system | ||
static_configs: | ||
- targets: | ||
- localhost | ||
labels: | ||
job: varlogs | ||
__path__: /var/log/*log | ||
- job_name: django | ||
static_configs: | ||
- targets: | ||
- localhost | ||
labels: | ||
job: django | ||
__path__: /logs/django.log | ||
- job_name: nginx | ||
static_configs: | ||
- targets: | ||
- localhost | ||
labels: | ||
job: nginx | ||
__path__: /var/log/nginx/*log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters