Upload files to "loki-ingress-argocd-setup"

This commit is contained in:
2026-01-06 07:37:18 +00:00
parent 3039f872aa
commit ba2e8b7a6f
3 changed files with 242 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
---
# Grafana ConfigMap для добавления Loki Data Source
apiVersion: v1
kind: ConfigMap
metadata:
name: grafana-loki-datasource
namespace: monitoring
labels:
grafana_datasource: "1"
data:
loki-datasource.yaml: |
apiVersion: 1
datasources:
# Внутренний доступ (из Grafana pod в кластере)
- name: Loki (Internal)
type: loki
access: proxy
url: http://loki.loki.svc.cluster.local:3100
isDefault: false
editable: true
jsonData:
maxLines: 5000
timeout: 60
derivedFields:
# Ссылки на traces (если используешь Tempo)
- datasourceUid: tempo
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