Commit Graph

3948 Commits

Author SHA1 Message Date
Gábor Farkas
9d82111a1a prometheus: enable new monaco-based query field (#41357)
* prometheus: enable new monaco-based query field

* updated test

* updated tests

* fix e2e tests

* updated comment
2021-11-08 14:20:48 +01:00
Leon Sorokin
f0a108afb3 MarketTrend: add new alpha panel (#40909) 2021-11-05 18:01:26 -07:00
Giordano Ricci
d69ffe0e44 Chore: cleanup ES query_builder test (#41360) 2021-11-05 17:42:00 +00:00
Gábor Farkas
f3f57d3d6e influxdb: improved explanation texts (#41351)
* influxdb: improved explanation texts

* fixed tests
2021-11-05 15:42:54 +01:00
Gábor Farkas
c64997332d prometheus: monaco: fix a corner-case with quotes (#41345) 2021-11-05 15:11:19 +01:00
Giordano Ricci
d524dc6108 Elasticsearch: use field configured in query editor as field for date_histogram aggregations (#41258)
* Elasticsearch: use field configured in query editor as field for date_histogram aggregations

* add tests
2021-11-05 12:11:07 +00:00
Erik Sundell
07754351b7 Azure monitor: Make sure alert rule editor is not enabled when template variables are being used (#41335)
* check if variable exist in query

* add tests

* pr feedback
2021-11-05 12:21:28 +01:00
Gábor Farkas
eec7b9d325 prometheus: monaco: better suggestions inside quotes (#41262)
* prometheus: monaco: better suggestions inside quotes

* add double-quote as trigger character

* moved comment to correct place
2021-11-05 10:13:55 +01:00
Gábor Farkas
ec63b28621 prometheus: monaco: do not show automatic suggestions (#41253)
* prometheus: monaco: do not show automatic suggestions

* updated comments
2021-11-05 10:09:11 +01:00
carrieedwards
9f205cf1d7 Graphite: Add from and until params to tag handling methods (#41319) 2021-11-04 18:17:21 +01:00
Ivana Huckova
2c209e735c Prometheus: Rename step in explore to min step (#41209)
* Prometheus: Make it clear that step in explore is min step

* Fix width

* Update public/app/plugins/datasource/prometheus/components/PromExploreExtraField.tsx

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2021-11-04 13:19:44 +01:00
Nathan Rodman
e8e84f9c23 Alerting: UI for contact point testing with custom annotations and labels (#40491)
* Support custom annotations and labels when testing contact points

* Add modal for testing contact point

* add option for custom notification type

* use annotation and labels fields from rule editor

* update receivers test for new contact point testing method

* rename modal and remove reserved keys for annotations

* add docs for testing contact points

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>

Co-authored-by: George Robinson <george.robinson@grafana.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2021-11-03 09:57:59 -07:00
Andrej Ocenas
5f27959a5e Tempo: Add links to nodes in Service Graph pointing to Prometheus metrics (#41135) 2021-11-03 15:56:39 +01:00
Gábor Farkas
91da1bbb79 prometheus: monaco: allow listing label names + values without a metric (#41233)
* prometheus: monaco: allow listing label names + values without a metric

* removed comment
2021-11-03 11:20:04 +01:00
Gábor Farkas
72ae3235fa prometheus: monaco: autocomplete: offer function-names in functions (#41212) 2021-11-03 10:56:43 +01:00
Gábor Farkas
244e149c34 prometheus: query-field: monaco: implement open-help-by-default (#41112)
* prometheus: query-field: monaco: implement open-help-by-default

* better comment

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* fixed typo in comment

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* better log-message

* fixed comment spelling

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>

* better setting

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
2021-11-03 10:55:07 +01:00
Sarah Zinger
3da4e1cdcd Azure Monitor: Add Resource Picker to Template Variable Query Editor (#40841)
Azure Monitor: Add Resource Picker to Template Variable Query Editor
- Should fix bug related broken template variables that relied on a deprecated default workspace.
2021-11-02 15:30:15 -04:00
Giordano Ricci
7b7c193551 Elasticsearch: Add time zone setting to Date Histogram aggregation (#40882)
* TimeZonePicker: Allow specifying internal timezones to display

* Elasticsearch: Add time zone setting to Date Histogram aggregation

* rename time_zone to timeZone

* Add tests

* fix typo

* Update packages/grafana-data/src/datetime/timezones.ts

Co-authored-by: Chris Cowan <chris@chriscowan.us>

Co-authored-by: Chris Cowan <chris@chriscowan.us>
2021-11-02 16:18:39 +00:00
Ivana Huckova
de83e5702c Prometheus: Run annotation queries trough backend (#41059)
* Prometheus: Run annotation queries trough backend

* Be more explicit on what type of query we are running

* Fix typing, remove unused variables
2021-11-02 16:46:20 +01:00
Isabella Siu
96f37b3f30 CloudMonitoring: use CallResourceHandler instead of PluginProxy (#41064) 2021-11-02 10:37:02 -04:00
Gábor Farkas
28ae9f1bdd prometheus: query-editor: refactor: rename intent to situation (#41079)
* prometheus: query-editor: refactor: rename intent to situation

* fixed forgotten rename
2021-11-02 15:09:35 +01:00
Josh Hunt
cb948d10e0 CloudWatch: Fix strict Typescript errors (#41160)
* CloudWatch: Fix strict typscript errors

* Update public/app/plugins/datasource/cloudwatch/components/ConfigEditor.tsx

Co-authored-by: Sarah Zinger <sarahzinger@users.noreply.github.com>

* Chore: reduce strict error

* Update ci-check-strict.sh

Co-authored-by: Sarah Zinger <sarahzinger@users.noreply.github.com>
Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
2021-11-02 13:16:46 +00:00
Gábor Farkas
c788e2f8e8 prometheus: monaco editor: visual fixes (#41184)
* prometheus: monaco editor: visual fixes

* fixed typo in comment

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>

* more comments added

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
2021-11-02 12:44:51 +01:00
Piotr Jamróz
f1837b5742 Elastic: Full range logs volume (#40700)
* Add basic implementation for logs volume

* Fix aggregation

* Move getFieldConfig

* Remove duplicated aggregation logic

* Extra querying logic

* Simplify querying logic

* Update logs volume aggregation tests

* Remove bar max width and width factor

* Clean up

* Skip level aggregation if it's not configured

* Post merge fix for aggregation

* Fix tests

* Clean up the code

* Ensure logs without level are aggregated as unknown category

* Use LogLevel.unknown

* Fix strict TS errors
2021-11-02 11:53:47 +01:00
Josh Hunt
419c465edf Grafana-UI: Editor UI components (#41136)
* Grafana-UI: Update theme.spacing to support string value when called with just one arugment

This allows theme.spacing("auto") to be valid

* Grafana-UI: Support width="auto" for Select component

This allows for inline Selects that are sized based on their content,
rather than occupying block-width

* Add toOption for creating Select options to @grafana/data

* Add test util
2021-11-01 12:06:28 +01:00
Ryan McKinley
7319efe077 Dashboard: replace datasource name with a reference object (#33817)
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
Co-authored-by: Elfo404 <me@giordanoricci.com>
2021-10-29 10:57:24 -07:00
Giordano Ricci
218aed324f Tempo: add info message about beut beta features (#41107) 2021-10-29 17:46:46 +02:00
Gábor Farkas
24db1efa9d influxdb: influxql: fix table-format data processing with renamed time field (#41052) 2021-10-29 15:49:45 +02:00
Gábor Farkas
fcaf9e68ee prometheus: monaco: stricter autocomplete and handle space (#41028)
* prometheus: monaco: stricter autocomplete

* autocomplete on space
2021-10-29 08:22:40 +02:00
Devin Smith
8869df2ffe Loki/Prometheus: Improve facetting message in label browser (#40998)
* Chore: Improve Loki/Prometheus facetting message in label browser

* Chore: Remove uneeded console log and comment
2021-10-28 16:19:54 +02:00
Piotr Jamróz
877c726246 Loki: Use fixed bucket size for logs volume (#40873)
* Use fixed bucket size for logs volume

* Fix unit tests
2021-10-28 10:53:15 +02:00
Gábor Farkas
25fe5bc027 prometheus: autocomplete: handle label-ops better (#41004) 2021-10-28 10:39:26 +02:00
Gábor Farkas
844d2c8621 prometheus: monaco: handle in-dashboard and in-explore use cases (#40922)
* prometheus: monaco: handle in-dashboard and in-explore use cases

* refactor is-explore handling

* improved comment

* removed unnecessary comment

* reordered props

* simplify code

* refactor: better prop-name

* fixed test snapshot
2021-10-27 11:45:32 +02:00
Ivana Huckova
92cd44940a Prometheus: Refactor backend for scalability for other query types (#40921)
* Prometheus: Refactor backend for scalability for other query types

* Fix linting
2021-10-26 14:47:40 +02:00
Ivana Huckova
ce8e569700 Fix error reseting (#40893) 2021-10-26 13:07:11 +02:00
Zoltán Bedi
c43776aec3 Mixed-ds: Return both results from the same datasource (#39865)
* Mixed-ds: Return both results from the same datasource

* fix mixed data source

* Change concatMap to mergeMap

* Make sure to return correct state at the end

* Make sure to count the targets as well

* Use Marcus's version

* Fix stict error

* Apply suggestions from code review

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2021-10-26 12:54:22 +02:00
Andrej Ocenas
8cf7e520e8 CloudWatch Logs: Fix variable interpolation in queries (#40899)
* Interpolate variables in queries

* Remove test
2021-10-26 11:40:49 +02:00
Josh Hunt
90b802a62d AzureMonitor: Prevent incomplete Logs queries from running (#40512)
* AzureMonitor: Prevent incomplete queries from running

* fix
2021-10-25 17:37:50 +02:00
Gábor Farkas
b5ae62d6ae grafana-ui: simplify and centralize monaco-theme-handling (#40643)
* grafana-ui: simplify and centralize monaco-theme-handling

* simplify code

* monaco: better theme-setup code

* eslint fix

* fix useEffect dependency
2021-10-25 14:55:39 +02:00
Gábor Farkas
9e030970aa prometheus: remove handling of control+enter (#40869)
we are standardizing on shift+enter
2021-10-25 12:20:13 +02:00
Junya Hayashi
d5de885633 CloudMonitoring: Fix TypeError in annotation queries (#40740) 2021-10-25 10:53:08 +02:00
renovate[bot]
f496c31018 Update dependency @types/jest to v27 (#40403)
* Update dependency @types/jest to v27

* Fix type errors

* Linting!

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2021-10-22 17:44:01 +01:00
Ivana Huckova
0a97d0fff3 Prometheus: Change condition for exemplars availability (#40780) 2021-10-22 16:41:16 +02:00
Andrej Ocenas
73e66d97a5 Tempo: Add error metric to service graph (#40774)
* Add typings

* Query error metric for service graph
2021-10-22 16:37:41 +02:00
Erin Noe-Payne
5af8d7de07 Prometheus: Remove limits on metrics, labels, and values in Metrics Browser (#40660)
Resolves #40479

Co-authored-by: Erin Noe-Payne <erin.noepayne@gmail.com>
2021-10-22 11:39:45 +02:00
Ivana Huckova
998ba06f39 Prometheus: Fix interpolation of legendFormat (#40635)
* Prometheus: Fix interpolation of legendFormat

* Fix test
2021-10-22 09:58:59 +02:00
Ivana Huckova
fcd1e6f24c Tempo: Change t/min to r/sec in service map (#40615)
* Tempo: Change t/min to r/sec

* Update units

* Update displayname

* Update comments
2021-10-21 12:09:14 +02:00
Andres Martinez Gotor
ed68056b88 AzureMonitor: Make ResourceNames() case insensitive (#40690) 2021-10-20 16:35:35 +02:00
Andres Martinez Gotor
b3027e8221 CloudMonitoring: Allow to manually set filters (#40606) 2021-10-20 13:03:44 +02:00
Ben Tasker
6c0d3e97fe InfluxDB: Fix spelling - "chronograf" rather than "chronograph" (#40587) 2021-10-20 11:06:24 +02:00