I want to use kapacitor to run stream/batch task and push the data back to influxdb. As per as documentation, Flux support is only there for alerting. Is there a way, to execute stream/batch task in flux and push data back to influxdb. Confused with the documentation.
Thanks
Hello @Pratik_Das_Baghel ,
Yes absolutely you can execute batch task with flux.
You can’t execute stream batch with flux.
Official documentation:
Time to awesome book:
Are you asking about kapacitor because that’s what you’re familiar with? If so I recommend checking out the following blog post:
Please let me know which resource you find the most helpful or if you have any more specific questions.
Hi, thanks for your reply. Will check that option out.
I was having one query here - Flux query help : function calls .
Can you help me with that.
Thanks
Hi, actually on this the documentation says that you will able to only use Flux notification endpoints which i am not able to find. Is email support available and if not then does that mean i would have to use influxql. Is there something i am missing?
Thanks
Hello @Pratik_Das_Baghel ,
Yes you can send an alert to email.
Please take a look at:
Here is the complete list of notification endpoints:
opened 05:55PM - 29 Oct 20 UTC
closed 10:31PM - 16 Sep 21 UTC
Flux
Looking at this [doc page on creating notification endpoints](https://docs.influ… xdata.com/influxdb/v2.0/monitor-alert/notification-endpoints/create/), it appears that we can only send alert notificvations to Slack and PagerDuty.
Since the page lists "HTTP" as an option, and not its more commonly used term, "Webhook", it appears that we don't support Webhooks:
![image](https://user-images.githubusercontent.com/20701/97608873-2899eb80-19d0-11eb-8991-2d870c292d79.png)
Meanwhile, we have a range of other notification options, using Flux packages, scattered throughout the doc:
- [PagerDuty](https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/pagerduty/)
- [Slack](https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/slack/)
- [HTTP post, aka Webhooks](https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/http/post/)
- [Pushbullet](https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/pushbullet/)
- [Discord](https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/contrib/discord/)
- [OpsGenie](https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/contrib/opsgenie/)
- [Sensu](https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/contrib/sensu/)
- [Teams](https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/contrib/teams/) (which should be written as _Microsoft Teams_, IMO, since "Teams" looks like a multi-user capability)
- [Telegram](https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/contrib/telegram/)
- [MQTT](https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/mqtt/to/)
- [SendGrid](https://docs.influxdata.com/influxdb/v2.0/monitor-alert/send-email/)
- [AWS SES](https://docs.influxdata.com/influxdb/v2.0/monitor-alert/send-email/)
- [MailJet](https://docs.influxdata.com/influxdb/v2.0/monitor-alert/send-email/)
- [Mailgun](https://docs.influxdata.com/influxdb/v2.0/monitor-alert/send-email/)
In other words, we're very much underselling the number of notification options that we provide. This will impact customers who are considering migrating from Kapacitor 1.5 and need to compare [Kapacitor's notification options](https://docs.influxdata.com/kapacitor/v1.5/event_handlers/) to those in InfluxDB 2.0. It will also impact users who want to compare [Granfana notification endpoints](https://grafana.com/docs/grafana/latest/alerting/notifications/) to those in InfluxDB 2.0.
It'd be good to have one doc page that backs up this slide by providing information on how to set up the various notification endpoints listed above:
![image](https://user-images.githubusercontent.com/20701/97612887-343be100-19d5-11eb-9f24-12545e9d9d7c.png)
(I've added Servicenow and Bigpanda at Tim's request, since they're landing soon.)
##### Relevant URLs
- https://docs.influxdata.com/kapacitor/v1.5/event_handlers/
- https://grafana.com/docs/grafana/latest/alerting/notifications/
- https://docs.influxdata.com/influxdb/v2.0/monitor-alert/notification-endpoints/create/
- https://docs.influxdata.com/influxdb/v2.0/monitor-alert/send-email/
##### What products and version are you using?
<!--
For InfluxDB 2.0 documentation issues (typos, missing/inaccurate information,
etc.), create an issue in this repository. For project issues (bugs, unexpected
behavior, etc.), create an issue in the appropriate project repository.
For example, report:
- InfluxDB issues at https://github.com/influxdata/influxdb
- Telegraf issues at https://github.com/influxdata/telegraf
- Flux issues at https://github.com/influxdata/flux
-->
I can’t find the docs page but I’ll include that as well when I find it.