Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Kapacitor templated tasks #22

Open
Anderen2 opened this issue May 12, 2018 · 5 comments
Open

Support for Kapacitor templated tasks #22

Anderen2 opened this issue May 12, 2018 · 5 comments

Comments

@Anderen2
Copy link

Hi!

Does this tool support testing Kapacitor tasks in JSON/YAML format with TICKscript templates?
I've tried to point it towards to a folder containing JSON files, however it did not seem to be very happy with parsing the JSON files, but I may be doing something wrong.

If not, is there any plan on gaining support for templated tasks?

@Anderen2 Anderen2 changed the title Support for Kapacitor templates? Support for Kapacitor templated tasks? May 12, 2018
@gpestana
Copy link
Owner

Hey @Anderen2! kapacitor-unit does not support templated tasks as we speak, but it would definitely be a great thing to add. I will create an issue and try to push this forward. If you'd wish to take this forward, please go ahead and start a PR 😏

@gpestana
Copy link
Owner

Or even better, I will re-use this issue for visibility and keeping up with the feature request.

@gpestana gpestana changed the title Support for Kapacitor templated tasks? Support for Kapacitor templated tasks May 13, 2018
@Anderen2
Copy link
Author

Hi! I'm afraid that I'm not able to dig myself enough into the codebase to be able to implement this myself at this time.

We ended up creating our own automated method for testing TICKscripts and tasks using a Docker build process. Simply spinning up a container with InfluxDB and Kapacitor, loading in the templates and tasks, injecting test data, checking what the resulting alarms were and tossing the container afterwards.
It was heavily inspired by this project, and I hope to be able to put it onto Github at a later stage.

@brettdh
Copy link

brettdh commented Jan 30, 2019

@Anderen2 did you ever end up releasing this project? I'd be very interested in using it.

@Anderen2
Copy link
Author

Anderen2 commented Feb 4, 2019

@brettdh I've uploaded the Dockerfile and scripts we use here: https://github.com/Anderen2/kapacitor-docker-test

The README.md is likely lacking, so feel free to create issues if there is anything unclear!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants