Skip to content

Instantly share code, notes, and snippets.

@cuotos
Last active April 17, 2020 15:43
Show Gist options
  • Save cuotos/5ed4cc93396fddc317e18ba2beb646a5 to your computer and use it in GitHub Desktop.
Save cuotos/5ed4cc93396fddc317e18ba2beb646a5 to your computer and use it in GitHub Desktop.
local-prom
apiVersion: 1
datasources:
- name: Prom
type: prometheus
url: http://localhost:9090
access: direct
version: "2"
services:
prom:
image: prom/prometheus
ports:
- "9090:9090"
command:
- --config.file=/prometheus.yml
volumes:
- ./prometheus.yml:/prometheus.yml
grafana:
image: grafana/grafana
environment:
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_ANONYMOUS_ORG_ROLE: "Admin"
ports:
- "3000:3000"
volumes:
- ./datasources.yml:/etc/grafana/provisioning/datasources/data.ymla
global:
scrape_interval: 10s
scrape_timeout: 5s
scrape_configs:
- job_name: test
static_configs:
- targets:
- 'host.docker.internal:9617' # Port of the service running on your HOST, not the container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment