Discussion:
[influxdb] Create custom tags
orenshvalb via InfluxData
2018-07-10 13:54:21 UTC
Permalink
Hello,

I'm new to Kapacitor and I have a question regarding adding field name as a tag.
In my Inlflux table I have few tags and many fields.
I created a TICK file and according to a specific field value I'm created a threshold that posts and alert.

I'm able to get the field value by doing:

|eval(lambda: "CE")
.as('value')

But I can't figure out how to add the name of the field ("CE") to the `tags` block.

Is that possible?

Thanks you.
--
This message is intended exclusively for the individual or entity to which
it is addressed. This communication may contain information that is
proprietary, privileged, confidential or otherwise legally exempt from
disclosure. If you are not the named addressee, or have been inadvertently
and erroneously referenced in the address line, you are not authorized to
read, print, retain, copy or disseminate this message or any part of it. If
you have received this message in error, please notify the sender
immediately by e-mail and delete all copies of the message.
--
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups "InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/e59ad5aa-1914-40c0-b89c-0f9a138543ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...