Commit Graph
100 Commits
Author SHA1 Message Date
Ryan McKinley f6c94b9c40 Templating: use default datasource when missing (#21495) 2020-01-14 22:51:25 -08:00
Ryan McKinleyandDominik Prokop a0d43de761 Backend Plugins: add a common implementation (#21408)
* add common backend

* use const for range

* likely not differnt

* send the right orgId

* Add DataSourceWithBackend to @grafana/runtime mock in root reducer test

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2020-01-14 12:59:48 +01:00
Ryan McKinley 7521d2bba0 Heatmap: fix formatting (#21433)
* add formatting

* remove logging
2020-01-10 12:50:30 +01:00
Ryan McKinley bf18704490 Inspector: support custom metadata display (#20854) 2020-01-09 22:59:23 -08:00
Ryan McKinley 5321e7536f UnitPicker: show custom units on load (#21397) 2020-01-08 07:16:42 -08:00
Ryan McKinley f7053e19d2 TimeZones: fix utc test (#21393) 2020-01-07 14:01:06 -08:00
Ryan McKinley 8233c407a2 Chore: upgrade d3 (#21368) 2020-01-07 02:59:11 -08:00
Ryan McKinley eac66813ca Toolkit: add git log info to the plugin build report (#21344) 2020-01-06 17:10:15 -08:00
Ryan McKinley 1ba072cd58 NewsPanel: update default feed url (#21342) 2020-01-04 13:41:43 -08:00
Ryan McKinley 1aa52f259c Arrow: don't export arrow... breaking phantomjs e2e test (#21331) 2020-01-03 10:00:30 -08:00
Ryan McKinley e550572033 DataFrame: round trip metadata to arrow Table (#21277) 2020-01-03 08:12:19 -08:00
Ryan McKinley e1acc77297 @grafana/data: use timeZone parameter rather than isUtc (#21276) 2020-01-02 08:11:28 -08:00
Ryan McKinley c1b707874d Units: support dynamic count and currency units (#21279) 2020-01-02 07:46:49 -08:00
Ryan McKinley 57c8155971 Websockets: upgrade websocket libray to 1.4.1 (#21280) 2019-12-29 23:07:38 -08:00
Ryan McKinley d9e9843a10 FieldConfig: add thresholds and color modes (#21273) 2019-12-28 17:32:58 -08:00
Ryan McKinley af2cd77655 Units: support farenheit (existing misspelling) (#21249) 2019-12-23 22:05:26 -08:00
Ryan McKinley 8d537b7afb Chore: remove StreamHandler and DataStreamState (#21234)
* remove StreamHandler

* remove DataStreamState
2019-12-23 06:16:04 +01:00
Ryan McKinley b8c0924ab1 NewsPanel: add news as a builtin panel (#21128) 2019-12-20 10:47:45 -08:00
Ryan McKinleyandTorkel Ödegaard 104c2e3636 Metrictank: fix bundled dashboard (#21209)
* update metrictank dashboard

* Restored dashboard datasource variable, and improved error handling in the import api handler

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2019-12-20 11:42:47 +01:00
Ryan McKinley 6de4933a4a FieldConfig: set min/max automatically for gauge (#21073) 2019-12-13 08:36:49 -08:00
Ryan McKinley 1aa39ee458 FieldConfig: support overrides model (#20986) 2019-12-12 14:55:30 -08:00
Ryan McKinley 23510f95a3 Toolkit: remove unused plugin-ci report types (#21012) 2019-12-10 16:06:41 -08:00
Ryan McKinley 4ba5d946f2 DataSource: remove delta option (#20949) 2019-12-08 16:13:14 -08:00
Ryan McKinley d7c76dacad ValueFormats: dynamically create units (#20763)
* update fixed

* update fixed

* update fixed

* don't change any tests

* add mising space

* Custom unit formats

* return a string for kbn

* return a string for kbn

* return a string for kbn

* Simplify unit tests

* More units

* fix more tests

* fix more tests

* fix more tests

* format values

* format values

* TimeSeries to string

* more kbn tests

* use the formatted value

* BarGauge: Fixed font size calculations

* support prefix

* add si support

* avoid npe

* BarGauge/BigValue: value formatting

* fix some tests

* fix tests

* remove displayDateFormat

* another unicode char

* Graph: Use react unit picker

* Updated unit picker

* Fixed build errors

* more formatting

* graph2 tooltip formatting

* optional chaining
2019-12-04 09:08:07 +01:00
Ryan McKinley 3289ee8b77 @grafana/data: don't export ArrowDataFrame (#20855) 2019-12-03 23:17:48 -08:00
Ryan McKinley e216044c75 DataFrame: add utilities to @grafana/data that support apache arrow (#20813) 2019-12-02 12:39:50 -08:00
Ryan McKinley cbdca6cce8 VizRepeater/BarGauge: Use common font dimensions across repeated visualisations (#19983)
* calculate metrics

* fix tests

* update test

* update names

* BarGauge: measure title width

* BarGauge: added tests

* BarGauge: Improved font size handling

* Removed unused var

* BarGauge: Further font size tweaks

* BarGauge: added comments

* BarGauge: final tweak

* Updated snapshot*

* Fixed issues
2019-11-24 01:00:08 +01:00
Ryan McKinley d9abf01ce1 grafana/toolkit: Smaller output after successful upload (#20580)
After toolkit uploads a report successfully, it should only show the 
response data, not the whole request info.
2019-11-22 10:38:14 +01:00
Ryan McKinley f78b3b1329 Table: Use the configured field formatter if it exists (#20584)
This PR lets the alpha Table component use a Fields configured 
formatter rather than the super hacky ColumnStyle.
2019-11-22 10:35:26 +01:00
Ryan McKinley 1f018adbf3 grafana/toolkit: remove aws-sdk and upload to grafana.com API endpoint (#20372)
* remove aws-sdk and upload directly

* remove unused imports

* put the plugin file in the root directory
2019-11-14 09:15:36 +01:00
Ryan McKinley 8430a182ef Transformations: filter results by refId (#20261) 2019-11-08 11:47:35 -08:00
Ryan McKinley 026d13469f Graphite: add metrictank meta in response (#20138)
* metric tank meta

* add metric tank info

* fixed info box

* process meta

* attach metrictank meta to response

* remove extra logging

* response is now DataFrame

* Minor refactoring and renaming of the prop

* Graphite: minor fixes
2019-11-08 10:38:10 +01:00
Ryan McKinley 818aa8eefa DataFrame: move labels to field (#19926) 2019-11-07 07:50:45 -08:00
Ryan McKinley 08ada20270 @grafana/runtime: Expose datasourceRequest in backendSrv 2019-11-07 11:29:49 +01:00
Ryan McKinley 8484b43001 DisplayProcessor: improve time field support (#20223) 2019-11-07 00:08:25 -08:00
Ryan McKinley eaba50283e MixedQuery: refactor so other components could also batch queries (#20219)
* query mixed

* query mixed

* batch queries

* check that the values only have 3 rows at the *end* as well
2019-11-07 07:18:27 +01:00
Ryan McKinley dbc68ef6e0 SharedQuery: don't explode when missing logo (#20187)
* don't explode when missing logo

* add path to a real icon
2019-11-07 07:13:20 +01:00
Ryan McKinley b1e0a4d2c2 PluginLoader: export classes on @grafana/ui (#20188) 2019-11-06 05:27:14 -08:00
Ryan McKinley 92ab4d80f0 Error Handling: support errors and data in a response (#20169) 2019-11-05 15:20:04 -08:00
Ryan McKinley 5210a8f2f4 Dashboards: add panel inspector (#20052) 2019-11-04 11:53:44 -08:00
Ryan McKinley 4acceff0de Units: Add milli/microSievert, milli/microSievert/h and pixels (#20144)
* add more radiation units

* add pixels
2019-11-01 15:33:58 -04:00
Ryan McKinley dc1fa7ac70 Toolkit: copy full directory structure for img,libs,static (#20145) 2019-11-01 09:39:20 -07:00
Ryan McKinley 4d1b969a5c GEL: include the expression count in the request (#20114) 2019-10-31 16:22:00 -07:00
Ryan McKinley bbff282b89 GEL: wrap arrow utils in async load (#20134) 2019-10-31 15:54:10 -07:00
Ryan McKinley 861eb72113 transform: add expressions to query editor (w/ feature flag) (#20072)
for use with gel which is not released yet.
2019-10-30 14:38:28 -04:00
Ryan McKinley 2bb4684741 DataSource: don't filter hidden queries automatically (#20088) 2019-10-30 09:51:13 -07:00
Ryan McKinley 5165e85fae PanelQuerRunnerrremove logging (#20073) 2019-10-29 06:17:36 +01:00
Ryan McKinley 9e004b9211 DataLinks: Implement javascript callback (#19851) 2019-10-28 04:08:19 -07:00
Ryan McKinley 8232659012 SingleStat: apply mappings to no data response (#19951) 2019-10-22 16:31:56 +02:00
Ryan McKinley 09cf9711a0 Dependencies: Update yarn.lock (#19927) 2019-10-21 08:55:08 +02:00
Ryan McKinley 060fab8f1c QueryEditor: move QueryEditorRows to its own component (#19756) 2019-10-18 13:09:55 +02:00
Ryan McKinley 3ca01c3255 grafana/toolkit: Use http rather than ssh for git checkout (#19754) 2019-10-15 14:18:15 +02:00
Ryan McKinley f06fd5bce2 DisplayFormat: use toLocaleString for infinity 2019-09-25 09:56:25 -07:00
Ryan McKinley 32b73bb496 ValueFormats: check for inf (#19376) 2019-09-25 09:04:51 +02:00
Ryan McKinleyandMarcus Efraimsson 2474511d03 Heatmap: use DataFrame rather than LegacyResponseData (#19026)
* merge master

* TimeSeries: datasources with labels should export tags (not labels) (#18977)

* merge master

* export prometheus tags

* Annotations: Add annotations support to Loki (#18949)

* Explore: Unify background color for fresh logs (#18973)

* Singlestat: render lines on the panel when sparklines are enabled (#18984)

* Image rendering: Add deprecation warning when PhantomJS is used for rendering images (#18933)

* Add deprecation warning

* Update pkg/services/rendering/rendering.go

Co-Authored-By: Marcus Efraimsson <marcus.efraimsson@gmail.com>

* Units: Adding T,P,E,Z,and Y bytes (#18706)

* Adding T and P for bytes

Luckily, all the hard work was done before; just added in these prefixes for our production environment.

* Future-proofing with other values (why not?)

* Yottaflops?

* Cutting back down to Peta sizes, except for hashes

* Refactor: move ScopedVars to grafana/data (#18992)

* Refactor: Move sql_engine to sub package of tsdb (#18991)

this way importing the tsdb package does not come with xorm dependencies

* use DataFrame in heatmaps

* actually use the setting :)

* remove unused timeSrv

* merge with master / useDataFrames

* fix test function

* merge master

* fix datasource type on snapshot

* reuse DataFrame calcs from graph panel

* update comments
2019-09-24 14:56:15 +02:00
Ryan McKinley 6787e7b5ab Vector: remove toJSON() from interface (#19254) 2019-09-20 08:22:33 -07:00
Ryan McKinley 14f1cf29f0 FieldDisplay: Update title variable syntax (#19217) 2019-09-19 08:17:15 +02:00
Ryan McKinley 383bdb160f Chore: fix prettier error after github suggestions commit (#19150) 2019-09-16 21:48:37 -07:00
Ryan McKinley 015ab370b0 Alerts: show a warning/error if transformations are configured (#19027) 2019-09-16 20:59:22 -07:00
Ryan McKinley 5b9901ebba GraphPanel: don't listen to legacy onDataReceived events (#19054)
* don't listen to legacy data events in graph

* fix test

* rename function

* add annotationsSrv stub

* use const

* fix preProcessPanelData

* update test
2019-09-13 06:40:10 +02:00
Ryan McKinley e3a99a0a3d toolkit: fix master build, avoid null check (#19055) 2019-09-12 10:32:12 -07:00
Ryan McKinley 8c5d925063 toolkit: pipe execa output to console.stdout (#19052) 2019-09-12 08:39:11 -07:00
Ryan McKinley e4e7719428 toolkit: run make for backend plugins (#19029) 2019-09-12 01:17:41 -07:00
Ryan McKinley 7b856ae040 QueryOptions: update maxDataPoints text and show any value that is configured (#18761)
* update maxDataPoints UI

* use maxDataPoints to calculate interval

* don't change interval calculation
2019-09-11 07:45:08 +02:00
Ryan McKinley 7520ebadac Refactor: move ScopedVars to grafana/data (#18992) 2019-09-10 12:06:01 -07:00
Ryan McKinley eccc6adfde TimeSeries: datasources with labels should export tags (not labels) (#18977)
* merge master

* export prometheus tags
2019-09-10 06:58:34 +02:00
Ryan McKinley 62a808bf1f MixedDataSource: refactor, cleanup, and add tests (#18948)
* merge master

* move mixed datasource

* all responses in test

* fix tests/mocks

* remove ?
2019-09-09 11:29:37 +02:00
Ryan McKinley 7d32caeac2 Transformers: configure result transformations after query(alpha) (#18740) 2019-09-09 08:58:57 +02:00
Ryan McKinley 991f77cee1 Loki: support loki with streaming in dashboards (#18709)
Move some of the buffering with live streaming inside of the datasource, sending full frames instead of deltas and allow Loki in dashboards.
2019-09-05 14:04:01 +02:00
Ryan McKinley c777301535 DataFrame: split DataFrameHelper into MutableDataFrame and FieldCache (#18795)
* add appending utility

* add appending utility

* update comment

* rename to mutable

* move mutable functions out of DataFrameHelper

* move mutable functions out of DataFrameHelper

* move mutable functions out of DataFrameHelper

* turn DataFrameHelper into FieldCache

* guess time from name

* graph the numbers

* return the timeField, not just the index

* just warn on duplicate field names

* only use a parser if the input is a string

* append init all fields to the same length

* typo

* only parse string if value is a string

* DataFrame: test fixes

* Switch to null for missing values

* Fixed tests
2019-09-01 14:44:22 +02:00
Ryan McKinley 13f55bc5e8 MixedDatasource: don't filter hidden queries before sending to datasources (#18814) 2019-08-30 11:59:23 -07:00
Ryan McKinley e9c1b8b3f3 @grafana/toolkit: add package versions to the ci report (#18751) 2019-08-28 07:01:28 -07:00
Ryan McKinley 5fcbc33710 @grafana/data: Matchers and Transforms (#16756)
* add extension framework

* add filter transformer

* more logging

* adding more tests

* make stats an extension

* make stats an extension

* test registry init

* first get a function, then call it

* move files to data package

* not used

* update to columnar

* Add more tests for nameMatcher

* Fix invert predicate

* add fluent API

* remove calc snapshot

* split Field matchers and Frame matchers

* split filter transformers

* Fix typo
2019-08-28 13:37:46 +02:00
Ryan McKinley ff6b8c5adc DataLinks: enable data links in Gauge, BarGauge and SingleStat2 panel (#18605)
* datalink on field

* add dataFrame to view

* Use scoped variables to pass series name and value time to data links interpolation

* Use scoped variables to pass series name and value time to data links interpolation

* Enable value specific variable suggestions when Gauge is displaying values

* Fix prettier

* Add basic context menu with data links to GaugePanel

* Fix incorrect import in grafana/ui

* Add custom cursor indicating datalinks available via context menu (in Gauge only now)

* Add data links to SingleStat2

* Minor refactor

* Retrieve data links in a lazy way

* Update test to respect links retrieval being lazy

* delay link creation

* cleanup

* Add origin to LinkModel and introduce field & panel links suppliers

* Add value time and series name field link supplier

* Remove links prop from visualization and implement common UI for data links context menu

* Update snapshot

* Rename className prop to clickTargetClassName

* Simplify condition

* Updated drilldown dashboard and minor changes

* Use class name an onClick handler on the top level dom element in visualization

* Enable series name interpolation when presented value is a calculation
2019-08-28 08:50:43 +02:00
Ryan McKinley e1924608a2 DashboardDatasource: reuse query results within a dashboard (#16660)
* move queryRunner to panelModel

* remove isEditing from PanelChrome

* move listener to QueriesTab

* add shared query datasource

* expose getDashboardSrv to react

* no changes to panel chrome

* issue queries when in fullscreen

* moved to regular QueryEditor interface

* moved to regular QueryEditor interface

* lower limit

* add dashboard query

* no changes to editor row

* fix sort order

* fix sort order

* make it an alpha panel

* make panelId a getter

* fix angular constructor

* rename SeriesData to DataFrame

* merge with master

* use series

* add simple tests

* check unsubscribe

* Minor code cleanup, creating Subjects look cheap and does not need to be lazy, simplifies code

* minor refactor

* Minor refacforing, renames

* added test dashboard
2019-08-27 11:06:49 +02:00
Ryan McKinley 8ce509f3b4 Plugins: show a clear error on the plugin page when it failed to load (#18733) 2019-08-26 23:43:45 -07:00
Ryan McKinley 73d9f262bd @grafana/data: improve the CircularVector api (#18716) 2019-08-26 12:42:27 -07:00
Ryan McKinley ca778363bf Streaming: improve JSDocs for DataSourceAPI streaming support (#18672) 2019-08-22 10:00:19 -07:00
Ryan McKinley f7c55d3968 Plugins: better warning when plugins fail to load (#18671)
* better pluin feedback

* add server side check for module.js
2019-08-22 07:04:02 +02:00
Ryan McKinley c98c5c3c8e SingleStat2: save options to defaults not override (#18666) 2019-08-21 13:24:21 -07:00
Ryan McKinley 68f7413566 SingleStat: use DataFrame results rather than TimeSeries/TableData (#18580) 2019-08-21 07:56:53 -07:00
Ryan McKinley e6fbf358c8 TestData: attach labels to series results (#18653) 2019-08-21 07:50:13 -07:00
Ryan McKinley ffd630ad96 Singlestat: Disable new singlestat gauge usage (#18610) 2019-08-21 13:56:02 +02:00
Ryan McKinley 21948e80e0 SingleStat: add a gauge migration call to action button in the editor (#18604) 2019-08-18 15:01:07 -07:00
Ryan McKinley 5a41e8b119 Refactor: move KeyValue and deprecation warning to @grafana/data (#18582)
* move KeyValue and deprecation warning

* move KeyValue and deprecation warning

* rename displayProcessor file
2019-08-16 11:10:32 +02:00
Ryan McKinley 6335509a23 Annotations: use a single row to represent a region (#17673)
* SQLite migrations

* cleanup

* migrate end times

* switch to update with a query

* real migration

* anno migrations

* remove old docs

* set isRegion from time changes

* use <> for is not

* add comment and fix index decleration

* single validation place

* add test

* fix test

* add upgrading docs

* use AnnotationEvent

* fix import

* remove regionId from typescript
2019-08-16 10:49:30 +02:00
Ryan McKinley e59bae55d9 DataFrame: convert from row based to a columnar value format (#18391) 2019-08-15 09:18:51 -07:00
Ryan McKinley e27731bc7a Toolkit: write PR report to a folder with the circle build number (#18560) 2019-08-14 14:06:43 -07:00
Ryan McKinley 63f47fd8e2 Plugins: expose react-redux, redux (#18501) 2019-08-14 00:20:23 -07:00
Ryan McKinley 0ba07720df TimeSeries: assume values are all numbers (#18540)
* assume number for TimeSeries types

* use const
2019-08-14 08:07:21 +02:00
Ryan McKinley 3ccc10f82c React: Rename deprecated UNSAFE_componentWillReceiveProps (#18526) 2019-08-13 10:08:33 +02:00
Ryan McKinley 66faedfb9d DataFrame: remove dateFormat (#18424) 2019-08-07 10:20:25 +02:00
Ryan McKinley d8f86834d9 grafana/toolkit: improve CI task (#18189) 2019-08-03 12:34:02 -07:00
Ryan McKinley 09e7938499 Gauge/BarGauge: Support decimals for min/max toFloatOrUndefined (#18368) 2019-08-03 16:10:41 +02:00
Ryan McKinley 5f4b5dfecd Refactor: use data rather than series in stream callback(#18126) 2019-08-01 23:16:29 -07:00
Ryan McKinley 294eabda5b grafana/toolkit: support windows paths (#18306) 2019-07-30 10:48:21 -07:00
Ryan McKinley 7949329636 Plugins: return a promise for loadPluginCss (#18273) 2019-07-29 21:14:34 -07:00
Ryan McKinley 4ce814ba94 Utils: avoid calling console.warn() too often for deprecation warnings (#18269) 2019-07-29 21:13:31 -07:00
Ryan McKinley a52162da37 GettingStarted: Skip Query for getting started (#18268) 2019-07-28 07:54:38 +02:00
Ryan McKinley 6fa617efdc Plugins: Include build number and PR in metadata (#18260) 2019-07-25 15:39:18 +02:00