Todd Treece
796b15d9e0
Metrics: Prevent duplicates in MultiRegistry ( #85880 )
2024-04-10 10:55:24 -04:00
Marcus Efraimsson
6c1de260a2
API Server: Standalone observability ( #84789 )
...
Adds support for logs (specify level), metrics (enable metrics and Prometheus /metrics endpoint
and traces (jaeger or otlp) for standalone API server. This will allow any grafana core service
part of standalone apiserver to use logging, metrics and traces as normal.
2024-03-21 17:06:32 +01:00
Isabella Siu
3b852bb582
CloudWatch: Remove references to pkg/infra/metrics ( #81744 )
...
CloudWatch: remove references to pkg/infra/metrics
2024-02-06 21:21:55 +02:00
Gabriel MABILLE
08f305797f
RBAC: Add metric to count search user permissions cache hits ( #81451 )
2024-01-30 10:37:47 +01:00
idafurjes
fb2b9f33d2
Fix method to service in metric label for FolderID ( #81283 )
2024-01-25 18:26:24 +02:00
idafurjes
0880a239f8
Add leftover metrics for FolderID ( #81246 )
2024-01-25 12:14:18 +01:00
idafurjes
7e5544ab21
Add MFolderIDsServiceCount to count folderIDs in services pkg ( #81237 )
2024-01-25 11:10:35 +01:00
idafurjes
6b4eaa0d18
Add MFolderIDsAPICount metric to count FolderIDs in api package ( #80866 )
...
* Add MFolderIDsAPICount metric to cound FolderIDs in api package
* Change counter to counter vector with method names as string values
2024-01-24 12:39:11 +01:00
Ryan McKinley
2b355ff280
K8s: Remove grafanaAPIServer feature toggle ( #81030 )
2024-01-23 08:27:28 -08:00
Marcus Efraimsson
6768c6c059
Chore: Remove public vars in setting package ( #81018 )
...
Removes the public variable setting.SecretKey plus some other ones.
Introduces some new functions for creating setting.Cfg.
2024-01-23 12:36:22 +01:00
Alexander Zobnin
08082104e1
Access control: Add permissions cache hit/miss metrics ( #80883 )
...
* Access control: Add permissions cache hit/miss metrics
* Add metrics to OSS
* Fix imports
2024-01-19 13:47:58 +01:00
Gabriel MABILLE
e062fa1d7e
RBAC: Change search permissions buckets to cover long searches ( #80624 )
...
* RBAC: Change search permissions histogram start and factor
* Add one bucket and lower start
2024-01-17 09:13:56 +01:00
Gabriel MABILLE
48ff532ca8
RBAC: Add histogram metric on search endpoint ( #80553 )
...
RBAC: Add histogram on search endpoint
2024-01-15 17:56:01 +01:00
Todd Treece
89934b0884
K8s: Merge metric registries ( #79256 )
2023-12-08 10:44:46 -05:00
Todd Treece
2a2a132c61
K8s: Refactor metrics to share k8s registry ( #79106 )
2023-12-06 16:34:23 -05:00
Todd Treece
7e2aad1d01
Revert "K8s: Refactor metrics to share k8s registry ( #77957 )" ( #79079 )
...
This reverts commit 38bc41651a
.
2023-12-05 09:34:07 -05:00
Todd Treece
38bc41651a
K8s: Refactor metrics to share k8s registry ( #77957 )
...
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2023-12-04 10:54:59 -08:00
Alexander Weaver
8a56a94781
Usagestats: Add stat group for alert rule groups ( #78825 )
...
* Add rule group support to usagestats service
* Quote column name
2023-11-29 14:37:36 -06:00
Alexander Weaver
27b7d1de6f
Stats: Fix unregistered unified alerting metric ( #78777 )
...
Fix unregistered metric
2023-11-29 08:28:13 -06:00
Marcus Andersson
017078913a
Plugins: Added plugin preload time measurement to frontendmetrics ( #73916 )
...
Added preload ms to frontend metricts.
2023-09-04 07:09:14 +02:00
Ryan McKinley
025b2f3011
Chore: use any rather than interface{} ( #74066 )
2023-08-30 18:46:47 +03:00
Renato Monteiro
63c26e91ee
Metrics: Update Help to mention active viewers ( #63384 )
2023-06-01 11:56:43 +02:00
Eric Leijonmarck
15c9ced944
Revert "APIkeys: Add metrics for apikey endpoints ( #66732 )" ( #66754 )
...
This reverts commit c505d26430
.
2023-04-18 13:05:52 +01:00
Eric Leijonmarck
c505d26430
APIkeys: Add metrics for apikey endpoints ( #66732 )
...
add metrics for apikey endpoints
2023-04-18 11:12:19 +01:00
Piotr Jamróz
b68be999f7
Correlations: Add usage stats about correlations ( #66021 )
...
* Add usage stats about correlations
* Add stats.correlations.count to collected stats
* Expose grafana_stat_totals_correlations metric
* Organize imports
2023-04-11 08:53:34 +02:00
Joan López de la Franca Beltran
87a0c95164
Rendering: Experimental support to use JWTs as auth method ( #60841 )
...
* Rendering: Add support for auth through JWT
* Goimports
* Apply review suggestions
* Correct feature toggle ref
* Minor changes
2023-04-03 18:53:38 +02:00
Gabriel MABILLE
895d4cc60b
Prometheus Metrics: Add missing stat_total_teams metric ( #65133 )
...
* Prometheus Metrics: Add missing stat_total_teams metric
2023-03-22 09:14:43 +01:00
Serge Zaitsev
2f8ee38c5e
Chore: Let wire inject prometheus.Registerer ( #62195 )
...
let wire inject prometheus.Registerer
2023-02-28 16:12:23 +01:00
Renato Monteiro
563a4bce3b
Metrics: Update comment to mention folders instead of dashboards ( #63312 )
2023-02-14 06:33:37 +01:00
Serge Zaitsev
f531074d89
Chore: Fix goimports grouping in pkg/infra ( #62421 )
...
* fix goimports
* fix goimports order
2023-01-30 08:32:25 +00: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
owensmallwood
664aa795c1
PublicDashboards: Add metric for public dashboard datasource query success ( #55701 )
...
Adds metric for which datasource queries are successful or not with pubdash.
2022-09-27 12:25:56 -06:00
Ezequiel Victorero
e0a58300ac
Public Dashboards: count public dashboards view requests ( #52419 )
2022-07-19 11:50:37 -03:00
Ezequiel Victorero
4c4d6fd425
PublicDashboards: collect stats for public dashboards ( #50553 )
...
* PublicDashboards: collect stats for public dashboards
2022-06-23 12:02:57 -03:00
Joan López de la Franca Beltran
97baa6911d
Metrics: Expose functions to initialize counters at zero ( #50122 )
2022-06-13 17:35:10 +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
Joan López de la Franca Beltran
e43879e55d
Encryption: Add support for multiple data keys per day ( #47765 )
...
* Add database migrations
* Use short uids as data key ids
* Add support for manual data key rotation
* Fix duplicated mutex unlocks
* Fix migration
* Manage current data keys per name
* Adjust key re-encryption and test
* Modify rename column migration for MySQL compatibility
* Refactor secrets manager and data keys cache
* Multiple o11y adjustments
* Fix stats query
* Apply suggestions from code review
Co-authored-by: Tania <yalyna.ts@gmail.com>
* Fix linter
* Docs: Rotate data encryption keys API endpoint
Co-authored-by: Tania <yalyna.ts@gmail.com>
2022-05-23 13:13:55 +02:00
Joan López de la Franca Beltran
9826a694a8
Encryption: Add Prometheus metrics ( #48603 )
2022-05-06 10:21:55 +02:00
Piotr Jamróz
bb24e8d578
Chore: Report frontend metrics for JS/CSS load time ( #42421 )
...
* Report frontend metrics for js/css load time
* Add FCP metric
* Change comment
* Simplify reporting frontend metrics
2021-12-02 09:34:39 +01:00
Arve Knudsen
78596a6756
Migrate to Wire for dependency injection ( #32289 )
...
Fixes #30144
Co-authored-by: dsotirakis <sotirakis.dim@gmail.com>
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
Co-authored-by: Ida Furjesova <ida.furjesova@grafana.com>
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
Co-authored-by: spinillos <selenepinillos@gmail.com>
Co-authored-by: Karl Persson <kalle.persson@grafana.com>
Co-authored-by: Leonard Gram <leo@xlson.com>
2021-08-25 15:11:22 +02:00
Will Browne
2e9ad871b3
remove incorrect use of grafana-cli logger ( #35228 )
2021-06-04 11:06:34 +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
Hugo Häggmark
7204a64717
LibraryElements: Creates usage stats for panels and variables ( #34476 )
...
* LibraryPanels: Adds usage collection
* Refactor: renames Panel and Variable consts
* Chore: initialize stats
* Refactor: moves library element migrations to migration namespace
2021-05-24 06:11:01 +02:00
Kyle Brandt
e291203528
Alerting: a usage stat for ualerting ( #34390 )
...
collects `stats.alert_rules.count` , where alert_rules is the nextgen system
2021-05-19 10:31:25 -04:00
donomii
fc451cf277
Access Control: Add histograms for evaluator and permissions checks ( #34026 )
...
This patch adds metrics to support instrumenting the accesscontrols package.
It also instruments the accesscontrol evaluator and the permissions function.
Co-authored-by: Vardan Torosyan <vardants@gmail.com>
2021-05-17 13:52:16 +02:00
Agnès Toulet
ec71919e7b
Rendering: add CSV support ( #33729 )
...
* Rendering: add CSV rendering support
* Rendering: save csv files into a separate folder
* add missing field
* Renderer: get filename from renderer plugin
* apply PR suggestions
* Rendering: remove old PhantomJS error
* Rendering: separate RenderCSV and Render functions
* fix alerting test
* Rendering: fix handling error in HTTP mode
* apply PR feedback
* Update pkg/services/rendering/http_mode.go
Co-authored-by: Joan López de la Franca Beltran <joanjan14@gmail.com>
* apply PR feedback
* Update rendering metrics with type label
* Rendering: return error if not able to parse header
* Rendering: update grpc generated file
* Rendering: use context.WithTimeout to render CSV too
Co-authored-by: Joan López de la Franca Beltran <joanjan14@gmail.com>
2021-05-12 17:16:57 +02:00
Torkel Ödegaard
d42a5b2561
FrontendMetrics: Adds new backend api that frontend can use to push frontend measurements and counters to prometheus ( #32593 )
...
* FrontendMetrics: Adds new backend api that frontend can use to push frontend measurements and counters to prometheus
* FrontendMetrics: Adds new backend api that frontend can use to push frontend measurements and counters to prometheus
* Fix naming
* change to histogram
* Fixed go lint
2021-04-01 20:04:02 +02: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
Arve Knudsen
c2cad26ca9
Chore: Disable default golangci-lint filter ( #29751 )
...
* Disable default golangci-lint filter
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Chore: Fix linter warnings
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-12-15 09:32:06 +01:00
Arve Knudsen
52c154a221
Backend: Rename variables for style conformance ( #29097 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-17 17:09:14 +01:00