content/chronograf/v1/guides/advanced-kapacitor.md
Chronograf provides a user interface for Kapacitor, InfluxData's processing framework for creating alerts, running ETL jobs, and detecting anomalies in your data. Learn how Kapacitor interacts with Chronograf.
Chronograf provides information about Kapacitor alerts on the Alert History page.
Chronograf writes Kapacitor alert data to InfluxDB as time series data.
It stores the data in the alerts measurement
in the chronograf database.
By default, this data is subject to an infinite retention policy (RP).
If you expect to have a large number of alerts or do not want to store your alert
history forever, consider shortening the duration
of the default retention policy.
Use the Chronograf Admin page to modify the retention policy in the chronograf database.
In the Databases tab:
chronograf database and click Edit
next to the retention policy to update.1h) and the maximum is infinite (INF or ∞).
See supported duration units.If you set the retention policy's duration to one hour (1h), InfluxDB
automatically deletes any alerts that occurred before the past hour.
Chronograf lets you view and manage all Kapacitor TICKscripts for a selected Kapacitor subscription using the TICKscripts page.
To manage Kapacitor TICKscripts in Chronograf, click {{< icon "alert" "v2">}} Alerting in the left navigation bar and select TICKscripts. Do one or more of the following:
var name variable within the TICKscript.Click Exit when finished.
Kapacitor 1.6+ supports Flux tasks. Chronograf lets you view and manage Flux tasks for a selected Kapacitor subscription using the Flux Tasks page.
To manage Kapacitor Flux tasks in Chronograf, click {{< icon "alert" "v2">}} Alerting in the left navigation bar and select the Flux Tasks option. Do one or more of the following:
For more information on Flux tasks and Kapacitor see Use Flux tasks with Kapacitor.