Last active
March 28, 2019 17:34
-
-
Save noemi-dresden/d34099eb5f009260223f9dd1d6edce23 to your computer and use it in GitHub Desktop.
Prometheus and Grafana
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: 1 | |
datasources: | |
- name: Prometheus | |
type: prometheus | |
access: proxy | |
url: http://prometheus-ip:9090 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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