Skip to content

Instantly share code, notes, and snippets.

@jayroh
Last active June 20, 2016 14:58
Show Gist options
  • Save jayroh/072a006f085fdf4bce38 to your computer and use it in GitHub Desktop.
Save jayroh/072a006f085fdf4bce38 to your computer and use it in GitHub Desktop.
prometheus
$ boot2docker down && boot2docker delete && boot2docker init && boot2docker up
Waiting for VM and Docker daemon to start...
........................ooooooooooooooooooooo
Started.
Writing /Users/joel/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/joel/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/joel/.boot2docker/certs/boot2docker-vm/key.pem
Your environment variables are already set correctly.
$ cat /tmp/prometheus.yml
global:
scrape_interval: 15s # By default, scrape targets every 15 seconds.
evaluation_interval: 15s # By default, scrape targets every 15 seconds.
# scrape_timeout is set to the global default (10s).
# Attach these extra labels to all timeseries collected by this Prometheus instance.
labels:
monitor: 'codelab-monitor'
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'prometheus'
# Override the global default and scrape targets from this job every 5 seconds.
scrape_interval: 5s
scrape_timeout: 10s
target_groups:
- targets: ['localhost:9090']
$ docker run -p 9090:9090 -v /tmp/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus
Timestamp: 2015-07-01 12:34:57.863389124 +0000 UTC
Code: System error
Message: not a directory
Frames:
---
0: setupRootfs
Package: github.com/docker/libcontainer
File: rootfs_linux.go@37
---
1: Init
Package: github.com/docker/libcontainer.(*linuxStandardInit)
File: standard_init_linux.go@52
---
2: StartInitialization
Package: github.com/docker/libcontainer.(*LinuxFactory)
File: factory_linux.go@228
---
3: initializer
Package: github.com/docker/docker/daemon/execdriver/native
File: init.go@35
---
4: Init
Package: github.com/docker/docker/pkg/reexec
File: reexec.go@26
---
5: main
Package: main
File: docker.go@30
---
6: main
Package: runtime
File: proc.go@63
---
7: goexit
Package: runtime
File: asm_amd64.s@2232
Error response from daemon: Cannot start container d3530ee632ac6bc678630bb5f578c1c6a96d08d6e49077cda60a187e4127b457: [8] System error: not a directory
@posix4e
Copy link

posix4e commented Jun 20, 2016

Same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment