* 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>
Name |
Last commit
|
Last Update |
---|---|---|
.. | ||
components | Loading commit data... | |
configuration | Loading commit data... | |
img | Loading commit data... | |
partials | Loading commit data... | |
specs | Loading commit data... | |
README.md | Loading commit data... | |
bucket_agg.ts | Loading commit data... | |
datasource.test.ts | Loading commit data... | |
datasource.ts | Loading commit data... | |
elastic_response.ts | Loading commit data... | |
index_pattern.ts | Loading commit data... | |
language_provider.test.ts | Loading commit data... | |
language_provider.ts | Loading commit data... | |
metric_agg.ts | Loading commit data... | |
module.ts | Loading commit data... | |
pipeline_variables.ts | Loading commit data... | |
plugin.json | Loading commit data... | |
query_builder.ts | Loading commit data... | |
query_ctrl.ts | Loading commit data... | |
query_def.ts | Loading commit data... | |
query_help.md | Loading commit data... | |
types.ts | Loading commit data... |