Skip to content

Commit

Permalink
grafana-dashboard.yml should point at loopback alias for alerts to work
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Schneider committed Jun 14, 2018
1 parent ba93309 commit ee9ee3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/spring-dash/grafana-datasource.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ datasources:
- name: prometheus
type: prometheus
access: direct
url: http://localhost:9090
url: http://10.200.10.1:9090
3 changes: 3 additions & 0 deletions scripts/spring-dash/prometheus.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh
echo "##################################################"
echo "# IMPORTANT: Once per operating system restart, you must run 'sudo ifconfig lo0 alias 10.200.10.1/24' to allow Prometheus to scrape targets on the host"
echo "##################################################"
docker run -p 9090:9090 \
-v $(pwd)/prometheus.yml:/etc/prometheus/prometheus.yml \
prom/prometheus:v2.2.0

0 comments on commit ee9ee3e

Please sign in to comment.