This commit is contained in:
Colin 2024-04-21 12:20:52 -04:00
parent d19a259f52
commit 2fa57996bc
6 changed files with 19 additions and 51 deletions

View File

@ -1,11 +0,0 @@
datasources:
- name: Loki
type: loki
access: proxy # Access mode: 'proxy' (default) or 'direct'
url: http://loki_loki
jsonData:
maxLines: 1000 # Maximum number of lines returned per query
# basicAuth:
# username: myuser
# password: mypassword
default_home_dashboard = Loki

View File

@ -1,17 +0,0 @@
{
"title": "Loki",
"panels": [
{
"title": "Error Rate",
"type": "graph",
"datasource": "Loki",
"targets": [
{
"expr": 'sum(rate({job="my-app", level="error"}[1m])) by (level)',
"legendFormat": "{{level}}",
"refId": "A"
}
]
}
]
}

View File

@ -0,0 +1,11 @@
apiVersion: 1
providers:
- name: 'default'
orgId: 1
folder: ''
type: file
disableDeletion: false
editable: true
options:
path: /var/lib/grafana/dashboards/default

View File

@ -4,4 +4,6 @@ datasources:
- name: Loki
type: loki
access: proxy
url: http://loki_loki:3100
url: http://loki_loki:3100
jsonData:
maxLines: 1000

View File

@ -0,0 +1,5 @@
[server]
domain = grafana.nixc.us
[auth.anonymous]
enabled = false

View File

@ -2,19 +2,8 @@ version: "3.7"
services:
loki:
image: git.nixc.us/nixius/loki:production-loki
environment:
- PUID=1000 # UID to run the application as
- PGID=1000 # GID to run the application as
- WS_FALLBACK=false # Set to true to enable websocket fallback if the peer to peer WebRTC connection is not available to the client.
- RATE_LIMIT=false # Set to true to limit clients to 1000 requests per 5 min.
- RTC_CONFIG=false # Set to the path of a file that specifies the STUN/TURN servers.
- DEBUG_MODE=false # Set to true to debug container and peer connections.
- TZ=Etc/UTC # Time Zone
deploy:
replicas: 1
# placement:
# constraints:
# - node.hostname == ingress.nixc.us
labels:
homepage.group: apps
homepage.name: loki
@ -36,19 +25,8 @@ services:
grafana:
image: git.nixc.us/nixius/loki:production-grafana
environment:
- PUID=1000 # UID to run the application as
- PGID=1000 # GID to run the application as
- WS_FALLBACK=false # Set to true to enable websocket fallback if the peer to peer WebRTC connection is not available to the client.
- RATE_LIMIT=false # Set to true to limit clients to 1000 requests per 5 min.
- RTC_CONFIG=false # Set to the path of a file that specifies the STUN/TURN servers.
- DEBUG_MODE=false # Set to true to debug container and peer connections.
- TZ=Etc/UTC # Time Zone
deploy:
replicas: 1
# placement:
# constraints:
# - node.hostname == ingress.nixc.us
labels:
homepage.group: apps
homepage.name: grafana