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
Arve Knudsen
3d3a7cbba8
Chore: Fix staticcheck issues ( #28860 )
...
* Chore: Fix issues reported by staticcheck
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Undo changes
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Chore: Fix issues reported by staticcheck
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix test
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix test
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-11-05 13:07:06 +01:00
Arve Knudsen
ec40e49dcb
Chore: Rewrite some tests to use testify ( #28420 )
...
* Chore: Improve tests to use testify
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-10-21 10:09:42 +02:00
Carl Bergquist
89ebb97fca
Instrumentation: Adds environment_info metric ( #28355 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-10-19 16:58:16 +02:00
Marcus Efraimsson
747513d444
Plugins: Fix loading of backend plugins ( #27951 )
...
Ref #27921
2020-10-01 10:39:42 +02:00
Carl Bergquist
7b891d10ee
Instrumentation: Removes invalid chars from label names ( #27921 )
2020-09-30 20:12:57 +02:00
Arve Knudsen
a5d9196a53
Chore/fix lint issues ( #27704 )
...
* Chore: Fix linting issues
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-09-22 16:22:19 +02:00
Arve Knudsen
415638cdda
Chore: Use interfaces where possible ( #26392 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-07-23 08:17:20 +02: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
Carl Bergquist
26852ca788
Instrument dashboard versions and annotation count ( #26044 )
2020-07-03 15:47:46 +02:00
Arve Knudsen
07582a8e85
Chore: Fix various spelling errors in back-end code ( #25241 )
...
* Chore: Fix various spelling errors in back-end code
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com >
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com >>
2020-06-01 17:11:25 +02:00
Dan Cech
66b7398fb6
expose metrics for the number of configured datasources ( #24267 )
2020-05-06 11:36:18 -04:00
Alexander Zobnin
fa710a3172
Rendering: Add metrics ( #23827 )
...
* Rendering: base metrics
* Rendering: rendering_queue_size metric
* Chore: fix linter error
* Rendering metrics: refactoring
* Apply suggestions from code review
Co-Authored-By: Marcus Efraimsson <marcus.efraimsson@gmail.com >
* Rendering metrics: handle DeadlineExceeded errors
* Rendering metrics: don't measure canceled request time
* Rendering metrics: revert deleting summary for canceled requests
* Update pkg/services/rendering/rendering.go
Co-Authored-By: Marcus Efraimsson <marcus.efraimsson@gmail.com >
* Rendering: return ErrTimeout if context deadline exceeded
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
2020-04-27 15:29:46 +03:00
Carl Bergquist
a08cbbcc81
Instrument backend plugin requests ( #23346 )
2020-04-09 14:47:46 +02:00
Mark Carey
28230bbf52
Metrics: Adds back missing summary quantiles ( #21858 )
...
Adds back missing summary quantiles which was mistakenly
removed in v6.6.0.
Fixes #21857
2020-02-05 11:11:14 +01:00
Marcus Efraimsson
5c711bfb79
Backend Plugins: Collect and expose metrics and plugin process health check ( #21481 )
...
Adds support for collecting metrics from backend plugins and
exposing them thru Grafana's Prometheus metrics endpoint.
Enables to check health of backend plugin by using the route
`/api/plugins/<plugin id>/health`.
Uses sdk v0.6.0.
Closes #20984
2020-01-15 13:10:48 +01:00
Arve Knudsen
7349a6b96c
pkg/infra: Check errors ( #19705 )
...
* pkg/infra: Check errors
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* pkg/infra: Handle errors
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Update pkg/infra/usagestats/usage_stats.go
Co-Authored-By: Marcus Efraimsson <marcus.efraimsson@gmail.com >
2019-10-10 16:42:11 +02:00
Dima Kurguzov
a4b0ccc138
Instrumentation: Add failed notifications metric ( #18089 )
2019-07-24 11:43:24 +02:00
Alexander Zobnin
214195441f
SAML: add metrics ( #18194 )
2019-07-19 15:30:31 +03:00
Oleg Gaidarenko
75fa1f0207
Metrics: use consistent naming for exported variables ( #18134 )
...
* Metrics: remove unused metrics
Metric `M_Grafana_Version` is not used anywhere, nor the mentioned
`M_Grafana_Build_Version`. Seems to be an artefact?
* Metrics: make the naming consistent
* Metrics: add comments to exported vars
* Metrics: use proper naming
Fixes #18110
2019-07-16 16:58:46 +02:00
Oleg Gaidarenko
09eb9a45ce
Metrics: add LDAP active sync summary metric ( #18079 )
2019-07-15 08:33:48 +03:00
Carl Bergquist
1aadb4426a
metrics: expose stats about roles as metrics ( #17469 )
2019-06-06 16:39:35 +02:00