Commit Graph

27712 Commits

Author SHA1 Message Date
Arve Knudsen
87633c563c
Chore: Upgrade Docker build image wrt. Go/golangci-lint/Node (#30077)
* ci-build: Upgrade base image, Go, Node, golangci-lint

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Drone: Upgrade build image

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Drone: Upgrade plugin build image

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-01-06 17:52:17 +01:00
Vardan Torosyan
7ff37bc6bb
Usage Stats: Calculate concurrent users as a histogram (#30006)
Usage Stats: Calculate concurrent users as a histogram

Metric will help to understand if users are sharing their credentials or using one account for concurrent sessions. This will help to make more informed decisions when enforcing any license limitations on credentials usage.
2021-01-06 16:57:31 +01:00
Giordano Ricci
c77fb9fa13
Elasticsearch: Fix broken alerting when using pipeline aggregations (#29903)
* Elasticsearch: Fix broken alerting when using pipeline aggregations

* call onRunQuery after every query change
2021-01-06 15:51:21 +00:00
Arve Knudsen
52f79c3625
Drone: Fix race conditions between Enterprise and Enterprise2 (#30076)
* Drone: Fix race conditions between Enterprise and Enterprise2

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-01-06 13:22:20 +01:00
Emil Hessman
2d803ee57e
Chore: Rewrite models datasource cache test to standard library (#30040) 2021-01-06 09:21:42 +01:00
Domas
d5a31fa52e
Plugins: prevent app plugin from rendering with wrong location (#30017) 2021-01-06 09:31:20 +02:00
Torkel Ödegaard
437cb12134
Update NOTICE.md 2021-01-06 08:16:50 +01:00
Franck Verrot
8485283077
Chore: Tiny typo fix rage -> range (#30067) 2021-01-05 17:21:23 -08:00
Tony Choe
da5a173c3e
Docs: loki.md: Add example of Loki data source config (#29976)
* loki.md: Add example of Loki data source config

It was little difficult to search an example of setting datasourceUid for Jaeger data source. 

I found the answer from https://github.com/grafana/grafana/issues/26087 and thought it would be good to document it.

* Update docs/sources/datasources/loki.md

Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>

* Update docs/sources/datasources/loki.md

Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>

Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-01-05 12:41:08 -08:00
Grot (@grafanabot)
ff6272bb7a
ReleaseNotes: Updated changelog and release notes for 7.3.6 (#30066)
* ReleaseNotes: Updated changelog and release notes for 7.3.6

* Update CHANGELOG.md

* Update release-notes-7-3-6.md

* Update _index.md

Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
2021-01-05 20:51:56 +01:00
Diana Payton
7a879b51ea
Docs: Update usage-insights.md (#30065)
* Update usage-insights.md

* Update usage-insights.md
2021-01-05 10:30:47 -08:00
Diana Payton
6f63b9d0a2
Docs: Update white-labeling.md (#30064) 2021-01-05 09:22:01 -08:00
dependabot[bot]
4dc44f2965
Chore(deps): Bump axios from 0.19.2 to 0.21.1 (#30059)
Bumps [axios](https://github.com/axios/axios) from 0.19.2 to 0.21.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v0.21.1/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.19.2...v0.21.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-05 17:33:52 +01:00
Emil Hessman
d2b3bcf32f
Chore: Rewrite models tags test to standard library (#30041) 2021-01-05 17:20:41 +01:00
dependabot[bot]
a99edd2f34
Bump actions/setup-node from v1 to v2.1.4 (#29891)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v1 to v2.1.4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v1...c46424eee26de4078d34105d3de3cc4992202b1e)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-05 16:54:09 +01:00
dependabot[bot]
b2ce2e729a
Build(deps): Bump ini from 1.3.5 to 1.3.7 (#29787)
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-05 16:53:26 +01:00
ying-jeanne
2a734c2040
fall back to any architecture when getting plugin's checksum #30034 (#30035)
* fall back to any architecture when getting plugin's checksum

* Update pkg/cmd/grafana-cli/commands/install_command.go

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* remove typo

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-01-05 14:26:48 +01:00
Torkel Ödegaard
682d833eda
Lerna: Update to 3.22.1 (#30057) 2021-01-05 13:38:32 +01:00
Torkel Ödegaard
c4d91e2596
SeriesToRows: Fixes issue in transform so that value field is always named Value (#30054) 2021-01-05 10:23:53 +01:00
ying-jeanne
388d00873f
[dashboard api] manage error when data in dashboard table is not valid json (#29999)
* retrieve dashboard api

* Apply suggestions from code review

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* Update pkg/api/dashboard.go

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-01-04 14:41:17 +01:00
ying-jeanne
db67e70ba4
use sha256 checksum instead of md5 (#30018)
* use sha256 checksum instead of md5

* Chore: Rewrite ldap login test to standard library (#29998)

* Chore: Rewrite ldap login test to standard library

* Preserve original ldap enabled setting after test

* Chore: Rewrite models alert test to standard library (#30021)

* Chore: Rewrite models dashboard acl test to standard library (#30022)

* Chore: Rewrite models dashboards test to standard library (#30023)

* Chore: Rewrite login auth test to standard library (#29985)

* Chore: Rewrite login auth test to standard library

* Use assert.Empty when empty string expected

* Chore: Rewrite brute force login protection test to standard library (#29986)

* Update pkg/cmd/grafana-cli/services/api_client.go

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* Update pkg/cmd/grafana-cli/services/api_client.go

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* use sha256 checksum instead of md5

* Update pkg/cmd/grafana-cli/services/api_client.go

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* Update pkg/cmd/grafana-cli/services/api_client.go

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* grafana-cli: Remove MD5

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

Co-authored-by: Emil Hessman <emil@hessman.se>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-01-04 13:27:47 +01:00
Emil Hessman
1b53558173
Chore: Rewrite brute force login protection test to standard library (#29986) 2021-01-02 13:39:25 +01:00
Emil Hessman
d236eabe8c
Chore: Rewrite login auth test to standard library (#29985)
* Chore: Rewrite login auth test to standard library

* Use assert.Empty when empty string expected
2021-01-01 14:10:12 +01:00
Emil Hessman
71899a0ed7
Chore: Rewrite models dashboards test to standard library (#30023) 2021-01-01 13:29:40 +01:00
Emil Hessman
4f3a7bb0fa
Chore: Rewrite models dashboard acl test to standard library (#30022) 2021-01-01 13:22:48 +01:00
Emil Hessman
8e1196e3ed
Chore: Rewrite models alert test to standard library (#30021) 2021-01-01 13:18:47 +01:00
Emil Hessman
18bc6810f9
Chore: Rewrite ldap login test to standard library (#29998)
* Chore: Rewrite ldap login test to standard library

* Preserve original ldap enabled setting after test
2021-01-01 13:11:04 +01:00
Emil Hessman
504e4f23f2
Chore: Rewrite grafana login test to standard library (#29997) 2020-12-31 11:21:14 +01:00
Peter Toft
de563bfaa4
Fix two ini-file typos regarding LDAP (#29843) 2020-12-30 11:09:17 +01:00
Hugo Häggmark
602d8f601c
Chore: Changes source map devtool to inline-source-map (#30004) 2020-12-30 06:03:53 +01:00
Joan López de la Franca Beltran
cbd9654cb1
Chore: Sync Enterprise go.sum (#30005) 2020-12-29 18:45:41 +01:00
Joan López de la Franca Beltran
67ea8758a0
Chore: Add Enterprise dependencies (#29994)
* Docs: update auditing docs

* Chore: Add Enterprise dependencies

* Apply suggestions from code review

Co-authored-by: Agnès Toulet <agnes.toulet@gmail.com>
Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
2020-12-29 16:37:20 +01:00
ying-jeanne
375e8e4fd0
SQLStore: customise the limit of retrieved datasources per organisation (#29358)
* SQLStore: customise the limit of retrieved datasources per organisation

* update all suggestions regarding nil or 0 as default

* Apply suggestions from code review

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>

* correct default.ini description + adding unittest

* Apply suggestions from code review

Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>

* modify unittest name

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
2020-12-28 12:24:42 +01:00
Alexander Zobnin
ac922f4e1d
Chore: update crewjam/saml library to the latest master (#29991)
this fixes bug in processing SAML response with empty Issuer element
2020-12-28 12:15:12 +03:00
Hugo Häggmark
885274bd62
Graph: Fixes so users can not add annotations in readonly dash (#29990) 2020-12-28 08:55:14 +01:00
Khanh Ngo
7c3f6937bd
Currency: add Vietnamese dong (VND) (#29983)
See http://www.xe.com/symbols.php for currency symbols reference
2020-12-28 08:50:59 +01:00
Agnès Toulet
4de784065d
Drone: Update pipelines for Enterprise (#29939)
* update E2E tests

* fix e2e tests for new pipelines

* Add enterprise2 test, build, package and upload steps

* fix missing linting step

* Upgrade build pipeline tool

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Use grabpl lint-backend

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Refactor publishing

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Refactor package publishing

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Drone: Supply --simulate-release flag to publish-packages for simulating a release

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Drone: Run e2e tests with specific ports

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* e2e/start-server: Make more robust

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-12-23 15:42:20 +01:00
Tania B
551f96089b
Remove the bus from teamgroupsync (#29810)
* Add fake TeamSyncService

* Change SyncTeams dispatch to direct method call

* Remove SyncTeamsCommand struct

* Move TeamSyncService to a separate package

* Remove context from SyncTeams args

* Add comments to teamsyncgroup package

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>

* Replace TeamSyncService with TeamSyncFunc

* Remove unnecessary error check

* Add a test

* Fix test input

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
2020-12-23 14:42:20 +02:00
Dominik Prokop
12211e4a8e
Influx: Make variable query editor input uncontrolled (#29968) 2020-12-23 13:39:30 +01:00
Hugo Häggmark
40d17af2e3
PanelLibrary: Add PATCH to the API (#29956)
* PanelLibrary: Adds uid and renames title to name

* Chore: removing lines

* PanelLibrary: Adds update to api

* Update pkg/services/librarypanels/librarypanels_test.go

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* Update pkg/services/librarypanels/database.go

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* Update pkg/services/librarypanels/librarypanels_test.go

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* Update pkg/services/librarypanels/librarypanels_test.go

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* Update pkg/services/librarypanels/librarypanels_test.go

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* Chore: changes after PR comments

* Replace references to put with patch

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-12-23 12:42:52 +01:00
Torkel Ödegaard
e375fb0f2b
PanelEvents: Isolating angular panel events into it's own event bus + more event refactoring (#29904)
* PanelEvents: Isolate angular events from panel model events, use new Event patterns

* Removing some events that are not longer needed

* Updated DashboardModel

* Update

* Review fixes
2020-12-23 10:45:31 +01:00
dependabot[bot]
334dfa7e3f
Bump node-notifier from 8.0.0 to 8.0.1 (#29952)
Bumps [node-notifier](https://github.com/mikaelbr/node-notifier) from 8.0.0 to 8.0.1.
- [Release notes](https://github.com/mikaelbr/node-notifier/releases)
- [Changelog](https://github.com/mikaelbr/node-notifier/blob/v8.0.1/CHANGELOG.md)
- [Commits](https://github.com/mikaelbr/node-notifier/compare/v8.0.0...v8.0.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-23 10:44:54 +01:00
Emil Tullstedt
3ea1fd035f
LDAP: Update use_ssl documentation (#29964) 2020-12-23 09:14:02 +01:00
J. Casalino
fdda40672e
Docs: Missing 's' on 'logs' (#29966)
Command line argument should be _logs_ based on the other examples shown
2020-12-22 13:52:09 -08:00
Diana Payton
0c3911cce5
Docs: Update opentsdb.md (#29963)
* Update opentsdb.md

* Update docs/sources/datasources/opentsdb.md

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* Update docs/sources/datasources/opentsdb.md

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

Co-authored by: Arve Knudsen <arve.knudsen@gmail.com>
2020-12-22 09:45:47 -08:00
Amal
6dbd4c9fe8
Docs: Minor typo correction (#29962) 2020-12-22 09:24:04 -08:00
Arve Knudsen
be62dc4d2f
librarypanels: Fix JSON field casing in tests (#29954)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-12-22 14:52:43 +01:00
Dominik Prokop
24bc2b1cf4
TemplateSrv: Do not throw error for an unknown format but use glob as fallback and warn in the console (#29955) 2020-12-22 13:26:58 +01:00
Hugo Häggmark
35a755fe50
PanelLibrary: Adds uid and renames title to name (#29944)
* PanelLibrary: Adds uid and renames title to name

* Chore: removing lines

* Chore: updates comments

* Chore: changes after PR comments
2020-12-22 12:00:41 +01:00
Dominik Prokop
3f65c79998
Docs: Fix raw format variable docs (#29945) 2020-12-21 07:54:01 -08:00