influxdata / influxdata/kapacitor

API to modify kapacitor.conf

Open
#1,676 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

Is there a programmable way to modify kapacitor.conf when kapacitor is running?
My use case is add a new UDF function and it's arguments.

```
[udf.functions.myUDF]
# Run python
prog = "path to python"
# Pass args to python
# -u for unbuffered STDIN and STDOUT
# and the path to the script
args = ["-u", "path to script"]
# If the python process is unresponsive for 10s kill it
timeout = "10s"
# Define env vars for the process, in this case the PYTHONPATH
[udf.functions.myUDF.env]
PYTHONPATH = "path to agent"
```
how do i do it without editing the conf file using editors?

Contributor guide

Open the contributing guide

Research direction

Start by reviewing how kapacitor.conf and the [udf.functions] configuration are loaded and whether any runtime API entry point is mentioned in the project. The issue names no source files or tests; done would mean establishing a supported programmable way to add a UDF and its arguments without editing the configuration file.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.