-
Notifications
You must be signed in to change notification settings - Fork 107
some tags should not contribute to the metric ID #30
Comments
In addition, I think we should formalize the MetricData format.
|
since we want to adopt metrics2.0, we could also just move org-id, unit and target_type into the tags array. i know we want to implement some sort of validation to make sure those values are actually correctly specified, but we can do that on ingest. or actually, since unit and target_type are mandatory, they could stay, but we could move org-id into the tags. I would like to make all tools in this repo general purpose, not tied to litmus. and i don't think not much needs to happen for that (but making org-id optional would be one thing) |
Graphite format
Kairosdb metric format
see 1 and 2 above. It is entirely up to the user sending the metric. metric doesnt need to be a subset of name.
Agreed, we should change this.
The entire purpose of the Id is to future proof the schema and allow us to transition away from graphite style naming towards more modern metric+tag naming.
OrgId is mandatory. Everything we build needs to be multi Tenant capable. It is trivial to use a multi-tenant product in a single tenant environment, but you cant do the reverse. |
* rename target_type to mtype - see metrics20/spec@2fa3265 * include mtype and unit into metric id. this is an overdue correction * base id off of metric, not name. see grafana/metrictank#30 (comment) * include interval into metric id. e.g. treat it like any other tag. after some discussion we think this will be the cleanest way to support multiple intervals for a given metric, metrictank just has to merge multiple metrics together. see grafana/metrictank#80 * remove references to nodejs note: this makes SetId about 27% slower
Id()
uses all tags.if we get a metric with the exact same name/metric/OrgId and all tags, except monitor_id is now 5, then it should be the same metric with the same ID.
metrics2.0 address such scenarios by having regular tags and meta tags which can change and don't contribute to the ID. see http://metrics20.org/spec/
why are storing monitor_id in there anyway?
as we grow to support all kinds of metrics, it 'll be even more common to have meta tags that should be able to change without changing the ID, so I think we should implement meta tags like in metrics2.0.
The text was updated successfully, but these errors were encountered: