This project contains a set of JSON configuration files for Grafana dashboards that visualize metrics from Loki and Promtail. The dashboards are designed to help monitor and analyze logs and metrics in a Kubernetes environment.
- pod-restart-view.json: Dashboard for monitoring pod restarts.
- loki-global-metrics.json: Dashboard for global metrics from Loki.
- promtail-429s-413s.json: Dashboard for monitoring HTTP 429 and 413 status codes.
- loki-log-size.json: Dashboard for visualizing log sizes.
- loki-promtail.json: Dashboard for monitoring Promtail metrics.
- Grafana installed and running.
- Loki set up as a data source in Grafana.
- Promtail configured to send logs to Loki.
-
Clone this repository to your local machine:
git clone https://github.com/yourusername/loki-promtail-dashboards.git cd loki-promtail-dashboards
-
Import the JSON files into Grafana:
- Open Grafana and navigate to the Dashboards section.
- Click on Import.
- Upload the JSON files or paste the JSON content directly.
-
Configure the data sources in each dashboard to point to your Loki and Prometheus instances.
- Each dashboard provides various panels that visualize different metrics and logs.
- You can customize the dashboards further by modifying the JSON files or using the Grafana UI.
Contributions are welcome! If you have suggestions for improvements or new features, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- Thanks to the Grafana and Loki teams for their excellent tools and documentation.