cmd/swarm/swarm-smoke-pss: add msgcount to influx tags

This commit is contained in:
Rafael Matias 2019-03-26 11:45:26 +01:00
parent 455bef94b9
commit 5778993be4
No known key found for this signature in database
GPG key ID: 1BC39532FB4A2DBD

View file

@ -163,6 +163,7 @@ func emitMetrics(ctx *cli.Context) error {
tagsMap := utils.SplitTagsFlag(tags)
tagsMap["version"] = gitCommit
tagsMap["msgbytes"] = strconv.Itoa(pssMessageSize)
tagsMap["msgcount"] = strconv.Itoa(pssMessageCount)
return influxdb.InfluxDBWithTagsOnce(gethmetrics.DefaultRegistry, endpoint, database, username, password, "swarm-smoke-pss.", tagsMap)
}