Files
Juan Denis 722072a14b Wire Grafana to Prometheus and Loki by attaching
The Prometheus, Grafana and Loki templates installed but connected
to nothing. A Grafana install now takes Metrics and Logs
attachments: the panel creates the data source through Grafana's
API with the recorded admin login, and a metrics attach also imports
a dashboard of the panel's fleet metrics. An attached app joins the
shared network, so Grafana reaches the source by name.
2026-09-27 21:53:52 -04:00

54 lines
1.1 KiB
YAML

id: loki
name: Grafana Loki
version: "2.9"
description: Horizontally scalable, highly available log aggregation system inspired by Prometheus
icon: https://serverkit.ai/imgs/template-icons/loki.svg
website: https://grafana.com/oss/loki/
documentation: https://grafana.com/docs/loki/latest/
categories:
- monitoring
- logging
- observability
variables:
- name: HTTP_PORT
description: HTTP port
type: port
default: "3100"
hidden: true
# What an app (Grafana) gets through `fromService`, over the shared network.
connection:
port: 3100
properties:
url: "http://{host}:{port}"
ports:
- port: 3100
protocol: tcp
description: HTTP API
volumes:
- name: data
path: /loki
description: Loki data storage
requirements:
memory: 1GB
storage: 20GB
compose:
services:
loki:
image: grafana/loki:${VERSION:-2.9.0}
container_name: ${APP_NAME}
restart: unless-stopped
command: -config.file=/etc/loki/local-config.yaml
volumes:
- loki_data:/loki
ports:
- "${HTTP_PORT}:3100"
volumes:
loki_data: