aae6e86547
Prometheus: Metrics browser layout ( #35035 )
...
* Metrics browser layout
* Simplified layout
2021-06-04 16:50:17 +02:00
412bcf1fb0
AzureMonitor: fix Azure Resource Graph queries in Azure China ( #35235 )
...
* Optimize Azure Monitor routes
* Update API version compatible with Azure China
2021-06-04 12:29:18 +01:00
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
43d3d97562
Histogram: enable client-side zoom (with bucket snapping) ( #35220 )
2021-06-03 20:05:47 -05:00
1dc387536e
NodeGraph: Fix sorting markers in grid view ( #35200 )
...
* Fix test data field label
* Fix sorting
* Changed icon for sorting
2021-06-03 23:52:20 +02:00
5fb37ad5dc
AzureMonitor: Fix permissions issue with Logs template variable queries ( #35181 )
2021-06-03 15:22:13 +01:00
0b94f33813
NodeGraph: Don't check for preferredVisualisationType ( #35116 )
...
* Don't check for preferredVisualisationType inside the NodeGraph
* Fix layout worker mocking
2021-06-03 12:48:26 +02:00
a3ba605aff
Timeline: tooltip fixups ( #35145 )
2021-06-03 04:46:32 -05:00
7359ba44d0
Timeline/Status grid panel: Add tooltip support ( #35005 )
...
* Timeline/Status grid tooltip support first pass
* Tooltips workin
* Use getValueFormat to get the duration
* Separate boxes highlight from tooltip interpolation
* Separate state timeline tooltip component, rely on field display color to retrieve color of series
* create an onHover/onLeave API and optimize implementation
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2021-06-02 21:43:47 -05:00
a9b5aa1088
State-timeline: support migrating from discrete panel ( #35071 )
2021-06-02 12:18:20 -07:00
bf96f5e285
Tempo: search fixes ( #35004 )
...
* Tempo: search fixes
Add custom width to time and trace id
Run and show query in search after page refresh
* Iterate through all response data
* Don't store linkedQuery as a property
2021-06-02 16:37:36 +02:00
89fc92947c
InfluxDB: deprecate direct browser access in data source ( #35105 )
...
* influxdb: deperacate direct browser-access
* better docs-formatting
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-06-02 16:37:16 +02:00
a08ee057eb
VizLegend: add readonly prop ( #35096 )
...
* VizLegend: add readonly prop
* Update packages/grafana-ui/src/components/VizLegend/VizLegendTableItem.tsx
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
2021-06-02 15:39:20 +02:00
3be0a2d328
AzureMonitor: Use resource type display names in the UI ( #35060 )
...
* AzureMonitor: Use display names for resource types and locations
* de-pluralize resource types
* Rename Namespace field to Resource Type, and use display names
* add comments
2021-06-02 12:47:04 +02:00
f052f10289
Cleanup the options initialization ( #35080 )
2021-06-02 10:56:57 +01:00
878474a808
Color utils: optimize colorManipulator/alpha() for common cases ( #34948 )
2021-06-01 12:52:58 -05:00
aa7dbd7a69
NodeGraph: Make grid view responsive ( #35047 )
2021-06-01 17:30:47 +02:00
2e38bbf751
Chore: Reduce number of strict typescript errors ( #34595 )
2021-06-01 13:47:29 +01:00
cb3c317e81
TimeSeries: Migration from old graph legend values ( #34997 )
...
* fix(timeseries): filter enabled graph legend values when migrating
* test(timeseries): update snapshots
* test(timeseries): add additional tests for legend
2021-06-01 09:49:19 +02:00
f4a40a4d85
Logs: Use GraphNG to plot log histograms ( #34531 )
...
* Switch to GraphNG for Logs Histogram
* Remove redundant timeZone
It was used just to format timestamp in the tooltip but it's not needed anymore.
* Add tests for creating logs histogram data
* Update decoractors tests
* Adjust bar width to be more like in the old graph
* Fix tooltip pointer color
* Test tooltip pointer color
* Decouple graph config from uPlot internals
* Ensure nested properties are not mutated when overrides are applied
* Add legend toggling for Explore graphs
* Remove unused component
ExploreGraphNGPanel is now used in Explore
* Code formatting
* allow multiple bars pathBuilders to be globally cached with different settings
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2021-06-01 09:28:25 +02:00
7dd5a065ba
Alerting: New alert list panel component ( #34614 )
2021-05-31 14:08:05 +02:00
8c93899b15
PluginsList Panel: Redirect to catalog app for updating plugins ( #34893 )
...
* feat(pluginlistpanel): if catalog app is enabled redirect user if plugin is upgradable
* refactor(catalog): update copy if plugin is disabled
2021-05-31 13:53:40 +02:00
618dc6a2f6
InfluxDB: InfluxQL: apply on enter not on blur ( #34963 )
2021-05-31 10:09:29 +02:00
573d7b8893
GraphNG: Remove fieldName and hideInLegend properties from UPlotSeriesBuilder ( #34901 )
...
* Remove fieldName and hideInLegend properties from UPlotSeriesBuilder
* Fix test
2021-05-31 09:27:57 +02:00
c7076c9e19
DataLinks: Fixes an issue __series.name is not working in data link ( #34932 )
2021-05-31 08:59:27 +02:00
13768da417
State timeline: defer quadtree construction until first mousemove ( #34949 )
2021-05-29 14:01:58 -05:00
4972e0f6a1
Rename: Status grid to history ( #34864 )
2021-05-29 20:24:14 +02:00
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
8143991b94
Security: Update default CSP template and fix firefox CSP issues ( #34836 )
...
* Security: Update default content_security_policy_template
- Add 'strict-dynamic' back to script-src
- Add ws(s)://$ROOT_PATH to connect-src
- Change onEvent to on-event in angular templates to fix CSP issues in firefox.
- Add blob: to style-src
2021-05-28 17:01:10 +02:00
4435895833
Prometheus: exemplars show different symbols ( #34763 )
...
* Show different symbols for different queries
* Only run different exemplars
* Address review comment
* Do the same for dashboard + tests
2021-05-28 15:40:15 +02:00
2205464a8d
Prometheus: Add metadata to metrics in Metrics browser ( #34708 )
...
* Prometheus: Add metadata to metrics in Metrics browser
- use the available metadata to enhance the tooltip on metric items in the metrics browser
- added meta info for histogram metrics (was missing before)
- also added one for ALERTS
* fix test
2021-05-28 14:51:06 +02:00
179eb0898e
AzureMonitor: remove requirement for default subscription ( #34787 )
...
* Do not require default subscription for Azure Monitor
* Fix explore URLs when default subscription not set
* Test datasource fixes
* Added comment
* Fix first or default subscription/workspace
* SubscriptionField doesn't depend on Log Analytics
* Tests fixed
* Select default subscription only when user clicked
2021-05-28 10:19:31 +01:00
48dc78fd48
AzureMonitor: Deprecate using separate credentials for Logs ( #34758 )
...
* Hide switch for using different credentials in AzureMonitor
* Apply feedback. Use @testing-library
2021-05-28 10:14:59 +02:00
261319a4be
Loki: Add formatting for annotations ( #34774 )
...
* add formatting for loki annotations
based/copied from the same features from the prometheus datasource
2021-05-28 10:12:03 +02:00
888cddb834
AzureMonitor: Support querying Subscriptions and Resource Groups in Logs ( #34766 )
...
* AzureMonitor: Support querying Subscriptions and Resource Groups in Logs
* cleanup
2021-05-28 08:58:46 +01:00
658cc5dd2d
PieChart: Support row data in pie chart ( #34755 )
...
* PieChart: Support row data in pie chart
* Make color override work
* removed thing
* Minor refactoring
2021-05-28 07:29:57 +02:00
3fd006604f
BarChart: hide cursor crosshair ( #34862 )
2021-05-27 23:18:15 -05:00
7646246d8c
AzureMonitor: Hide App Insights for data sources not using it ( #34725 )
...
* AzureMonitor: Hide Application Insights and Insights Analytics for panels not using them
* AzureMonitor: Hide Application Insights config
* simplify
* fix test
2021-05-27 20:28:36 +01:00
de86114b66
AzureMonitor: reset default subscription when credentials change ( #34707 )
...
* Update default subscription on credentials change
* Fix secret reset when subscription selected
* Remove unused exports
2021-05-27 19:03:36 +01:00
52f3025901
Timeline: Default line width to 0 ( #34802 )
2021-05-27 17:30:18 +02:00
119dbc4d76
Histogram: Adds histogram test dashboard & test data ( #34821 )
...
* Added test data that contains normal distribution
* Added histogram test dashboard
* Fixed so panels share same data
2021-05-27 17:27:29 +02:00
fcdab32750
NodeGraph: Fix error when clicking link in a context menu ( #34817 )
...
* Add prevent default if onClick exists
* Apply field overrides
2021-05-27 15:33:25 +02:00
ec3f8ce04c
Tempo: Fix the test data source implementation ( #34762 )
...
Fixes #32677
2021-05-27 14:47:10 +02:00
5660bb585f
check if alertmanager being configured is cortex or vanilla ( #34726 )
2021-05-27 13:47:55 +03:00
67028af99e
Live: check schema equality between push messages ( #34548 )
2021-05-27 12:55:42 +03:00
29be741f26
MySQL Datasource: Add timezone parameter ( #27535 )
...
* Add MySQL timezone parameter
* Reword docs/sources/features/datasources/mysql.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* update documentation
* fix formatting mistake from merge
* enhance documentation with reason for parameter usage
* enhance documentation with reason for parameter usage
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-05-27 10:03:03 +02:00
1dd5d6ffb0
GraphNG: uPlot 1.6.10 ( #34759 )
2021-05-26 11:46:24 -05:00
6fb0560a84
TestData: Some simple small test data and first draft of what's new in v8 demo dashboard ( #34731 )
...
* TestData: More test data
* Added v8 demo dashboard
2021-05-26 14:11:57 +02:00
987bffe482
TestData: Support for csv files & csv content ( #34674 )
...
* initial implementation of csv support for test data source
* CSV file & content scenarios working
* Removing categorical data
* fixing handler names
* Update pkg/tsdb/testdatasource/csv_data.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* Update pkg/tsdb/testdatasource/csv_data.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* Update pkg/tsdb/testdatasource/csv_data.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* Update pkg/tsdb/testdatasource/csv_data.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* Update pkg/tsdb/testdatasource/csv_data.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* Update pkg/tsdb/testdatasource/csv_data.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* Update pkg/tsdb/testdatasource/csv_data.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fixed lint issues
* updated so it uses the same parsing
* more CSV tests
* lint fixes
* more lint
* lint
* support time field
* migrate manual entry to csv
* more test output
* more test output
* missing file
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2021-05-26 10:42:42 +02:00
b4ce068f0e
AzureMonitor: Display variables in Logs resource picker ( #34648 )
...
* AzureMonitor: Display variables in Resource Picker
* tests
* hide template variable group when there's no template variables
2021-05-26 09:42:17 +01:00