cloud-graphite-scripts icon indicating copy to clipboard operation
cloud-graphite-scripts copied to clipboard

More Information on JSON feilds

Open kaplanitay opened this issue 6 years ago • 3 comments

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

kaplanitay avatar Apr 09 '19 14:04 kaplanitay

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

gelldur avatar Jun 08 '19 12:06 gelldur

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)

Dieterbe avatar Jun 10 '19 16:06 Dieterbe

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")

gelldur avatar Jun 10 '19 19:06 gelldur