Skip to content

Instantly share code, notes, and snippets.

# Grafana - Metrics visualization
# Usage: add -f docker-compose.grafana.yml to your docker compose command
#
# Example:
# docker compose -f docker-compose.yml -f docker-compose.grafana.yml up -d
services:
grafana:
image: grafana/grafana:${GRAFANA_IMAGE_VERSION:-11.4.0}
container_name: grafana
@fudongyingluck
fudongyingluck / datasources.yaml
Created March 18, 2026 09:01
grafana 源配置
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
uid: prometheus
url: http://prometheus:9090
isDefault: true
editable: true
jsonData: