influxdata / influxdata/kapacitor

[Feature Request] Add validate TICKscript command to kapacitor CLI program.

Open
#1,335 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

It would be great if there was a way to validate a tickScript source file to make sure it is syntactically correct before posting it to the kapacitor server. This way users can handle any syntax errors locally before executing the `define` command

Something like

```
Kapacitor validate_syntax cpuAlert.tick
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Kapacitor CLI program and the existing `define` command, then trace how TICKscript is parsed when sent to the server. Add a local validation command for a `.tick` source file, and verify that syntax errors are reported before execution or posting.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.