edp-doc/docs/user-documentation/grafana.md

47 lines
1.8 KiB
Markdown
Raw Normal View History

2024-12-18 10:32:17 +00:00
# Telemetry technology stack
Various telemetry tools are included in the technology stack of this repository.
2024-12-19 14:32:24 +00:00
---
2024-12-18 10:32:17 +00:00
## kube-prometheus-stack: prometheus, grafana, dashboards
Kube-prometheus-stack contains Kubernetes manifests, Prometheus and Grafana, including preconfigured dashboards.
### Kube-prometheus-stack Overview
2024-12-19 14:05:45 +00:00
2024-12-18 10:32:17 +00:00
Grafana is an open-source monitoring solution that enables viusalization of metrics and logs.
Prometheus is an open-source monitoring and alerting system which collects metrics from services and allows the metrics to be shown in Grafana.
### Adding your own dashboards
2024-12-19 14:05:45 +00:00
2024-12-18 19:16:31 +00:00
Examples for additional preconfigured dashboards can be found in the folder [dashboards](https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/stacks/src/branch/development/template/stacks/monitoring/kube-prometheus/dashboards).
2024-12-18 16:41:01 +00:00
2024-12-18 19:16:31 +00:00
It is possible to add your own dashboards by putting them into the same folder.
2024-12-18 10:32:17 +00:00
2024-12-18 19:16:31 +00:00
- Dashboards must be in JSON format. To add your own dashboard create a new ConfigMap in YAML format using one of the examples as a blueprint.
- The new dashboard in JSON format has to be added as the value for data.k8s-dashboard-[...].json like in the examples.
2024-12-18 10:32:17 +00:00
(It is important to use a unique name for data.k8s-dashboard-[...].json for each dashboard.)
2024-12-18 19:16:31 +00:00
Currently the preconfigured dashboards include several examples for Loki and Nginx-Ingress metrics.
2024-12-18 10:32:17 +00:00
2024-12-19 14:32:24 +00:00
---
2024-12-18 10:32:17 +00:00
## Loki
2024-12-19 14:05:45 +00:00
2024-12-18 19:16:31 +00:00
Grafana Loki is a scalable open-source log aggregation system.
2024-12-18 10:32:17 +00:00
### Loki Overview
2024-12-19 14:05:45 +00:00
2024-12-18 10:32:17 +00:00
Loki is started in microservices mode and contains the components ingester, distributor, querier, and query-frontend.
2024-12-18 19:16:31 +00:00
It can be configured by it's helm values file.
2024-12-18 10:32:17 +00:00
2024-12-19 14:32:24 +00:00
---
2024-12-18 10:32:17 +00:00
## promtail
2024-12-19 14:05:45 +00:00
2024-12-18 19:16:31 +00:00
Grafana Promtail is an agent that ships logs to a Grafan Loki instance (log-shipper).
2024-12-18 10:32:17 +00:00
2024-12-19 14:05:45 +00:00
The application Grafana Promtail is started in edfbuilder/kind/stacks/core/promtail.yaml.
2024-12-18 19:16:31 +00:00
It can also be configured by it's helm values file.