Ashley Harrison
d2a70bc42d
Chore: more any/type assertion improvements ( #57450 )
...
* more friday any/type assertion improvements
* Apply suggestions from code review
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
* Update public/app/angular/promiseToDigest.test.ts
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2022-10-25 11:04:35 +02:00
timkendrickmw
85dbacafdb
GrafanaUI: improve Prometheus getQueryHints performance ( #52148 )
2022-08-11 15:47:07 +02:00
Ivana Huckova
8ff152f98f
ModifyQuery: Improve typing for modifyQuery and query hints ( #52326 )
...
* ModifyQuery: Improve typing
* Elasticsearch: Added `modifyQuery` method to add filters in Explore (#52313 )
* fixed elasticsearch `QueryFixAction` type
Co-authored-by: Sven Grossmann <Svennergr@gmail.com>
2022-07-18 14:13:34 +02: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
Ivana Huckova
d38f0e5d9e
Prometheus: Offer hint for metrics with labels ( #45396 )
...
* Prometheus: Offer hint for counter metric with labels
* Update comment
* Fix hinting for buckets with labe-values
2022-02-16 09:34:32 +01:00
Ivana Huckova
9e2caa9ddc
Prometheus: Add hints to query builder ( #45288 )
...
* Add hints to query builder
* Move Query hints to own component
* Use replace 5m with in rate queries
* Remove unused prop
2022-02-11 16:50:35 +01:00
renovate[bot]
d87cd6f26c
Update dependency prettier to v2.5.1 ( #43473 )
...
* Update dependency prettier to v2.5.1
* prettier fixes
* chore(toolkit): bump prettier to 2.5.1
* style(eslint): bump grafana config to 2.5.2 in core and toolkit
* style(mssql-datasource): fix no-inferrable-types eslint errors
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2022-02-02 12:02:32 +00:00
Gábor Farkas
346a53145c
prometheus: metadata: simplify the metrics-metadata format ( #39411 )
...
* prometheus: metadata: simplify the metrics-metadata format
* fixed unit test
* fixed tests
2021-09-21 15:19:52 +02:00
Ivana Huckova
add1b827ae
Prometheus: Add info that using Loki as Prometheus data source is no longer supported and might stop working ( #34650 )
...
* Add information that Loki as Prometheus data source is not supported
* Fix ugly error when loki as prometheus used
* Refactor, add test
* Fix type error
* Fix test by passing missing method
* Update public/app/plugins/datasource/prometheus/query_hints.ts
* Remove optionality in prop
2021-05-28 17:10:10 +02:00
kay delaney
bad048b7ba
Performance: Standardize lodash imports to use destructured members ( #33040 )
...
* Performance: Standardize lodash imports to use destructured members
Changes lodash imports of the form `import x from 'lodash/x'` to
`import { x } from 'lodash'` to reduce bundle size.
* Remove unnecessary _ import from Graph component
* Enforce lodash import style
* Fix remaining lodash imports
2021-04-21 09:38:00 +02:00
Torkel Ödegaard
1d689888b0
Prettier: Upgrade to 2 ( #30387 )
...
* Updated package json but not updated source files
* Update eslint plugin
* updated files
2021-01-20 07:59:48 +01:00
Torkel Ödegaard
7e8bd0c1b7
Chore: Fix typescript strict null errors from 674 -> 565 ( #26057 )
...
* Chore: Fix typescript strict null errors
* Added new limit
* Fixed ts issue
* fixed tests
* trying to fix type inference
* Fixing more ts errors
* Revert tsconfig option
* Fix
* Fixed code
* More fixes
* fix tests
* Updated snapshot
2020-07-06 21:16:27 +02:00
Huan Wang
8b632ac029
Prometheus: Do not show rate hint when increase function is applied ( #21955 )
2020-02-06 12:56:53 +01:00
David
cb3d91b53c
Prometheus: user metrics metadata to inform query hints ( #21304 )
...
* Prometheus: user metrics metadata to inform query hints
- no longer analyse datapoints
- either use metrics metadata to determine metrics type or use metric
name suffix
- removed testcases based on datapoints
* Added hint certainty and tests
2020-01-03 12:55:50 +01:00
Dominik Prokop
9b7748ec13
Chore: Reorg packages ( #20111 )
...
Primarily- moving majority of the types and utils from @grafana/ui to @grafana/data
* Move types from grafana-ui to grafana-data
* Move valueFormats to grafana-data
* Move utils from grafana-ui to grafana-data
* Update imports in grafana-ui
* revert data's tsconfig change
* Update imports in grafana-runtime
* Fix import paths in grafana-ui
* Move rxjs to devDeps
* Core import updates batch 1
* Import updates batch 2
* Imports fix batch 3
* Imports fixes batch i don't know
* Fix imorts in grafana-toolkit
* Fix imports after master merge
2019-10-31 10:48:05 +01:00
Hugo Häggmark
d7ccf98b1b
Prometheus: Prevents panel editor crash when switching to Prometheus datasource ( #18616 )
...
* Fix: Fixes panel editor crash when switching to Promehteus
Fixes : #18600
* Refactor: Adds tests
2019-08-19 14:04:16 +02:00
Ryan McKinley
3f15170914
Refactor: move some files to @grafana/data ( #17952 )
...
* moving to data WIP
* more refactoring
* add missing test
* mock full path
* remove sinon from grafana-ui
2019-07-06 08:05:53 +02:00
Hugo Häggmark
3424b64299
Typescript: Removes implicit anys ( #17625 )
...
* Chore: Remove implicit anys from ResultProcessor and tests
* Chore: Removes implicit anys for /loki/**/*.ts
* Chore: Removes implicit anys for prometheus/**/*
2019-06-18 11:01:12 +02:00
Scott Leggett
06dfbb382b
Docs: fix grammar in query hint, tests, and documentation ( #16444 )
...
* Fix use of "monotonically" in explore documentation
* Fix use of "monotonically" in query hints and tests
2019-04-10 10:12:57 +02:00
Torkel Ödegaard
205e2acdd8
Added data source type to explore state
2019-01-17 19:17:29 +01:00
David Kaltschmidt
91ea8dccf5
Explore: Fix JS error when switching between 2 prometheus datasources
...
- since the DataQuery rewrite, Explore starts by submitting its queries (Explore cant know if the queries are emtpty)
- The datasource intercepts an empty query and returns an empty list of time series, and also no table for the table query.
- The query hinter then received no series to analyse and was not guarding against this.
- This PR adds this guard.
2018-11-26 13:43:22 +01:00
Michael Huynh
c255b5da11
Add sum aggregation query suggestion
...
Implements rudimentary support for placeholder values inside a string
with the `PlaceholdersBuffer` class. The latter helps the newly added
sum aggregation query suggestion to automatically focus on the label
so users can easily choose from the available typeahead options.
Related: #13615
2018-10-28 21:03:39 +08:00
David Kaltschmidt
54a3e2d1d1
Added types to query rows
2018-10-24 14:55:56 +02:00
David Kaltschmidt
fbed57ab43
Get query hints per query transaction
2018-10-23 16:10:52 +02:00
David Kaltschmidt
107bef2d6d
Fix rate function hint for series with nulls
2018-10-04 16:32:32 +02:00
David
b0172427b1
Extract query hints
2018-10-04 16:27:18 +02:00