grafana/public
Melchior MOULIN dfc78d0979
Explore: Transform prometheus query to elasticsearch query (#23670)
* Explore: Transform prometheus query to elasticsearch query

Enable a way to transform prometheus/loki labels to elasticsearch query.
This make a link between metrics to logs.
Examples:
A prometheus query : rate(my_metric{label1="value1",label2!="value2",label3=~"value.+",label4!~".*tothemoon"}[5m])
Will be this elasticsearch query when switching to elasticsearch datasource:  __name__:"my_metric" AND label1:"value1" AND NOT label2:"value2" AND label3:/value.+/ AND NOT label4:/.*tothemoon/

* fix test

* remove non needed async

* Use prism token instead of regex

* fix test ./scripts/ci-frontend-metrics.sh

* mock timesrv and TemplateSrv in test

* Remove unnecessary await/async

Co-authored-by: Melchior MOULIN <m.moulin@criteo.com>
Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
2020-09-08 12:34:11 +02:00
..
app Explore: Transform prometheus query to elasticsearch query (#23670) 2020-09-08 12:34:11 +02:00
dashboards Chore: MEGA - Make Eslint Great Again 💅 (#26094) 2020-08-11 17:52:44 +02:00
emails change the year in email templates (#26507) 2020-07-23 10:25:39 +03:00
fonts Chore: fix modes for non-executable files (#16864) 2019-05-03 09:51:53 +02:00
img Onboarding: New getting started panel (#23826) 2020-05-13 08:00:40 +02:00
sass Dashlist: Tweaked design of folder addition (#27241) 2020-08-27 09:49:07 +02:00
test Tests: removes unused stuff and replaces monaco transpile with mock (#27324) 2020-09-03 08:54:46 +02:00
vendor Chore: spelling - theme (#24434) 2020-06-05 10:53:57 +02:00
views Failed to load application files message improvement (#26214) 2020-09-07 10:53:13 +03:00
robots.txt add support for robots.txt file 2015-06-15 19:02:38 -04:00