grafana
This commit is contained in:
16
infrastructure/loki/loki-datasource-configmap.yaml
Normal file
16
infrastructure/loki/loki-datasource-configmap.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: loki-grafana-datasource
|
||||
namespace: monitoring
|
||||
labels:
|
||||
grafana_datasource: "1"
|
||||
data:
|
||||
loki-datasource.yaml: |
|
||||
apiVersion: 1
|
||||
datasources:
|
||||
- name: Loki
|
||||
type: loki
|
||||
access: proxy
|
||||
url: http://loki-stack:3100
|
||||
isDefault: false
|
||||
40
infrastructure/loki/loki-stack-app.yaml
Normal file
40
infrastructure/loki/loki-stack-app.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: loki-stack
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://grafana.github.io/helm-charts
|
||||
targetRevision: 2.10.3
|
||||
chart: loki-stack
|
||||
helm:
|
||||
values: |
|
||||
# Eigenes Grafana nicht noetig, wir haben schon eins ueber kube-prometheus-stack
|
||||
grafana:
|
||||
enabled: false
|
||||
|
||||
promtail:
|
||||
enabled: true
|
||||
|
||||
loki:
|
||||
persistence:
|
||||
enabled: true
|
||||
size: 10Gi
|
||||
config:
|
||||
table_manager:
|
||||
retention_deletes_enabled: true
|
||||
retention_period: 168h
|
||||
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: monitoring
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- ServerSideApply=true
|
||||
- SkipDryRunOnMissingResource=true
|
||||
Reference in New Issue
Block a user