User Tools

Site Tools


сервис_loki-stack

Differences

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

Link to this comparison view

Next revision
Previous revision
сервис_loki-stack [2025/03/25 13:10]
val created
сервис_loki-stack [2025/04/02 11:30] (current)
val
Line 1: Line 1:
 ====== Сервис Loki-Stack ====== ====== Сервис 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.1742897413.txt.gz · Last modified: 2025/03/25 13:10 by val