Skip to content

Instantly share code, notes, and snippets.

@noemi-dresden
Last active March 28, 2019 17:34
Show Gist options
  • Save noemi-dresden/d34099eb5f009260223f9dd1d6edce23 to your computer and use it in GitHub Desktop.
Save noemi-dresden/d34099eb5f009260223f9dd1d6edce23 to your computer and use it in GitHub Desktop.
Prometheus and Grafana
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
url: http://prometheus-ip:9090
version: "3.1"
services:
prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- path/to-your/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
grafana:
image: grafana/grafana
container_name: grafana
ports:
- "3000:3000"
volumes:
- path/to-your/grafana.ini:/etc/grafana/grafana.ini
- path/to-your/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
links:
- prometheus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment