I have been following the Kapacitor tutorial at Get started with Kapacitor | Kapacitor 1.5 Documentation and have been having an issue.
My tick script is:
dbrp “telegraf”.“autogen”
stream
// Select the CPU measurement from the telegraf
database.
|from()
.measurement(‘cpu’)
// Triggers a critical alert when the CPU idle usage drops below 70%
|alert()
.crit(lambda: int(“usage_idle”) < 100)
.message(‘{{ .Time }}: CPU usage under 100%’)
// Write each alert to a file.
.log('/tmp/alerts.log’)
But, this is not actually writing anything to the file /tmp/alerts.log. Everything else in the tutorial is working as expected, just this 1 issue. Do you know what might be causing this?
Thank you