vsergeyev / loudml-grafana-app

Visualization panel and datasource for Grafana to connect with Loud ML AI solution for ICT and IoT automation
https://vsergeyev.github.io/loudml-grafana-app/
MIT License
48 stars 20 forks source link

Elasticsearch button #23

Open Luisibear98 opened 3 years ago

Luisibear98 commented 3 years ago

Hello!

I love your work 👍

I would like to know if it is possible to use elasticsearch DB

I installed the last version but the button doesn't work. It is disabled. Thanks!

vsergeyev commented 3 years ago

Hello @Luisibear98

Thank you for kind words!

Elasticsearch supported, but I added no so complex parser for queries. May you please share your query?

V.

Luisibear98 commented 3 years ago

Hey @vsergeyev !

i just want to be able to parse simple queries based on the sum of one value. The problem is that the button is only clickcable if the influxdb database is selected. If I select elasticsearch it is not clickable

Luisibear98 commented 3 years ago

I may be interesting to be able to filter given a field value :100:

vsergeyev commented 3 years ago

Hi @Luisibear98

There is a small "I" button near "Create Baseline". It will show you a tooltip, and this tooltip displays how params are parsed.

I'm not a big experienced elasticsearch guy, All query parsers are in: https://github.com/vsergeyev/loudml-grafana-app/blob/master/src/panel/extractors.ts It tries to extract params from query.

V.

Luisibear98 commented 3 years ago

Thanks for the response, I will try to make it work :D