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

Set alerts history db name #5522

Open
sinistram opened this issue Jun 22, 2020 · 4 comments
Open

Set alerts history db name #5522

sinistram opened this issue Jun 22, 2020 · 4 comments

Comments

@sinistram
Copy link

Hi!

In my tick scripts I set dbout name differ from 'chorongraf' (eg - 'my_alerts_db').
I wanna to configure chronograf so it shows my alerts in alerts history according to 'my_alerts_db'.
Is there any way to set alerts history db name in chronograf?

image

`
var outputDB = 'my_alerts_db'

|influxDBOut()
    .create()
    .database(outputDB)

`

@russorat
Copy link
Contributor

@sinistram there are no way to change that in the UI, but you can change those in the code if you're comfortable doing that.

query: `SELECT count("value") AS "count_value" FROM "chronograf"."autogen"."alerts" WHERE time > ${TEMP_VAR_DASHBOARD_TIME} GROUP BY time(1d)`,

@sinistram
Copy link
Author

@russorat thanks for the answer. I will consider it. I am leaving the issue opened because it will be a useful feature.

@sinistram
Copy link
Author

@russorat if I make PR to your repo with this feature is it ok to you?

@russorat
Copy link
Contributor

russorat commented Jul 6, 2020

@sinistram yes, that would be great!

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

2 participants