opendistro-for-elasticsearch / alerting

📟 Open Distro Alerting Plugin
https://opendistro.github.io/for-elasticsearch/features/alerting.html
Apache License 2.0
279 stars 80 forks source link

Create Monitors using PPL, similar to use of query DSL #364

Closed harwinds closed 2 years ago

harwinds commented 3 years ago

To Create new monitors, currently there is an option to use query DSL only. Looking for an alternative to create monitors using PPL, as PPL is much more easier to understand. Alternative solution, is there a way to convert PPL queries into query DSL?

dai-chen commented 3 years ago

Hi @harwinds , I assume you're trying to create Alerting Monitor with PPL queries. You can check out by our explain API: https://github.com/opendistro-for-elasticsearch/sql/blob/develop/docs/experiment/ppl/interfaces/endpoint.rst#explain. However, the output is a query plan rather than pure DSL query which won't work by copy. I think the best way is to integrate with SQL/PPL from Alerting internally. So I'm transferring this issue to Alerting team.

qreshi commented 2 years ago

Closing in favor of https://github.com/opensearch-project/alerting/issues/96