-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Description
So I've been hacking on a little output plugin and I noticed a few things:
- metrics in telegraf don't have types (internally). Various Input plugins can inject various types, but those are not saved internally.
- When sending points to some external services which do have various supported types (gauge, counter, cumulative_counter, etc..) you have to either pick one like "gauge" as default or figure out some sort of complex configuration to map metrics to proper types. (I guess InfluxDb doesn't have types either?) Is it possible to somehow add this in?
- "points" are not documented. Took me some time to figure out what they actually contain.
- "tags" which are attached to points seem to be on only one level. One possible scenario I am running into is that "host" level tags like: "host", "dc", etc... are listed on the same level as lets say "diskio" tags. Ideally I'd like to separate those out into two separate buckets, but this is not an easy task since I can't easily tell which came from a plugin scope and which came from the global one. If i send those tags as is then the dataset gets somewhat polluted and it's harder to find what came from where on the graphics/analysis side. One thing i was thinking was to see if I can somehow tell the type of a tag and prefix those by a plugin name for my particular output plugin (or not prefix it for some default/global tags).
P.S. Let me know if I should split this up and how, and I'll try my best.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels