Skip to content

Instantly share code, notes, and snippets.

@bernerdschaefer
Created May 3, 2013 12:12
Show Gist options
  • Save bernerdschaefer/5508760 to your computer and use it in GitHub Desktop.
Save bernerdschaefer/5508760 to your computer and use it in GitHub Desktop.
$ ./prometheus
prometheus, version c5e507c (master)
build user: [email protected]
build date: 20130503-12:08:32
go version: 1.0.3
leveldb version: 1.9.0
protobuf version: 2.5.0
snappy version: 1.1.0
2013/05/03 12:53:16 Pool for job prometheus does not exist; creating and starting...
2013/05/03 12:53:16 All EndPoints for service [ MetricsService ] , registered under root path: /api/
2013/05/03 12:53:16 Registerd service: MetricsService endpoint: GET api/query?{expr:string}&{json:string}
2013/05/03 12:53:16 Registerd service: MetricsService endpoint: GET api/query_range?{expr:string}&{end:int64}&{range:int64}&{step:int64}
2013/05/03 12:53:16 Registerd service: MetricsService endpoint: GET api/metrics
2013/05/03 12:53:16 Registerd service: MetricsService endpoint: PUT api/jobs/{jobName:string}/targets
2013/05/03 12:53:16 listening on :9090
^C
2013/05/03 12:31:46 Received SIGINT; Exiting Gracefully...
2013/05/03 12:31:46 Closing tiered storage...
2013/05/03 12:31:46 Starting drain...
2013/05/03 12:31:47 Done.
^C
^C
^\SIGQUIT: quit
pc: 0x1c2c0
goroutine 1 [select]:
main.main()
~/src/github.com/prometheus/prometheus/main.go:129 +0x8ea
goroutine 2 [syscall]:
created by runtime.main
/usr/local/Cellar/go/1.0.3/src/pkg/runtime/proc.c:221
goroutine 3 [syscall]:
os/signal.loop()
/usr/local/Cellar/go/1.0.3/src/pkg/os/signal/signal_unix.go:20 +0x1c
created by os/signal.init·1
/usr/local/Cellar/go/1.0.3/src/pkg/os/signal/signal_unix.go:26 +0x2f
goroutine 17 [chan receive]:
github.com/prometheus/prometheus/web.(*StatusHandler).Run(0xf8400b5e70, 0x0)
~/src/github.com/prometheus/prometheus/web/status.go:56 +0x18d
created by github.com/prometheus/prometheus/web.StartServing
~/src/github.com/prometheus/prometheus/web/web.go:48 +0x1dc
goroutine 14 [chan receive]:
github.com/prometheus/prometheus/storage/metric._func_041(0xf8400c25a0, 0xf8400c25a8, 0x0, 0x0)
~/src/github.com/prometheus/prometheus/storage/metric/tiered.go:175 +0x3e
created by github.com/prometheus/prometheus/storage/metric.(*tieredStorage).Serve
~/src/github.com/prometheus/prometheus/storage/metric/tiered.go:178 +0x13f
goroutine 13 [syscall]:
created by addtimer
/usr/local/Cellar/go/1.0.3/src/pkg/runtime/ztime_amd64.c:72
goroutine 12 [semacquire]:
sync.runtime_Semacquire(0xf8411993a0, 0xf8411993a0)
/usr/local/Cellar/go/1.0.3/src/pkg/runtime/zsema_amd64.c:146 +0x25
sync.(*WaitGroup).Wait(0xf841e0f0c0, 0xf84019b3f0)
/usr/local/Cellar/go/1.0.3/src/pkg/sync/waitgroup.go:79 +0xf2
github.com/prometheus/prometheus/storage/metric.(*LevelDBMetricPersistence).Close(0xf8401975c0, 0xf841117000)
~/src/github.com/prometheus/prometheus/storage/metric/leveldb.go:89 +0x2ec
github.com/prometheus/prometheus/storage/metric.tieredStorage.Close(0xf8401d4000, 0xf841117000)
~/src/github.com/prometheus/prometheus/storage/metric/tiered.go:232 +0xdf
github.com/prometheus/prometheus/storage/metric.(*tieredStorage).Close(0xf8400af9a0, 0xf840189f50)
~/src/github.com/prometheus/prometheus/storage/metric/curator.go:0 +0x73
main.prometheus.close(0xf840189f50, 0xf8400af9a0)
~/src/github.com/prometheus/prometheus/main.go:63 +0x43
main.prometheus.interruptHandler(0xf840189f50, 0xf8400af9a0)
~/src/github.com/prometheus/prometheus/main.go:58 +0x143
created by main.main
~/src/github.com/prometheus/prometheus/main.go:101 +0x481
goroutine 16 [select]:
github.com/prometheus/prometheus/rules.(*ruleManager).run(0xf84010ed20, 0xf841171000, 0x0, 0x0)
~/src/github.com/prometheus/prometheus/rules/manager.go:55 +0xe5
created by github.com/prometheus/prometheus/rules.NewRuleManager
~/src/github.com/prometheus/prometheus/rules/manager.go:47 +0xa7
goroutine 15 [select]:
github.com/prometheus/prometheus/retrieval.(*TargetPool).Run(0xf8401977c0, 0xf841150000, 0x37e11d600, 0x0, 0x0, ...)
~/src/github.com/prometheus/prometheus/retrieval/targetpool.go:59 +0x2b7
created by github.com/prometheus/prometheus/retrieval.(*targetManager).TargetPoolForJob
~/src/github.com/prometheus/prometheus/retrieval/targetmanager.go:65 +0x34f
goroutine 18 [chan receive]:
net.(*pollServer).WaitRead(0xf840197640, 0xf840195120, 0xf84010edb0, 0x23, 0x1, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/fd.go:268 +0x73
net.(*netFD).accept(0xf840195120, 0x10374a, 0x0, 0xf8400aac90, 0xf8400c2040, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/fd.go:622 +0x20d
net.(*TCPListener).AcceptTCP(0xf8400c2c28, 0xf841ba7340, 0x0, 0x0, 0x8, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/tcpsock_posix.go:320 +0x71
net.(*TCPListener).Accept(0xf8400c2c28, 0x0, 0x0, 0x0, 0x0, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/tcpsock_posix.go:330 +0x49
net/http.(*Server).Serve(0xf8401976c0, 0xf840197f80, 0xf8400c2c28, 0x0, 0x0, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/http/server.go:1029 +0x88
net/http.(*Server).ListenAndServe(0xf8401976c0, 0xf8401976c0, 0x20b, 0x117f1)
/usr/local/Cellar/go/1.0.3/src/pkg/net/http/server.go:1019 +0xb6
net/http.ListenAndServe(0x3b075c, 0x5, 0xf84019bcc0, 0xf8400c2688, 0xf8400c2688, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/http/server.go:1091 +0x69
created by github.com/prometheus/prometheus/web.StartServing
~/src/github.com/prometheus/prometheus/web/web.go:62 +0x4bf
goroutine 19 [syscall]:
syscall.Syscall6()
/usr/local/Cellar/go/1.0.3/src/pkg/syscall/asm_darwin_amd64.s:38 +0x5
syscall.kevent(0x22, 0x0, 0x0, 0xf8400d8d88, 0xf80000000a, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/syscall/zsyscall_darwin_amd64.go:199 +0x88
syscall.Kevent(0xf800000022, 0x0, 0x0, 0xf8400d8d88, 0xa0000000a, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/syscall/syscall_bsd.go:546 +0xa4
net.(*pollster).WaitFD(0xf8400d8d80, 0xf840197640, 0x0, 0xffffffff, 0x0, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/fd_darwin.go:96 +0x185
net.(*pollServer).Run(0xf840197640, 0x0)
/usr/local/Cellar/go/1.0.3/src/pkg/net/fd.go:236 +0xe4
created by net.newPollServer
/usr/local/Cellar/go/1.0.3/src/pkg/net/newpollserver.go:35 +0x382
goroutine 3601 [syscall]:
github.com/jmhodges/levigo._Cfunc_leveldb_close(0x2a01d20, 0x153f80)
github.com/jmhodges/levigo/_obj/_cgo_defun.c:58 +0x2f
github.com/jmhodges/levigo.(*DB).Close(0xf8400c2638, 0x153518)
github.com/jmhodges/levigo/_obj/batch.cgo1.go:430 +0x28
github.com/prometheus/prometheus/storage/raw/leveldb._func_001(0x5092f90, 0x61ced)
~/src/github.com/prometheus/prometheus/storage/raw/leveldb/leveldb.go:212 +0x3b
github.com/prometheus/prometheus/storage/raw/leveldb.(*LevelDBPersistence).Close(0xf8401bcab0, 0x117f1)
~/src/github.com/prometheus/prometheus/storage/raw/leveldb/leveldb.go:244 +0xc3
github.com/prometheus/prometheus/storage/metric._func_005(0xf841e0f0c0, 0xf84019b3f0, 0xf8401bcab0, 0x0)
~/src/github.com/prometheus/prometheus/storage/metric/leveldb.go:83 +0x38
created by github.com/prometheus/prometheus/storage/metric.(*LevelDBMetricPersistence).Close
~/src/github.com/prometheus/prometheus/storage/metric/leveldb.go:86 +0x2c9
goroutine 3591 [syscall]:
github.com/jmhodges/levigo._Cfunc_leveldb_get(0x2a01d20, 0x2a01c60)
github.com/jmhodges/levigo/_obj/_cgo_defun.c:154 +0x34
github.com/jmhodges/levigo.(*DB).Get(0xf8400c2638, 0xf8400c2640, 0xf841e0f5e0, 0x200000001c, 0x0, ...)
github.com/jmhodges/levigo/_obj/batch.cgo1.go:278 +0xe7
github.com/prometheus/prometheus/storage/raw/leveldb.(*LevelDBPersistence).Get(0xf8401bcab0, 0xf841324ed0, 0xf8415ec9c0, 0x0, 0x0, ...)
~/src/github.com/prometheus/prometheus/storage/raw/leveldb/leveldb.go:255 +0xba
github.com/prometheus/prometheus/storage/metric.(*LevelDBMetricPersistence).refreshHighWatermarks(0xf8401975c0, 0xf8419b9be0, 0x0, 0x0, 0x117f1, ...)
~/src/github.com/prometheus/prometheus/storage/metric/leveldb.go:504 +0x2fc
github.com/prometheus/prometheus/storage/metric._func_026(0xf842159c38, 0xf8422a10b0, 0xf8419b9be0, 0x0, 0x0, ...)
~/src/github.com/prometheus/prometheus/storage/metric/leveldb.go:558 +0x33
created by github.com/prometheus/prometheus/storage/metric.(*LevelDBMetricPersistence).AppendSamples
~/src/github.com/prometheus/prometheus/storage/metric/leveldb.go:559 +0x1c0
goroutine 3752 [chan receive]:
net.(*pollServer).WaitRead(0xf840197640, 0xf8417a1000, 0xf84010edb0, 0x23, 0x1, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/fd.go:268 +0x73
net.(*netFD).Read(0xf8417a1000, 0xf841632000, 0x100000001000, 0xffffffff, 0xf8400aac90, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/fd.go:428 +0x1ec
net.(*TCPConn).Read(0xf841999750, 0xf841632000, 0x100000001000, 0x1511de, 0x0, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/tcpsock_posix.go:87 +0xce
io.(*LimitedReader).Read(0xf84144f040, 0xf841632000, 0x100000001000, 0xeae00000000, 0x0, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/io/io.go:406 +0xc1
bufio.(*Reader).fill(0xf842492000, 0xeae00000000)
/usr/local/Cellar/go/1.0.3/src/pkg/bufio/bufio.go:77 +0xf0
bufio.(*Reader).ReadSlice(0xf842492000, 0xf84159e60a, 0x0, 0x0, 0x0, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/bufio/bufio.go:257 +0x1b6
bufio.(*Reader).ReadLine(0xf842492000, 0x0, 0x0, 0x0, 0x0, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/bufio/bufio.go:286 +0x5b
net/textproto.(*Reader).readLineSlice(0xf8426ccd20, 0xc0, 0x100000000, 0x1)
/usr/local/Cellar/go/1.0.3/src/pkg/net/textproto/reader.go:55 +0x4f
net/textproto.(*Reader).ReadLine(0xf8426ccd20, 0xf841811300, 0x0, 0x12c4c3)
/usr/local/Cellar/go/1.0.3/src/pkg/net/textproto/reader.go:36 +0x25
net/http.ReadRequest(0xf842492000, 0xf841811300, 0x0, 0x0, 0x1000004118a240, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/http/request.go:457 +0xb1
net/http.(*conn).readRequest(0xf84018f180, 0xf8400b1180, 0x0, 0x0, 0xf841be2680, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/http/server.go:240 +0xa8
net/http.(*conn).serve(0xf84018f180, 0x0)
/usr/local/Cellar/go/1.0.3/src/pkg/net/http/server.go:607 +0x145
created by net/http.(*Server).Serve
/usr/local/Cellar/go/1.0.3/src/pkg/net/http/server.go:1057 +0x430
rax 0xe
rbx 0xffffffffffffffff
rcx 0x7fff5fbff8f0
rdx 0x1
rdi 0x1403
rsi 0x0
rbp 0x66b798
rsp 0x7fff5fbff8f0
r8 0x3f
r9 0x31c558b2
r10 0x2d01a20
r11 0x246
r12 0x385080
r13 0x16
r14 0x0
r15 0x0
rip 0x1c2c0
rflags 0x246
cs 0x7
fs 0x0
gs 0x0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment