From 15742f235952e92594aa0fb09e07f175d33a9272 Mon Sep 17 00:00:00 2001 From: Travis Person Date: Wed, 23 Oct 2019 23:05:53 -0700 Subject: [PATCH] Remove height tag from stats tool Having a height tags resulted in performance issues due to an increase in series cardinality. --- tools/stats/main.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/stats/main.go b/tools/stats/main.go index f77ba941a..c8d60de0c 100644 --- a/tools/stats/main.go +++ b/tools/stats/main.go @@ -3,7 +3,6 @@ package main import ( "context" "flag" - "fmt" "log" "os" "time" @@ -94,7 +93,6 @@ func main() { // Instead of having to pass around a bunch of generic stuff we want for each point // we will just add them at the end. - tsHeight := fmt.Sprintf("%d", tipset.Height()) tsTimestamp := time.Unix(int64(tipset.MinTimestamp()), int64(0)) nb, err := InfluxNewBatch() @@ -103,7 +101,6 @@ func main() { } for _, pt := range pl.Points() { - pt.AddTag("height", tsHeight) pt.SetTime(tsTimestamp) nb.AddPoint(NewPointFrom(pt))