Ok, I will try the PR first. Can I know what‘s the concern of "Personally, I'm still not sure if that's a sustainable approach. "?
Thanks, Dong Shandong On Friday, 25 June 2021 at 5:14:51 am UTC+8 [email protected] wrote: > On 24.06.21 00:05, 董善东 wrote: > > hi,all > > In the existing prometheus version, the anomaly detection still relies > > fully on the rules setting. We find that it is inconvenient to set and > hard > > to maintain in practical use. > > So I propose to add some statistical analysis functions to provide > better > > and stronger AD ability. > > Yeah, that's a frequent request. Unfortunately, there are so many > statistical analysis functions that we can hardly just add them all. > > So far, the usual recommendation is to extract data from Prometheus > via the HTTP API and feed it to a fully-fledged statistics tool. > > Obviously, that doesn't help you with alerts (which you probably want > to keep within Prometheus). > > At the previous to last dev-summit (2021-05-27), we discussed the use > case. > > Outcome was the following: > * We want to explore supporting analytics use cases within PromQL behind > a feature flag > * We are open to wrapping other languages, e.g. R, Fortran, SciPython, > given an accepted design doc > > See alse notes here: > > https://docs.google.com/document/d/11LC3wJcVk00l8w5P3oLQ-m3Y37iom6INAMEu2ZAGIIE/edit?ts=6036b8e0&pli=1#heading=h.sa2f6aem9wdt > > So I guess you could just implement the functions you like and put > them into a PR, locked behind a feature flag. > > Personally, I'm still not sure if that's a sustainable > approach. Perhaps integrating some scripting engine to allow > user-defined functions might be better. But we'll see… > > -- > Björn Rabenstein > [PGP-ID] 0x851C3DA17D748D03 > [email] [email protected] > -- You received this message because you are subscribed to the Google Groups "Prometheus Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/c3327cec-c713-43b2-bba9-036edda85af6n%40googlegroups.com.

