-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
If creating metric definition with tags then write data points with tags, tags shown in the GET query. When not creating metric definition, only write data points, tags defined inside data points were all missing in the GET query returned results.
For example
tags := make(map[string]string)
tags["env"] = "hawkular"
dp := metrics.Datapoint{Value: 1.45, Timestamp: time.Now(), Tags: tags}
header := metrics.MetricHeader{
ID: "doc.gauge.1",
Data: []metrics.Datapoint{dp},
Type: metrics.Gauge,
}
err = c.Write([]metrics.MetricHeader{header})
Do I always have to write both MetricDefinition and MetricHeader? Can tags in MetricDefinition different than tags in the data points?
My another question is if this client is still usable? thanks.
Metadata
Metadata
Assignees
Labels
No labels