Skip to content

Instantly share code, notes, and snippets.

@iksaif
iksaif / test
Created December 18, 2018 07:53
<p>pouet</p>
@iksaif
iksaif / keybase.md
Created October 5, 2017 10:40
keybase.md

Keybase proof

I hereby claim:

  • I am iksaif on github.
  • I am iksaif (https://keybase.io/iksaif) on keybase.
  • I have a public key whose fingerprint is B639 4446 9B24 8A2A 2E48 178C 3901 57CA BC7C 3A62

To claim this, I am signing this object:

diff --git a/storage/remote/graphite/client.go b/storage/remote/graphite/client.go
index 7aa5a3e..f91de22 100644
--- a/storage/remote/graphite/client.go
+++ b/storage/remote/graphite/client.go
@@ -47,7 +47,9 @@ func pathFromMetric(m model.Metric, prefix string) string {
var buffer bytes.Buffer
buffer.WriteString(prefix)
- buffer.WriteString(escape(m[model.MetricNameLabel]))
+ // Replace _ by . to spread metrics in Graphite.