Upload files to "loki-ingress-argocd-setup"
This commit is contained in:
45
loki-ingress-argocd-setup/grafana-datasource-loki.yaml
Normal file
45
loki-ingress-argocd-setup/grafana-datasource-loki.yaml
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
# Grafana ConfigMap для добавления Loki Data Source
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: grafana-datasource-loki
|
||||
namespace: monitoring
|
||||
labels:
|
||||
grafana_datasource: "1"
|
||||
data:
|
||||
loki.yaml: |
|
||||
apiVersion: 1
|
||||
|
||||
datasources:
|
||||
# Внутренний доступ (из Grafana pod в кластере) - РЕКОМЕНДУЕТСЯ
|
||||
- name: Loki
|
||||
type: loki
|
||||
access: proxy
|
||||
url: http://loki.loki.svc.cluster.local:3100
|
||||
isDefault: false
|
||||
editable: true
|
||||
jsonData:
|
||||
maxLines: 5000
|
||||
timeout: 60
|
||||
derivedFields:
|
||||
- datasourceUid: prometheus
|
||||
matcherRegex: "traceID=(\\w+)"
|
||||
name: TraceID
|
||||
url: '$${__value.raw}'
|
||||
|
||||
# Внешний доступ (через домен, требует Basic Auth)
|
||||
- name: Loki External
|
||||
type: loki
|
||||
access: proxy
|
||||
url: https://loki.thedevops.dev
|
||||
isDefault: false
|
||||
editable: true
|
||||
basicAuth: true
|
||||
basicAuthUser: admin
|
||||
secureJsonData:
|
||||
basicAuthPassword: lokipass123
|
||||
jsonData:
|
||||
maxLines: 5000
|
||||
timeout: 60
|
||||
tlsSkipVerify: false
|
||||
Reference in New Issue
Block a user