This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
style=$1 | |
if [ "$style" != "LIGHT" -a "$style" != light -a "$style" != "dark" ]; then | |
echo "arg1 must be LIGHT, light or dark" >&2 | |
exit 2 | |
fi | |
# shell | |
# if we source this in terminals we can't just reload termite with proper colors, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* etsy/statsd is the official statsd implementation, yet hasn't been maintained for more than 2 years. | |
(see also https://github.com/etsy/statsd/issues/649) | |
* dozens of forks and re-implementations exist in the community. | |
usually they bring one or more of extra features (e.g. graphite tags, security, ...), | |
easier deployment and better performance, | |
with various degrees of backwards compatibility | |
Which implementation is "best" depends on many factors, but often enough, it's not the official reference implementation. | |
IMHO, most of a statsd server's responsibility is catering to an organisations need of how they organize/name/.. their metrics. | |
So any implementation is very opinionated, and for etsy/statsd trying to cater to many different styles leads to a ballooning complexity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Global settings ## | |
# instance id's distinguish stats of multiple relays. | |
# do not run multiple relays with the same instance id. | |
# supported variables: | |
# ${HOST} : hostname | |
instance = "${HOST}" | |
max_procs = 2 | |
admin_addr = "0.0.0.0:2004" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
log () { | |
echo "$(date +'%Y/%m/%d %H:%M:%S') $@" | |
} | |
for commit in $(cat commits); do | |
echo | |
log "doing $commit" | |
echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"errors" | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"runtime" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"errors" | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"runtime" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
"runtime" | |
"time" | |
"github.com/prometheus/procfs" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(pprof) list getSeriesCachedStore | |
Total: 11.87GB | |
ROUTINE ======================== github.com/grafana/metrictank/api.(*Server).getSeriesCachedStore in /go/src/github.com/grafana/metrictank/api/dataprocessor.go | |
0 3.73GB (flat, cum) 31.38% of Total | |
. . 498:} | |
. . 499: | |
. . 500:// will only fetch until until, but uses ctx.To for debug logging | |
. . 501:func (s *Server) getSeriesCachedStore(ctx *requestContext, until uint32) ([]chunk.Iter, error) { | |
. . 502: var iters []chunk.Iter | |
. 512.03kB 503: var prevts uint32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ ❯❯❯ kubemt logs jaeger-agent-540844109-lzx8v -f | |
{"level":"info","ts":1528222477.9354095,"caller":"tchannel/builder.go:89","msg":"Enabling service discovery","service":"jaeger-collector"} | |
{"level":"info","ts":1528222477.9355032,"caller":"peerlistmgr/peer_list_mgr.go:111","msg":"Registering active peer","peer":"jaeger-stunnel-client:14267"} | |
{"level":"info","ts":1528222477.9361155,"caller":"agent/main.go:62","msg":"Starting agent"} | |
{"level":"info","ts":1528222478.936633,"caller":"peerlistmgr/peer_list_mgr.go:157","msg":"Not enough connected peers","connected":0,"required":1} | |
{"level":"info","ts":1528222478.9367397,"caller":"peerlistmgr/peer_list_mgr.go:166","msg":"Trying to connect to peer","host:port":"jaeger-stunnel-client:14267"} | |
{"level":"info","ts":1528222479.1866703,"caller":"peerlistmgr/peer_list_mgr.go:176","msg":"Connected to peer","host:port":"[::]:14267"} | |
{"level":"info","ts":1528223079.9363415,"caller":"peerlistmgr/peer_list_mgr.go:157","msg":"Not enough connected peers","connected":0,"required":1} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[WARN] Conflict: github.com/stretchr/testify rev is currently ^v1.2.1, but github.com/uber/tchannel-go wants master | |
[INFO] github.com/stretchr/testify reference master: | |
[INFO] - author: Joshua T Corbin <joshua@uber.com> | |
[INFO] - commit date: Thu, 13 Jul 2017 09:51:06 -0700 | |
[INFO] - subject (first line): Fix the actuality of InEpsilon | |
[INFO] Keeping github.com/stretchr/testify ^v1.2.1 | |
[ERROR] Error scanning github.com/pkg/errors: open /home/dieter/go/src/github.com/jaegertracing/jaeger/cmd/agent/vendor/github.com/pkg/errors: no such file or directory | |
[ERROR] Error scanning github.com/spf13/cobra: open /home/dieter/go/src/github.com/jaegertracing/jaeger/cmd/agent/vendor/github.com/spf13/cobra: no such file or directory | |
[ERROR] Error scanning github.com/spf13/viper: open /home/dieter/go/src/github.com/jaegertracing/jaeger/cmd/agent/vendor/github.com/spf13/viper: no such file or directory | |
[ERROR] Error scanning go.uber.org/zap: open /home/dieter/go/src/github.com/jaegertracing/jaeger/cmd/agent/vendor/go.uber.org/ |