Ivana Huckova
20ec54f1f9
Elasticsearch: Use generated types in data source ( #62753 )
...
* Use generated types in frontend
* Export missing MetricAggregationWithMeta
* Remove not needed changes
* Update
* Fix lint
* Update comments
2023-02-03 12:04:12 -05:00
Josh Hunt
3c6e0e8ef8
Chore: ESlint import order ( #44959 )
...
* Add and configure eslint-plugin-import
* Fix the lint:ts npm command
* Autofix + prettier all the files
* Manually fix remaining files
* Move jquery code in jest-setup to external file to safely reorder imports
* Resolve issue caused by circular dependencies within Prometheus
* Update .betterer.results
* Fix missing // @ts-ignore
* ignore iconBundle.ts
* Fix missing // @ts-ignore
2022-04-22 14:33:13 +01:00
Giordano Ricci
b5e4a0a39a
Elasticsearch: Only show numbers in histogram field autocomplete ( #38631 )
2021-08-27 17:19:44 +01:00
Hugo Häggmark
dba15190af
Chore: Upgrades rxjs to 7.3.0 ( #37913 )
...
* Chore: upgrades rxjs to 7.3.0
* Chore: replaces toPromise with lastValueFrom
* Chore: removes unused mock that caused test error
* Chore: fixes build error in PieChartPanel
* Chore: fixed build error in requestAllIndices
* Chore: fixes comment
* Chore: trying to reduce docs errors
* Chore: searches for explicit api extractor warnings
* Chore: updates rxjs-spy to 8.0.0
* Chore: reverts to main
* Chore: upgrade rxjs and rxjs-spy
2021-08-19 06:38:31 +02:00
Chris Cowan
f580c9149c
Elasticsearch: Add Top Metrics Aggregation and X-Pack support ( #33041 )
...
* Elasticsearch: Add Top Metrics Aggregation
* Adding support for non-timeseries visualizations
* removing console.logs
* restoring loadOptions type
* Honor xpack setting
* Adding test for elastic_response
* adding test for query builder
* Adding support of alerting
* Fixing separator spelling
* Fixing linting issues
* attempting to reduce cyclomatic complexity
* Adding elastic77 Docker block
* Update public/app/plugins/datasource/elasticsearch/components/QueryEditor/MetricAggregationsEditor/MetricEditor.test.tsx
Co-authored-by: Giordano Ricci <grdnricci@gmail.com>
* refactoring MetricsEditor tests
* Fixing typo
* Change getFields type & move TopMetrics to a separate component
* Fix SegmentAsync styles in TopMetrics Settings
* Fix field types for TopMetrics
* WIP
* Refactoring client side to support multiple top metrics
* Adding tests and finishing go implimentation
* removing fmt lib from debugging
* fixing tests
* reducing the cyclomatic complexity
* Update public/app/plugins/datasource/elasticsearch/elastic_response.ts
Co-authored-by: Giordano Ricci <grdnricci@gmail.com>
* Update public/app/plugins/datasource/elasticsearch/hooks/useFields.ts
Co-authored-by: Giordano Ricci <grdnricci@gmail.com>
* Checking for possible nil value
* Fixing types
* fix fake-data-gen param
* fix useFields hook
* Removing aggregateBy and size
* Fixing go tests
* Fixing TS tests
* fixing tests
* Fixes
* Remove date from top_metrics fields
* Restore previous formatting
* Update pkg/tsdb/elasticsearch/client/models.go
Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com>
* Update pkg/tsdb/elasticsearch/client/models.go
Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com>
* Fix code review comments on processTopMetricValue
* Remove underscore from variable names
* Remove intermediate array definition
* Refactor test to use testify
Co-authored-by: Giordano Ricci <grdnricci@gmail.com>
Co-authored-by: Elfo404 <me@giordanoricci.com>
Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com>
2021-06-04 11:07:59 +01:00
Giordano Ricci
cdb4785496
Elasticsearch: Allow omitting field when metric supports inline script ( #32839 )
...
* Elasticsearch: Allow omitting field when metric supports inline script
* Add tests for MetricEditor to show a None option
* Add tests for useFields hook
* Alerting: allow elasticsearch metrics without field
2021-04-14 15:18:06 +01:00