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

-dbrp argument behavior #2768

Open
mtovt opened this issue Jun 1, 2023 · 0 comments
Open

-dbrp argument behavior #2768

mtovt opened this issue Jun 1, 2023 · 0 comments

Comments

@mtovt
Copy link

mtovt commented Jun 1, 2023

Hi! I have a question about -dbrp argument in kapacitor define ... command. When I pass dbrp through this argument, my queries don't works because of the following error

Error: enabling task X: batch query is not allowed to request data from "".""

It seems like no dbrp arg was applied.
The same behavior using

kapacitor define-template "${task_template}" -tick "${tick_file}"
kapacitor define "${task_name}" \
            -template "${task_template}" \
            -type ${task_type} \
            -dbrp "${INFLUXDB}"."${RETENTION_POLICY}" \
            -vars "${VARS_PATH}"

Documentation says

If the database and retention policy aren’t included in the TICKscript (for example, dbrp "telegraf"."autogen"), use the kapacitor define command with the -dbrp flag followed by ""."<RETENTION_POLICY>" to specify them when adding the task.

If I specify it inside query inside .tick script it works as expected. This is expected behavior? Why do we need -dbrp argument if currently I have to define dbrp in the tick script?

I'm using kapacitor:1.6.6-alpine docker image.

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

No branches or pull requests

1 participant