The only error in the logs are:
ts=2023-04-28T14:33:15.017598Z lvl=info msg=“Error exhausting result iterator” log_id=0hP2dMN0000 service=task-executor error=“unknown column "_source_measurement"” name=wide-to19
ts=2023-04-28T14:33:15.022706Z lvl=debug msg=“Execution failed” log_id=0hP2dMN0000 service=task-executor error=“could not execute task run: unknown column "_source_measurement"” taskID=0b1e0c524ee96000
And the query I wrote to get number of instances that are up:
I have created a threshold check via UI but it did not let me write the query. Then created another one programmatically using ChecksAPI from @influxdata/influxdb-client-apis and that one fails with the generic error message (shown in UI).
I am a bit confused with your recommendation here. Do you recommend implementing own alerting function instead of using NotificationEndpointsAPI and NotificationRulesAPI? Is there an example of how to send an HTTP alert from a task run in the same format of NotificationEndpointsAPI?