More Information on JSON feilds
Hi,
Where can I find more data on the JSON I send. For example what are the supported metric types? (I tried looking in grafana or graphite)
thanks
I have same issue recently I discovered tags field... WHY there is no documentation ?!
Maybe useful:
type MetricData struct {
Id string `json:"id"`
OrgId int `json:"org_id"`
Name string `json:"name"`
Metric string `json:"metric"`
Interval int `json:"interval"`
Value float64 `json:"value"`
Unit string `json:"unit"`
Time int64 `json:"time"`
Mtype string `json:"mtype"`
Tags []string `json:"tags" elastic:"type:string,index:not_analyzed"`
}
From: gopkg.in/raintank/schema.v1/metric.go
First of all, it's easiest to simply use carbon-relay-ng if for whatever reason, you want to send from your own software, you can just send everything as a gauge (like in the example). we don't process these values yet, we just validate them for now. for tags, if you want to send them, we just need to enable the support on your instance. you're right that we don't have proper documentation yet, and we plan to address this shortly. If you have any questions, feel free to reach out to our customer support team (any hosted metrics customer has access to our support team)
I started sending "tags" and they seem to work. Not everyone want to use carbon-relay-ng that's normal. You need then provide manual queries (not by clicking them in web gui) e.g.
seriesByTag("name=app.my.series.name")
Other example:
seriesByTag("name=app.my.series.name")|groupByTags("min","stock")|aliasByTags("stock")