Skip to content

Instantly share code, notes, and snippets.


Corentin Chary iksaif

View GitHub Profile

Keybase proof

I hereby claim:

  • I am iksaif on github.
  • I am 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(escape(m[model.MetricNameLabel]))
+ // Replace _ by . to spread metrics in Graphite.