influxdata / influxdata/kapacitor
Replacing values inside TICKscript
- Dominant language
- Go
- Stars
- 2.4k
- Forks
- 479
- Avg merge
- 4d 16h
- Merged PRs (30d)
- 4
Description
We have a scenario in our use case where we need to find and replace `.id(myCustomName)` from deadman alert node inside TICKscript. For example, I need to prefix with a string such as 'dev' or 'test' before the variable name 'myCustomName', thereby 'id' value becomes ('dev' + myCustomName).
Are there parsers available which we can make use of here to replace?
Any suggestions or ideas are most welcome.
Contributor guide
Research direction
Start by reviewing the TICKscript parser and the deadman alert node handling, using `.id(myCustomName)` and the requested `dev` or `test` prefix as search terms. The issue does not define a specific implementation or test location; done would require an agreed substitution behavior and tests showing the resulting alert ID.
Written by the indexing model from the issue text.
Assessment
- Domain
- observability-sre
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100