Carl Bergquist
672b1711b0
Instrumentation: measure time until plugin request ( #61279 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2023-01-11 13:19:06 +00:00
Carl Bergquist and Marcus Efraimsson
a5ace56be8
Plugins: Add username to datasource plugin logging ( #59893 )
...
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2022-12-07 13:15:42 +01:00
Carl Bergquist
1b676d0d49
Contexthandler: Add uname as response header ( #59930 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2022-12-07 13:14:53 +01:00
Carl Bergquist
06705a49e2
Instrumentation: Log plugin and datasource info for each plugin request. ( #54769 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2022-11-02 14:51:51 +01:00
Carl Bergquist
3188af9be3
metrics: expose when the binary was built as an gauge ( #57951 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2022-11-01 13:00:47 +01:00
Carl Bergquist
72ae4a5aa3
toggles: add feature toggle to increase in mem caching ( #55014 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2022-09-12 03:50:54 -04:00
Carl Bergquist
b4e3c89f60
instrumentation: dont instrument ErrSkip at all ( #54880 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2022-09-08 11:14:55 +02:00
78978048c3
Instrumentation: log the total number of db queries per request ( #54647 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com >
Co-authored-by: Dave Henderson <dave.henderson@grafana.com >
2022-09-05 07:39:22 +02:00
Carl Bergquist
ab59f3cb1a
metrics: add operation name used in metrics/tracing for middlewares ( #53949 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2022-08-25 10:11:27 +02:00
Carl Bergquist
a74681036e
prometheus: upgrades http client to 1.30 ( #53901 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2022-08-18 18:44:31 +01:00
Carl Bergquist
7825ad6aa3
Instrumentation: Collect database connection stats ( #52797 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2022-07-27 13:42:28 +02:00
Carl Bergquist
732cc99480
instrumentation: add buckets to catch very slow requests ( #51492 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2022-07-26 12:38:59 +03:00
Carl Bergquist
ce04a01ae9
devenv: removes old ab script ( #52657 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2022-07-22 17:39:23 -07:00
b8b6d0e1a1
Instrumentation: Define handlers for requests that are not handled with named handlers ( #50613 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com >
2022-06-14 07:58:20 +02:00
Carl Bergquist
2d6e69226b
Instrumentation: Add feature toggle for logging requests instrumented as unknown ( #50566 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2022-06-10 10:56:55 +02:00
Carl Bergquist
9562fb389f
Metrics: Remove support for using summaries instead of histogram for HTTP instrumentation ( #49985 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2022-06-01 14:33:59 +02:00
Carl Bergquist
f373588810
setting: configure toggles as true/false instead of array ( #43326 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-12-20 15:33:11 +01:00
Carl Bergquist and Todd Treece
f9481527de
Macaron: Prevent WriteHeader invalid HTTP status code panic ( #42973 )
...
(cherry picked from commit 92005159c89f848ab8b8435e0c8751599e2e8aff)
Co-authored-by: Todd Treece <todd.treece@grafana.com >
2021-12-10 13:54:12 +01:00
Carl Bergquist
3285742196
grafana-mixin: change owner to the hosted-grafana team ( #42418 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-11-29 11:28:42 +01:00
Carl Bergquist
621bd477d0
Context: Add context to hasEditPermission call bus call ( #40107 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-10-11 14:36:57 +02:00
Carl Bergquist
f20de5588b
add context to api crud calls ( #40047 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-10-11 14:35:31 +02:00
Carl Bergquist
c9f25cf0a5
Context: Add context to /api/health calls ( #40031 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-10-11 14:35:03 +02:00
Carl Bergquist
075256923b
Update the grafana-mixin to use HTTP histograms ( #39155 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-10-06 14:15:12 +02:00
Carl Bergquist
cbf16bebc6
CDN: always look for files in the root folder ( #39092 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-09-10 16:48:13 +02:00
Carl Bergquist
c979b5d868
Upgrade the build pipeline to 2.4.5 ( #39080 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-09-10 13:21:44 +02:00
Carl Bergquist
d19f33b52f
Annotations: don't log context.Cancelled as an error when cleaning up ( #39024 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-09-09 18:13:14 +02:00
Carl Bergquist
9ef4c21033
add context to getsignedinUser calls ( #35963 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-06-21 07:51:33 +02:00
Carl Bergquist
b40e78a943
Instrumentation: add context.Context to the dashboard get flow. ( #34955 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-06-15 16:08:27 +02:00
Carl Bergquist
ba7aca69f6
plugin: add signature status plugin build info ( #35128 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-06-02 20:53:56 +02:00
Carl Bergquist
f432fbd793
Instrumentation: add more tracing in the auth context handler. ( #34939 )
...
ref https://github.com/grafana/grafana/issues/29489
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-05-31 21:39:28 +02:00
Carl Bergquist
a10fa5cad3
Instrumentation: Start tracing database requests ( #34572 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-05-27 13:55:33 +02:00
Carl Bergquist
4710566514
bus: add ctx for all signed in user queries ( #33970 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-05-18 18:24:42 +02:00
Carl Bergquist
8254efc027
metrics: instrument request with histograms by default ( #33921 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-05-14 12:53:50 +02:00
Carl Bergquist
b6e6fa53fc
instrumentation: prefix metrics with grafana ( #33925 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-05-11 14:37:03 +02:00
Carl Bergquist
06dc2b24bf
dont consider invalid email address a failed email ( #33671 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-05-04 12:07:50 +02:00
Carl Bergquist
58a325a4e4
Instrumentation: Add success rate metrics for email notifications ( #33359 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-04-27 11:15:07 +02:00
Carl Bergquist and Will Browne
5ec530f3fc
API: Return 409 on datasource version conflict ( #32425 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com >
2021-03-29 16:03:15 +02:00
Carl Bergquist
e1458391bb
API: Return 400 on invalid Annotation requests ( #32429 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-03-29 15:47:16 +02:00
Carl Bergquist and Arve Knudsen
eb241b960f
API: Datasource endpoint should return 400 bad request if id and orgId is invalid ( #32392 )
...
* return 400 bad request if id and orgId is invalid
Signed-off-by: bergquist <carl.bergquist@gmail.com >
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
2021-03-29 08:56:58 +02:00
Carl Bergquist and achatterjee-grafana
862cd473eb
HttpServer: Make read timeout configurable but disabled by default ( #31575 )
...
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
2021-03-19 11:21:52 +01:00
Carl Bergquist and Diana Payton
3b36636318
Annotations: Make the annotation clean up batch size configurable ( #31487 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
2021-03-08 14:16:07 +01:00
Carl Bergquist
c899bf3592
log skipped, performed and duration for migrations ( #31722 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-03-07 21:26:29 +01:00
Carl Bergquist
5114fa39ce
we should never log unhashed tokens ( #31432 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-02-24 10:04:25 +01:00
Carl Bergquist
ba6f30da9c
add hg team as migrations code owners ( #31420 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-02-23 16:58:33 +01:00
Carl Bergquist
95c8766f86
Usagestats: Exclude folders from total dashboard count ( #31320 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-02-18 15:32:47 +01:00
Carl Bergquist
b5cbbc3db1
only update usagestats every 30min ( #31131 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-02-17 09:10:36 +01:00
Carl Bergquist
d1b9fddb4f
Usage stats: Adds source/distributor setting ( #31039 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-02-10 10:07:32 +01:00
Carl Bergquist
49e394e167
instrumentation: make the first database histogram bucket smaller ( #30995 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2021-02-08 19:51:48 +01:00
Carl Bergquist
7d5c07549a
Add changelog items for 7.3.6, 7.2.3 and 6.7.5 ( #29901 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2020-12-17 14:34:05 +01:00
Carl Bergquist
947b77999a
bump stable to 7.3.6 ( #29899 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2020-12-17 14:21:15 +01:00
Carl Bergquist
c7baca614b
Upgrade go deps. ( #29900 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2020-12-17 14:16:34 +01:00
Carl Bergquist
609d61dece
Adds go dep used by an Enterprise feature. ( #29645 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2020-12-08 16:22:24 +01:00
Carl Bergquist
e1d5fc8627
instrumentation: align label name with our other projects ( #29514 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2020-12-08 14:26:07 +01:00
Carl Bergquist
4edb1364e9
fixes bug with invalid handler name for metrics ( #29529 )
...
closes https://github.com/grafana/grafana/issues/29487
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2020-12-02 13:42:17 +01:00
Carl Bergquist
b7aa6fed1d
Instrumentation: Add examplars for request histograms ( #29357 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2020-12-01 15:04:59 +01:00
Carl Bergquist
15bff3114f
Usagestats: Add usage stats about what type of datasource is used in alerting. ( #23125 )
2020-04-02 08:45:04 +02:00
Carl Bergquist
540d1d9b4e
Support using multiple datasources for testing bulk alerting. ( #23258 )
2020-04-01 20:55:37 +02:00
Carl Bergquist
0f0481efaa
removes squadcast from docs ( #23213 )
...
removes squadcast since its not a core alert notifier. Mentioning all
services that support the Grafana webhook is not feasible for our docs
2020-03-31 09:07:07 +02:00
Carl Bergquist
3798ac903d
Upgrade golangci-lint and fixes some linting errors. ( #22909 )
...
Example: https://play.golang.org/p/cfPIPG3BwjJ
2020-03-23 13:37:53 +01:00
Carl Bergquist
579abad9cc
Plugins: Return jsondetails as an json object instead of raw json on datasource healthchecks. ( #22859 )
2020-03-18 12:08:52 +01:00
Carl Bergquist
0a094a7319
Datasource config was not mapped for datasource healthcheck ( #22848 )
...
closes #22825
2020-03-17 16:59:47 +01:00
Carl Bergquist
b0407b3578
upgrades plugin sdk to 0.30.0 ( #22846 )
...
ref grafana/grafana-plugin-sdk-go#94
ref grafana/grafana-plugin-sdk-go#70
2020-03-17 16:58:52 +01:00
Carl Bergquist
b1e112923b
aligns the severity dropdown with other fields ( #22779 )
2020-03-13 14:19:35 +01:00
Carl Bergquist
ebc9549cbc
Add support for sending health check to datasource plugins. ( #22771 )
...
closes #21519
ref grafana/grafana-plugin-sdk-go#93
2020-03-13 12:31:44 +01:00
Carl Bergquist
5f94d31da9
Send jsondata for Datasources on DatasourceConfig for backend plugins ( #22681 )
...
ref https://github.com/grafana/grafana-plugin-sdk-go/pull/84
2020-03-10 15:18:27 +01:00
Carl Bergquist
1dcfaf25fc
Adds signed in user to backend v2 plugins requests ( #22584 )
...
closes #12043
2020-03-06 14:37:36 +01:00
Carl Bergquist
0b86a371bb
remove section about alias imports ( #22585 )
...
this is not relevant anymore since we removed
all aliased imports.
2020-03-05 19:51:14 +01:00
Carl Bergquist
766d8a5888
avoid aliased import in cli ( #22566 )
2020-03-04 13:18:13 +01:00
Carl Bergquist
3fdd2648b1
Chore: Avoid aliasing importing models in api package ( #22492 )
2020-03-04 12:57:20 +01:00
Carl Bergquist
f9962eabff
chore: avoid aliasing imports in services ( #22499 )
2020-02-29 13:35:15 +01:00
Carl Bergquist
63fe7fd8c7
changelog: adds note about breaking change ( #22480 )
2020-02-28 12:51:53 +01:00
Carl Bergquist
67ec9edcc8
chore: avoid alias for models in plugins ( #22483 )
2020-02-28 12:51:21 +01:00
Carl Bergquist
f2f2722bb1
chore: avoid aliasing models in middleware ( #22484 )
2020-02-28 12:50:58 +01:00
Carl Bergquist and Marcus Efraimsson
b0b46991ec
Metrics: Add gauge for requests currently in flight ( #22168 )
...
Add gauge for requests currently in flight.
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
2020-02-19 18:29:47 +01:00
Carl Bergquist and Marcus Efraimsson
ff9556229a
Data proxy: Log proxy errors using Grafana logger ( #22174 )
...
Now any errors logged by http.ReverseProxy are forwarded to
Grafana's logger and includes more contextual information like
level (error), user id, org id, username, proxy path, referer and
IP address.
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
2020-02-18 13:26:01 +01:00
Carl Bergquist and Arve Knudsen
fe16028e02
Auth: Don't rotate auth token when requests are cancelled by client ( #22106 )
...
if the client closes the connection we should not
rotate token since the client will never receive the
new token.
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-02-17 17:31:44 +01:00
Carl Bergquist
5dbd7c9e58
Add link guide for installing new renderer ( #21702 )
2020-01-28 10:57:55 +01:00
Carl Bergquist
b98bb48d59
codestyle: styleguide and arch for grafanas backend ( #17545 )
2019-06-18 09:31:51 +02:00
Carl Bergquist
f9b691bd54
Docker: Switch base to ubuntu:latest ( #17066 )
2019-06-14 22:57:55 +02:00
Carl Bergquist
6809d2bb29
codestyle: moves cache to infra ( #17519 )
2019-06-13 10:55:38 +02:00
Carl Bergquist
912df2e284
gtime: some code style refactoring ( #17369 )
2019-06-10 07:38:31 +02:00
Carl Bergquist
1aadb4426a
metrics: expose stats about roles as metrics ( #17469 )
2019-06-06 16:39:35 +02:00
Carl Bergquist
fbf37eb402
docs: configuring custom headers in the dataproxy ( #17367 )
...
closes #17348
2019-06-03 15:22:59 +02:00
Carl Bergquist
d8736a2547
Alerting: golint fixes for alerting ( #17246 )
2019-06-03 10:25:58 +02:00
Carl Bergquist
fd741cbea4
Chore: upgrade webpack analyser ( #17340 )
...
* webpack: upgrade webpack analyser
* yarn.lock update
2019-05-29 10:27:57 +02:00
Carl Bergquist
2dc660d533
docs: remove my email from docs examples ( #17325 )
...
I dont want emails from companies who test
alert notifiers :)
2019-05-28 16:02:14 +02:00
Carl Bergquist
c87b2c9913
docs: fixes typo in provisioning docs ( #17248 )
...
closes #17196
2019-05-23 13:06:34 +02:00
Carl Bergquist
bfa7c3d963
alerting: golint fixes for alert notifiers. ( #17167 )
2019-05-20 15:23:06 +02:00
Carl Bergquist
bd5bcea5d0
alerting: fix a bunch of lint issues. ( #17128 )
2019-05-20 12:13:32 +02:00
Carl Bergquist
2904e2d9fe
Alertmanager: Replace illegal chars with underscore in label names ( #17002 )
...
closes #16624
2019-05-16 11:41:57 +02:00
Carl Bergquist
c55e6016bf
backend: replace /pkg/errors with errutil ( #17065 )
2019-05-15 12:20:17 +02:00
Carl Bergquist
aed3d0d3ad
Remotecache: Avoid race condition in Set causing error on insert. ( #17082 )
...
* remotecache: avoid race condition in set
since set called the database twice without transactions another
operation could insert a value before the first operation completed.
which would raise an error on insert since the data have been inserted
by the other request.
closes #17079
2019-05-15 11:24:04 +02:00
Carl Bergquist
3df94c6f27
serverlock: run tests async should be more linear time wise ( #17059 )
2019-05-14 15:38:18 +02:00
Carl Bergquist
13f137a17d
tech: avoid alias for importing models in alerting ( #17041 )
...
ref #14679
2019-05-14 08:15:05 +02:00
Carl Bergquist
a86b8c8a04
http: remove dualstack since its deprecated ( #16940 )
...
Deprecated: Fast Fallback is enabled by default. To
disable, set FallbackDelay to a negative value.
https://golang.org/src/net/dial.go
2019-05-08 10:37:48 +02:00
Carl Bergquist
b426ff5292
devenv: add slow reverse proxy ( #16943 )
...
this can be useful when testing timeouts etc
in the dataproxy
ref #16923
2019-05-08 10:09:48 +02:00
Carl Bergquist
f001815d9d
alerting: no notification when going from nodata -> pending ( #16905 )
...
ref #16496
2019-05-07 10:34:00 +02:00
Carl Bergquist
b8674f4ec1
rpm: start grafana after mysqld process ( #16917 )
...
closes #16850
2019-05-07 09:47:03 +02:00
Carl Bergquist
ec500ed416
devenv: add alert list panel ( #16896 )
2019-05-06 10:15:14 +02:00
Carl Bergquist
9660356638
Auth: Enable retries and transaction for some db calls for auth tokens ( #16785 )
...
the WithSession wrapper handles retries and connection
management so the caller dont have to worry about it.
2019-04-30 14:42:01 +02:00