influxdata / influxdata/kapacitor
regular expression to check same pattern
- Dominant language
- Go
- Stars
- 2.4k
- Forks
- 479
- Avg merge
- 4d 16h
- Merged PRs (30d)
- 4
Description
I am using kapacitor version 1.5 and Influxdb as backend database.
I have variable named HarddiskVolume001, HarddiskVolume002 etc..
is this possible in kapacitor tickscript to have regular expression so that I can get all the value started from HarddiskVolume.
I am using below expression in whereFilter, seems not working:
**var whereFilter = lambda: ("instance" =~ 'HarddiskVolume*')**
Contributor guide
Research direction
Start with the reported whereFilter expression and the Kapacitor 1.5 regular-expression behavior, then check the relevant Tickscript documentation or implementation entry point. Verify how the expression matches values such as HarddiskVolume001 and document the correct behavior or required change.
Written by the indexing model from the issue text.
Assessment
- Domain
- observability-sre
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100