User Tools

Site Tools


сервис_loki-stack

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
сервис_loki-stack [2025/04/02 11:30]
val
— (current)
Line 1: Line 1:
-====== Сервис Loki-Stack ====== 
  
-  * [[https://​github.com/​grafana/​helm-charts/​tree/​main/​charts/​loki-stack|Deploy Loki and Promtail to your cluster]] 
-  * [[https://​habr.com/​ru/​articles/​766102/​|Prometheus + Loki + Grafana: отслеживаем состояния k8s и запущенных в нём приложении]] 
- 
-<​code>​ 
-http://​loki.loki-stack.svc.cluster.local:​3100 
-http://​loki-prometheus-server.loki-stack.svc.cluster.local:​80 
- 
- 
-kube1:​~/​loki-stack#​ helm pull grafana/​loki-stack 
- 
-kube1:​~/​loki-stack#​ less loki-stack/​charts/​loki/​values.yaml 
- 
-persistence:​ 
-  enabled: false 
-  accessModes:​ 
-  - ReadWriteOnce 
-  size: 10Gi 
- 
- 
-kube1:​~/​loki-stack#​ cat values.yaml 
-loki: 
-  persistence:​ 
-    enabled: true 
- 
-prometheus: 
-  enabled: true 
-  alertmanager:​ 
-    config: 
-      global: 
-        smtp_smarthost:​ '​server.corp13.un:​25'​ 
-        smtp_from: '​alertmanager@corp13.un'​ 
-        smtp_require_tls:​ false 
- 
-      templates: 
-        - '/​etc/​alertmanager/​*.tmpl'​ 
- 
-      route: 
-        group_wait: 30s 
-        group_interval:​ 5m 
-        repeat_interval:​ 3h 
-        receiver: team-X-mails 
- 
-      receivers: 
-      - name: '​team-X-mails'​ 
-        email_configs:​ 
-        - to: '​student@corp13.un'​ 
-          send_resolved:​ true 
- 
-  serverFiles:​ 
-    alerting_rules.yml:​ 
-      groups: 
- 
- 
-kube1:​~/​loki-stack#​ helm upgrade --install loki --namespace=loki-stack grafana/​loki-stack --create-namespace -f values.yaml 
- 
-### helm delete loki --namespace=loki-stack 
-</​code>​ 
сервис_loki-stack.1743582656.txt.gz · Last modified: 2025/04/02 11:30 by val