influxdata / influxdata/kapacitor
Error during alert creation
- Dominant language
- Go
- Stars
- 2.4k
- Forks
- 479
- Avg merge
- 4d 16h
- Merged PRs (30d)
- 4
Description
When I create an alert in Chronograf UI there is a a error displayed: There was a Problem createing "Name of the alert:" Error: failed to get InfluxDB client: no such InfluxDB config
When I list the Kapacitator tasks, the following is shown: kapacitor list tasks
ID Type Status Executing Databases and Retention Policies
chronograf-v1-aa37b64b-01ed-4bc4-b506-27c98ca96d37 stream enabled false ["telegraf"."one_day_only"]
If I show the detail about the task: kapacitor show chronograf-v1-aa37b64b-01ed-4bc4-b506-27c98ca96d37
Output:
kapacitor show chronograf-v1-aa37b64b-01ed-4bc4-b506-27c98ca96d37
ID: chronograf-v1-aa37b64b-01ed-4bc4-b506-27c98ca96d37
Error: failed to get InfluxDB client: no such InfluxDB config
Template:
Type: stream
Status: enabled
Executing: false
Created: 12 Nov 18 16:01 CET
Modified: 12 Nov 18 16:01 CET
LastEnabled: 12 Nov 18 16:01 CET
Databases Retention Policies: ["telegraf"."one_day_only"]
TICKscript:
var db = 'telegraf'
....
Any hint how I can fix this are greatly appreciated!
Contributor guide
Research direction
Start by reproducing alert creation in the Chronograf UI and inspect the reported Kapacitor task with `kapacitor list tasks` and `kapacitor show`. The issue names no source file or test; done would require identifying the missing InfluxDB configuration and confirming that alert creation and task inspection work without the error.
Written by the indexing model from the issue text.
Assessment
- Domain
- observability-sre
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100