Skip to content

Instantly share code, notes, and snippets.

Avatar

Corentin Chary iksaif

View GitHub Profile
View 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:

View prometheus2graphite.patch
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.