Skip to content

Instantly share code, notes, and snippets.

{
"request": {
"url": "https://admin-ops-tools1.grafana.net/grafana/api/datasources/proxy/1/api/v1/query?query=sum(kube_pod_container_resource_limits_cpu_cores%7Bcluster%3D%22ops-tools1%22%2C%20namespace%3D%22cortex-ops%22%7D)%20by%20(pod)&time=1581946086",
"method": "GET"
},
"response": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
This file has been truncated, but you can view the full file.
SIGQUIT: quit
PC=0x41efc5 m=0 sigcode=0
goroutine 0 [idle]:
runtime.greyobject(0xc0517506e8, 0xc067cf1200, 0x4b8, 0x7fafc5677310, 0xc00004b770, 0xdd)
/usr/local/Cellar/go/1.11.2/libexec/src/runtime/mgcmark.go:1229 +0x225
runtime.scanobject(0xc067cf1200, 0xc00004b770)
/usr/local/Cellar/go/1.11.2/libexec/src/runtime/mgcmark.go:1151 +0x2b1
runtime.gcDrain(0xc00004b770, 0x6)
/usr/local/Cellar/go/1.11.2/libexec/src/runtime/mgcmark.go:913 +0x23e
- match: consul.consul.http.*
name: consul_http_request
labels:
method: $1
path: /
- match: consul.consul.http.*.*
name: consul_http_request
labels:
method: $1
path: /$2
#!/bin/bash
set -e
declare -A cache
f() {
local pkg=$2
local ident=$1
echo "$ident$pkg"
goroutine 5556598 [running]:
runtime/pprof.writeGoroutineStacks(0x7f6cdec40220, 0xc424d23100, 0x4106a9, 0xc43fe315f0)
/usr/local/go/src/runtime/pprof/pprof.go:650 +0xa7
runtime/pprof.writeGoroutine(0x7f6cdec40220, 0xc424d23100, 0x2, 0xc423702400, 0x1c39f20)
/usr/local/go/src/runtime/pprof/pprof.go:639 +0x44
runtime/pprof.(*Profile).WriteTo(0x286c900, 0x7f6cdec40220, 0xc424d23100, 0x2, 0xc424d23100, 0x16)
/usr/local/go/src/runtime/pprof/pprof.go:310 +0x3e4
net/http/pprof.handler.ServeHTTP(0xc427c3ddcd, 0x9, 0x1c47580, 0xc424d23100, 0xc421b4c400)
/usr/local/go/src/net/http/pprof/pprof.go:237 +0x1b8
net/http/pprof.Index(0x1c47580, 0xc424d23100, 0xc421b4c400)
goroutine 1234 [running]:
runtime/pprof.writeGoroutineStacks(0x7f9a091736b0, 0xc4292dbc80, 0x4106a9, 0xc4243bb3e0)
/usr/local/go/src/runtime/pprof/pprof.go:650 +0xa7
runtime/pprof.writeGoroutine(0x7f9a091736b0, 0xc4292dbc80, 0x2, 0xc4216e4000, 0x1c39dc0)
/usr/local/go/src/runtime/pprof/pprof.go:639 +0x44
runtime/pprof.(*Profile).WriteTo(0x286c900, 0x7f9a091736b0, 0xc4292dbc80, 0x2, 0xc4292dbc80, 0x16)
/usr/local/go/src/runtime/pprof/pprof.go:310 +0x3e4
net/http/pprof.handler.ServeHTTP(0xc4291cd40d, 0x9, 0x1c47420, 0xc4292dbc80, 0xc4246c6a00)
/usr/local/go/src/net/http/pprof/pprof.go:237 +0x1b8
net/http/pprof.Index(0x1c47420, 0xc4292dbc80, 0xc4246c6a00)
message Metric {
string name
string help
Type type # float64 / int64 / bool / enum
Kind kind # cumulative / gauge / untyped
Structure struct # scalar / historgram / summary
repeated Child children
# Q: list label keys here
{
"annotations": {
"list": []
},
"editable": true,
"gnetId": null,
"hideControls": false,
"id": null,
"links": [],
"refresh": "10s",
{"status":"success","data":{"resultType":"matrix","result":[{"metric":{"job":"cortex/distributor"},"values":[[1485466176.9,"137.31395094771457"],[1485466190.9,"219.4759561111111"],[1485466204.9,"259.1972272221111"],[1485466218.9,"229.37777777777774"],[1485466232.9,"199.0222222222222"],[1485466246.9,"203.04678523720278"],[1485466260.9,"187.13333333333333"],[1485466274.9,"174.99790720700034"],[1485466288.9,"172.0888888888889"],[1485466302.9,"195.1800568407693"],[1485466316.9,"240.5423067184209"]]},{"metric":{"job":"cortex/ingester"},"values":[[1485466176.9,"293.24248555555556"],[1485466190.9,"446.16840388888886"],[1485466204.9,"594.4366994444445"],[1485466218.9,"695.613516111111"],[1485466232.9,"886.0871092592594"],[1485466246.9,"1098.3961774074075"],[1485466260.9,"1178.4447366666668"],[1485466274.9,"1156.1333333333332"],[1485466288.9,"1146.1777777777777"],[1485466302.9,"1281.4918982697745"],[1485466316.9,"1366.5019242871845"]]},{"metric":{"job":"cortex/querier"},"values":[[1485463726.9,"0"],[1485463740.9,"0"],