Open mzp0514 opened 3 years ago
Thanks for the question @mzp0514. The UI for alerts is essentially a GUI for creating two tasks:
_level
, then writes it to the _monitoring
bucket._monitoring
bucket and, based on the _level
assigned to each point, send notifications to an endpoint.To add a check and alert using the CLI, you'll have to create a custom check: https://docs.influxdata.com/influxdb/cloud/monitor-alert/custom-checks/#example-monitor-failed-tasks
Then create a custom notification task. We don't have this documented yet, but there is an issue for it already: https://github.com/influxdata/docs-v2/issues/1969.
You can then add both as tasks with the CLI: https://docs.influxdata.com/influxdb/cloud/process-data/manage-tasks/create-task/#create-a-task-using-the-influx-cli
Many of the parts and pieces are in the documentation, but we can definitely tie them together better. I propose the following changes to resolve this issue:
Describe the issue here.
Relevant URLs
What products and version are you using?