Arve Knudsen
d28d495235
Chore: Enable PR testing in Drone ( #26189 )
...
* Add Drone configuration
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Add more steps
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Add more steps
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Build front-end before testing it
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Upgrade grafana/build-container
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Add packaging step
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Trigger on push
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Remove some steps
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Enable steps
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Install Dockerize
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Use node image for test-frontend
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Increase number of test workers
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Make plugin installation depend on frontend tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Make integration tests depend on frontend tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Use grafana/build-container also for front-end tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Upgrade dependencies in order to fix front-end tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Depend on es-check
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Dont' depend on tests before building front-end
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Add more steps
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix packaging
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Simplify
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Try to build images
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix e2e tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Remove steps
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Install netcat
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Include golangci-lint with grafana/build-container
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Build storybook and docs website
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix e2e tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Use build image with root user
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Drop CircleCI dependencies
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix e2e tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix e2e under Drone
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Execute e2e server separately
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Use own plugin for building Docker images
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Use Starlark to configure Drone
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Add enterprise steps to pipeline
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Add more enterprise steps to pipeline
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Maintain Yarn cache
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Build enterprise Docker images
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Build Ubuntu Docker images
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Refactor
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Add Postgres integration test
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Add MySQL integration test
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix integration tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Parameterize integration test DB connections
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Categorize integration tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Use grabpl integration-tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Remove unintended change
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Drone: Disable Ubuntu Docker images for PR pipeline
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Regenerate yarn.lock
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Upgrade grabpl
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Restore Yarn cache before installing in grafana-enterprise
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Use separate pipelines for OSS and enterprise
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Let OSS builds depend on tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Restore Go cache before building back-end
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Reduce number of variants built for PRs
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix building of Docker images
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Drone: Simplify logic
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Drone: Use Starlark
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Drone: Fix syntax error
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Convert .drone.star to YAML
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Upgrade AWS Go SDK
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Drone: Fix Go linting
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Undo irrelevant changes
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Revert "Undo irrelevant changes"
This reverts commit 5152f65972 .
* Undo irrelevant changes
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* e2e: Support Circle
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Remove unused script
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* TypeScript fixes
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* TypeScript fixes
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Remove unused script
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* More Drone support
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Remove unused script
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix build on Circle
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Remove TODO comment
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-07-10 16:09:21 +02:00
Andrej Ocenas
64bc85963b
Explore: Unification of logs/metrics/traces user interface ( #25890 )
...
Removes "Metrics"/"Logs" mode switcher from Explore, allowing for both
metrics and logs queries at the same time.
Co-authored-by: kay delaney <kay@grafana.com >
2020-07-09 15:14:55 +01:00
Marcelo Nunes Alves
be961c5466
Elasticsearch: Fix using multiple bucket script aggregations when only grouping by terms ( #24064 )
...
* In the parser when it was configurate more bucket it put the formula in name column
* Tests
* Tests
* Tests
* Tests
* Tests
* Tests
* Process/Tests - backend (Go)
* Update pkg/tsdb/elasticsearch/response_parser.go
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
* reverse
* Update pkg/tsdb/elasticsearch/response_parser.go
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
2020-07-09 15:21:19 +02:00
Arve Knudsen
9285595c50
tsdb/postgres: Support Unix socket for host ( #25778 )
...
* tsdb/postgres: Support Unix socket for host
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix host regex
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix host regex
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Remove panic
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix host parsing; add tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Add test
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Use strings.HasPrefix to detect Unix socket host
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Remove debug logging
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Escape single quotes and backslashes
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Test generateConnectionString as requested in review
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Add test case for SSL mode
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-07-09 14:57:09 +02:00
Marcus Efraimsson
c91e5adfcc
Alerting: Don't encrypt username for webhook notifier ( #26170 )
...
Can be hard for users to understand what user is configured
when encrypting the username field why this reverts to
store the username in cleartext.
Also, we don't encrypt username for data sources.
Ref #25967
2020-07-08 19:13:59 +02:00
Marcus Efraimsson
3223d4b419
Alerting: Store sensitive settings encrypted for webhook notifier ( #26164 )
...
Store sensitive settings (username and password) encrypted for webhook notifier.
Ref #25967
2020-07-08 17:46:34 +02:00
Mitsuhiro Tanda
292c985b76
Alerting: Support storing sensitive notifier settings securely/encrypted ( #25114 )
...
Support storing sensitive notification settings securely/encrypted.
Move slack notifier url and api token to secure settings.
Migrating slack notifier to store token and url encrypted is currently
a manual process by saving an existing slack alert notification channel.
saving an existing slack alert notification channel will reset the stored
non-secure url and token.
Closes #25113
Ref #25967
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
2020-07-08 10:17:05 +02:00
Dominik Prokop
74b2c2acdc
Fix lint ( #26130 )
2020-07-07 16:48:25 +02:00
Kyle Brandt
9164a35240
Azure: Restore Insights Metrics alias feature ( #26098 )
...
also fix case sensitivity for azure monitor metrics
2020-07-07 08:42:03 -04:00
Sofia Papagiannaki
e8a8159085
Cloudwatch: Update AWS/MediaConnect metrics and dimensions ( #26093 )
...
* Cloudwatch: Update AWS/MediaConnect dimensions
* Cloudwatch: Update AWS/MetricConnect metrics
2020-07-07 10:16:20 +03:00
Arve Knudsen
41d432b5ae
Chore: Enable whitespace linter ( #25903 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-07-06 20:17:28 +02:00
Labesse Kévin
8e7a88faff
Imagestore: Fallback to application default credentials when no key file is specified for GCS ( #25948 )
...
The external image storage for GCS creates the JWT Token from a credentials file,
but if your Grafana server runs under a GCE instance with a service account on it,
you can use that instead (you don't have to manage/secure the credentials file).
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com >
2020-07-06 15:02:58 +02:00
Sofia Papagiannaki
44dff6fdd0
Auth: Fix POST request failures with anonymous access ( #26049 )
...
Macaron context.QueryBool() seems to modify the request context
that causes the POST and PUT requests to fail with:
"http: proxy error: net/http: HTTP/1.x transport connection broken: http: ContentLength=333 with Body length 0"
2020-07-06 15:59:00 +03:00
annegies
a2737c0896
Remove break from ldap, get all groups from all the group base searches specified ( #25825 )
...
Signed-off-by: Annegies van 't Zand <ace.vtzand@gmail.com >
2020-07-06 12:02:39 +02:00
Carl Bergquist
26852ca788
Instrument dashboard versions and annotation count ( #26044 )
2020-07-03 15:47:46 +02:00
Maksim Nabokikh
3720c25638
grafana-cli: Add ability to read password from stdin to reset admin password ( #26016 )
...
* grafana-cli: Add ability to read password from stdin to reset admin password
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com >
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-07-02 16:29:10 +02:00
Dhananjay
3ef06a0c88
Cloudwatch: Add Support for external ID in assume role ( #23685 )
...
Co-authored by: Arve Knudsen
2020-07-02 15:24:36 +02:00
Dan Cech
b5ca2381bc
provide license token directly via plugin environment ( #25987 )
...
* provide license token directly via plugin environment
2020-07-01 13:02:53 -04:00
Sofia Papagiannaki
bcaa42fbb3
Fix build-in plugins failing to load in windows ( #25982 )
2020-07-01 18:23:18 +03:00
Ryan McKinley
3a9a4f4a49
InfluxDB/Flux: support timeseries with a renamed time field ( #25910 )
2020-06-30 16:56:03 -07:00
Sofia Papagiannaki
bb4b7381fc
Stackdriver: Deep linking from Grafana panels to the Metrics Explorer ( #25858 )
...
* Add stackdriver deep link
* No deep link for SLO queries
* Add tests
* Update docs/sources/features/datasources/stackdriver.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
* Enforce resource type
* Navigate to google account chooser first
* Change renamed image reference
Fix misspelling in image name and change it to conform with the rest cloud monitoring images
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
2020-07-01 01:16:20 +03:00
Carl Bergquist
db8d7ffbf6
Linting fixes for the provisioning package ( #25690 )
2020-06-30 22:46:41 +02:00
Kyle Brandt
4be56cde0d
Azure: Multiple dimension support for Azure Monitor Service ( #25947 )
...
Azure Monitor (metrics) support multiple dimensions instead of just one.
Co-authored-by: Ryan McKinley <ryantxu@gmail.com >
2020-06-30 16:26:46 -04:00
Kyle Brandt
72fa5ccb7b
Azure/Log Analytics: return more error information ( #25937 )
...
When there is an error message in the HTTP response, this copies that error so it is relayed to the user by being shown in the frontend.
This also makes it so when there is an error the interpolated query string (ExecutedQueryString) is returned so users can see it in the query inspector.
2020-06-30 16:05:53 -04:00
Sofia Papagiannaki
4bb3f66569
Stackdriver: Rename Stackdriver to Google Cloud Monitoring ( #25807 )
...
* Update backend
* Update frontend
* Keep old plugin id
* Update docs
* Place doc images to a new directory
* Legacy support for stackdriver-auto alignment
* Consistent plugin name
* Apply suggestions from code review
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com >
* Update docs
* Update public/app/plugins/datasource/cloud-monitoring/README.md
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
* Add reference to the data source formerly being named Stackdriver
* Update pkg/models/datasource.go
Co-authored-by: Carl Bergquist <carl@grafana.com >
* Fix gofmt
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com >
Co-authored-by: Carl Bergquist <carl@grafana.com >
2020-06-30 18:47:13 +03:00
Maksim Nabokikh
810ec4c5f8
Provisioning: Use folders structure from the file system to create desired folders in dashboard provisioning. ( #23117 )
...
Fixes #12016
2020-06-30 15:33:26 +02:00
Arve Knudsen
3651a8e976
Chore: Disable scopelint for tests ( #25923 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-06-30 11:05:47 +02:00
Kyle Brandt
aee5626dca
chore: fix lint breaking build ( #25916 )
2020-06-29 19:45:50 -04:00
Kyle Brandt
d243cd9421
Backend: use latest Go plugin sdk ( #25909 )
...
* backend: use latest go plugin sdk which fixes #25287
* update for Frame.Meta.Custom SDK changes
2020-06-29 16:20:24 -04:00
Kyle Brandt
9a8289b6d9
Azure: Application Insights metrics to Frame and support multiple query dimensions ( #25849 )
...
- The Application Insights Service now returns a dataframe. This is a "wide" formatted dataframe with a single time index.
- Multiple "group by" dimensions may now be selected instead of just one with Application Insights.
- Some types are copied / slightly altered from the Azure Go SDK but that SDK is not imported at this time.
Co-authored-by: Ryan McKinley <ryantxu@gmail.com >
2020-06-29 15:06:58 -04:00
Arve Knudsen
dcd5752086
Chore: Upgrade macaron ( #25869 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-06-29 19:15:11 +02:00
Arve Knudsen
d1e6214a4a
Chore: Enable scopelint Go linter ( #25896 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-06-29 17:04:38 +02:00
Arve Knudsen
5070f7a75b
Chore: Start harmonizing linting with plugin SDK ( #25854 )
...
* Chore: Harmonize linting with plugin SDK
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Chore: Fix linting issues
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-06-29 14:08:32 +02:00
Peter Holmberg
6465b2f0a3
Migration: Migrate New notification channel page ( #25265 )
...
* creating page
* add types select
* adding switches
* start with converting angular templates to json
* converting more alert channels to new format
* convert remaining channels
* typing the form
* add validation, update models
* fix default value in type select
* fix type
* fix issue with validation rule
* add missing settings
* fix type errors
* test notification
* add comments to structs
* fix selectable value and minor things on each channel
* More typings
* fix strictnull
* rename ModelValue -> PropertyName
* rename show -> showWhen
* add enums and adding comments
* fix comment
* break out channel options to component
* use try catch
* adding default case to OptionElement if element not supported
2020-06-29 13:39:12 +02:00
Marcus Efraimsson
460b01f1fe
Datasource: Make sure data proxy timeout applies to HTTP client ( #25865 )
...
For backend data sources executing in the backend (not through data proxy) make
sure that the timeout applies to cached HTTP client.
Fixes #25863
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
2020-06-29 11:22:49 +02:00
Mitsuhiro Tanda
9f82cd4713
Slack: Support use of chat.postMessage ( #25818 )
...
* set bearer token if token is provided
* update slack notification document
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-06-26 20:47:06 +02:00
Emil Tullstedt
5d7cd2e9fc
Teams: Add index for permission check ( #25736 )
...
* Teams: Add indices for permission check
* Teams: Remove user_id index
2020-06-26 15:13:53 +02:00
Eder Nucci
c22940fe35
MSSQL: Fix parsing of uniqueidentifier type ( #25751 )
...
Closes #17084
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
2020-06-26 10:11:43 +02:00
Arve Knudsen
084542a006
Chore: Consolidate on golangci-lint ( #25834 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-06-26 08:46:08 +02:00
Kyle Brandt
bc9c53389c
Azure: Split insights into two services ( #25410 )
...
Azure Application Insights Analytics is no longer accessed by the edit button from within the Application Insights service. Instead, there is now an Insights Analytics option in the Service drop down.
Co-authored-by: Ryan McKinley <ryantxu@gmail.com >
2020-06-25 12:48:18 -04:00
Emil Tullstedt
112c28033d
Provisioning: Apply settings expanders ( #25692 )
...
* Provisioning: Apply settings expanders
Adds support for the variable expanders introduced to the configuration file in #25075 to provisioning.
* Update pkg/services/provisioning/values/values_test.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
* Update pkg/services/provisioning/values/values.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
* Provisioning: Handle errors when expanding JSON maps
2020-06-25 12:04:42 +02:00
Ilya Stoliar
8ca28de305
CloudWatch: Added AWS ServiceCatalog metrics and dimensions ( #25812 )
2020-06-25 01:26:41 +02:00
Ilya Stoliar
1e38a24b88
CloudWatch: Added AWS MediaStore metrics and dimensions ( #25492 )
...
* CloudWatch: Added AWS MediaStore metrics and dimensions
* Camel case dimensions
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com >
2020-06-24 11:06:57 +03:00
Ryan McKinley
740a9ad5f9
InfluxDB: support aggregate results ( #25726 )
2020-06-22 13:44:41 -07:00
Ryan McKinley
8d1ed33e20
InfluxDB: different config UI for 1x vs 2x ( #25723 )
2020-06-22 13:03:34 -07:00
Ryan McKinley
05ed781184
InfluxDB: use released client 1.3.0 ( #25725 )
2020-06-22 10:19:26 -07:00
Agnès Toulet
b5b019dfcf
Notifications: fix reply-to option for emails ( #25748 )
2020-06-22 18:56:49 +02:00
Carl Bergquist
703f728c0c
Dashboards: Make path to default dashboard configurable ( #25595 )
...
Closes #25463
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
2020-06-22 18:00:39 +02:00
Marcus Efraimsson
cc95754e0d
Provisioning: Adds support for enabling app plugins ( #25649 )
...
Adds support for enabling app plugins using provisioning.
Ref #11409
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
2020-06-22 17:49:13 +02:00
Marcus Efraimsson
58cefe73ee
Datasources: Handle URL parsing error ( #25742 )
...
Adds handling of error returned from URL parsing.
Fixes #25714
2020-06-22 16:34:40 +02:00