3
0
mirror of https://github.com/grafana/grafana.git synced 2025-02-25 18:55:37 -06:00
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
Go to file
Eric Leijonmarck 9d6ab92e39
Service accounts: Remove Add API keys buttons and remove one state of migrating for API keys tab ()
* add: hide apikeys tab on start

* make use of store method

* added hiding of apikeys tab for new org creation

* missing err check

* removed unused files

* implemennted fake to make tests run

* move check for globalHideApikeys from org to admin

* refactor to remove the fake

* removed unused method calls for interface

* Update pkg/services/serviceaccounts/manager/service.go

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>

* Update pkg/services/serviceaccounts/manager/service.go

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>

* remove the checkglobal method

* removed duplicate global set const

* add count of apikeys for performance

* remove apikeys adding in UI

* added back deleted file

* added comment on component

* changed wording and copy for hiding and migrating service accounts

* refactor: remove migrationstatus in front/backend

This removes the migrationstatus state from the UI in favor of only
looking at the number of API keys to determine what to show to the user.
This simplifies the logic and makes less calls to the backend with each
page load. This was called both on the API keys page and the Service
accounts page.

- removes the state of migrationstatus from the UI
- removes the backend call
- removes the backend endpoint for migrationstatus

* Update pkg/services/apikey/apikeyimpl/xorm_store.go

Co-authored-by: Karl Persson <kalle.persson@grafana.com>

* changes the contet to also be primary

* change id of version for footer component

---------

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
Co-authored-by: Karl Persson <kalle.persson@grafana.com>
2023-03-01 15:34:53 +00:00
.bingo Chore: Upgrade golangci-lint to v1.51.2 () 2023-02-23 15:10:03 +01:00
.changelog-archive Changelog: Move to a folder structure for change logs () 2022-06-08 15:59:47 -05:00
.github Update dependency @testing-library/dom to v9 () 2023-03-01 05:38:13 -05:00
.husky Chore: do not run husky hooks on backend-only changes () 2022-04-29 14:01:02 +01:00
.vim Chore: Upgrade yarn and editor sdks () 2021-12-08 14:40:24 +01:00
.vscode Add debug option for Golang tests in vscode () 2023-01-24 14:44:44 +01:00
.yarn Expressions: Add tests for the QueryEditorRows and QueryGroup components () 2023-02-22 17:26:41 +02:00
conf Datasources: Add user_agent header customization for outgoing HTTP requests () 2023-02-28 14:10:05 +01:00
contribute API: Enable serving Swagger UI by default and add docs and guidelines () 2023-03-01 16:36:37 +02:00
cue.mod Introduce "scuemata" system for CUE-based specification of Grafana objects () 2021-04-08 01:11:11 -07:00
devenv Canvas: Update gdev dashboard background image url () 2023-02-27 13:15:55 -08:00
docs NodeGraph: Support icons for nodes () 2023-03-01 16:02:33 +01:00
e2e PublicDashboards: Configuration modal redesign () 2023-02-24 12:36:29 -03:00
emails Chore: Bump grunt to 1.5.3 () 2023-02-10 11:18:20 +01:00
grafana-mixin many-to-one requires explicit grouping () 2023-02-21 11:00:48 +01:00
kinds Schema: fix dashboard revision docs () 2023-02-11 15:25:03 -08:00
packages Navigation: Fix broken layout at 544px () 2023-03-01 15:31:32 +00:00
packaging Chore: Upgrade Go to 1.20.1 and Alpine to 3.17 () 2023-02-27 14:50:32 +01:00
pkg Service accounts: Remove Add API keys buttons and remove one state of migrating for API keys tab () 2023-03-01 15:34:53 +00:00
plugins-bundled Release: Update versions in package to 9.5.0-pre () 2023-02-21 08:38:51 +01:00
public Service accounts: Remove Add API keys buttons and remove one state of migrating for API keys tab () 2023-03-01 15:34:53 +00:00
scripts Chore: Upgrade Go to 1.20.1 and Alpine to 3.17 () 2023-02-27 14:50:32 +01:00
tools Image Rendering: Remove PhantomJS support () 2020-04-15 22:17:41 +02:00
.betterer.results Service accounts: Remove Add API keys buttons and remove one state of migrating for API keys tab () 2023-03-01 15:34:53 +00:00
.betterer.ts Chore: convert last test to RTL and remove Enzyme references () 2023-01-24 09:20:47 +00:00
.bra.toml Chore: Remove redundant codegen step from .bra.tom () 2023-02-02 14:53:54 +01:00
.browserslistrc Babel: Target more modern browsers, updates browserlistrc () 2021-04-01 10:32:00 +02:00
.dockerignore copy .github folder into golang build container since we rely on codeowners () 2023-01-25 10:31:16 -05:00
.drone.star CI: Lint starlark files with buildifier () 2023-01-30 09:27:11 +00:00
.drone.yml Chore: Upgrade Go to 1.20.1 and Alpine to 3.17 () 2023-02-27 14:50:32 +01:00
.editorconfig Chore: Enable PR testing in Drone () 2020-07-10 16:09:21 +02:00
.eslintignore Chore: Align on 'internationalization' for feature name () 2022-07-21 06:31:08 -04:00
.eslintrc Chore: eslint rule for preventing e2e selectors in aria-label () 2023-01-18 15:02:35 +00:00
.gitattributes CRLF () 2020-11-05 17:20:40 +01:00
.gitignore Orgs: Remove auto assign globals () 2023-02-27 10:23:38 +01:00
.golangci.toml Chore: Upgrade golangci-lint to v1.51.2 () 2023-02-23 15:10:03 +01:00
.linguirc I18n: Change locale format to IETF language tag () 2022-07-22 10:50:00 -04:00
.nvmrc Chore: Move to node 18 again () 2023-01-26 10:19:39 +00:00
.pa11yci-pr.conf.js Chore: Update footer changelog link to github () 2022-10-31 07:34:21 -04:00
.pa11yci.conf.js A11y: Add Dashboard Settings to Pa11y CI and Refactor local a11y report () 2022-09-12 15:14:45 +02:00
.prettierignore Swagger: Fix circular reference () 2023-02-02 13:18:04 +02:00
.prettierrc.js Prettier: Add prettier config that imports prettier from toolkit () 2020-04-21 17:23:49 +02:00
.yarnrc.yml Update Yarn to v3.4.1 () 2023-02-07 10:42:28 +00:00
babel.config.json Revert: Babel removal and runtime update () 2023-02-23 09:22:35 -05:00
build.go Chore: move build command to importable package () 2021-09-03 11:24:21 -05:00
CHANGELOG.md Changelog: Updated changelog for 9.2.13 () 2023-02-28 16:28:06 +00:00
CODE_OF_CONDUCT.md Docs: Refactor inconsistent unordered lists () 2020-10-02 11:02:11 -07:00
CONTRIBUTING.md Docs: Clarify contributions for translations () 2022-09-27 10:21:23 -04:00
crowdin.yml I18n: Update crowdin config and codeowners () 2022-10-20 14:59:02 +01:00
Dockerfile Dockerfile: Allow building docker images locally for different editions () 2023-02-28 17:18:00 -03:00
embed.go Kindsys: Unify plugins, pfs with kind framework () 2023-01-20 09:41:35 +00:00
go.mod Chore: Update thema and cuesty v0.1.6 () 2023-03-01 00:23:57 -05:00
go.sum Chore: Update thema and cuesty v0.1.6 () 2023-03-01 00:23:57 -05:00
GOVERNANCE.md Chore: Introducing a Grafana HALL_OF_FAME.md () 2022-05-18 20:13:11 +00:00
HALL_OF_FAME.md Chore: Introducing a Grafana HALL_OF_FAME.md () 2022-05-18 20:13:11 +00:00
ISSUE_TRIAGE.md ISSUE_TRIAGE.md: update () 2023-01-19 18:21:36 +01:00
jest.config.js Chore: Bump d3-color to 3.1.0 () 2023-01-26 13:02:22 +01:00
latest.json Chore: update latest.json to 9.4.1 () 2023-02-28 05:49:35 -05:00
lerna.json Release: Update versions in package to 9.5.0-pre () 2023-02-21 08:38:51 +01:00
LICENSE Re-license Grafana to AGPLv3 () 2021-04-20 19:03:30 +02:00
LICENSING.md Explore: Refactor trace view and move to core () 2023-01-27 14:13:17 +00:00
MAINTAINERS.md Add Docs maintainers () 2022-06-22 13:10:30 -07:00
Makefile Dockerfile: Allow building docker images locally for different editions () 2023-02-28 17:18:00 -03:00
metadata.md Docs: Document plugin authentication in metadata schema () 2021-04-08 18:13:18 +02:00
NOTICE.md Prettier: Fix all markdown files and add markdown files to CI verify step () 2021-09-29 14:34:40 +02:00
package.json Alerting: Adds visual component for feature toggles () 2023-02-24 13:29:30 +01:00
README.md Docs: Update install guides link in README () 2022-11-14 11:42:23 +01:00
ROADMAP.md Prettier: Fix all markdown files and add markdown files to CI verify step () 2021-09-29 14:34:40 +02:00
SECURITY.md Docs: Update RSS feed in security page () 2022-11-22 10:07:59 +01:00
stylelint.config.js Update dependency stylelint to v14.6.0 () 2022-03-23 13:40:54 +00:00
SUPPORT.md Prettier: Fix all markdown files and add markdown files to CI verify step () 2021-09-29 14:34:40 +02:00
tsconfig.json Explore: Refactor trace view and move to core () 2023-01-27 14:13:17 +00:00
UPGRADING_DEPENDENCIES.md Bump publish docs node version () 2022-03-11 21:28:12 +01:00
WORKFLOW.md Prettier: Fix all markdown files and add markdown files to CI verify step () 2021-09-29 14:34:40 +02:00
yarn.lock Revert "Update dependency rollup to v3 ()" () 2023-02-27 07:01:24 -05:00

Grafana

The open-source platform for monitoring and observability

License Drone Go Report Card

Grafana allows you to query, visualize, alert on and understand your metrics no matter where they are stored. Create, explore, and share dashboards with your team and foster a data-driven culture:

  • Visualizations: Fast and flexible client side graphs with a multitude of options. Panel plugins offer many different ways to visualize metrics and logs.
  • Dynamic Dashboards: Create dynamic & reusable dashboards with template variables that appear as dropdowns at the top of the dashboard.
  • Explore Metrics: Explore your data through ad-hoc queries and dynamic drilldown. Split view and compare different time ranges, queries and data sources side by side.
  • Explore Logs: Experience the magic of switching from metrics to logs with preserved label filters. Quickly search through all your logs or streaming them live.
  • Alerting: Visually define alert rules for your most important metrics. Grafana will continuously evaluate and send notifications to systems like Slack, PagerDuty, VictorOps, OpsGenie.
  • Mixed Data Sources: Mix different data sources in the same graph! You can specify a data source on a per-query basis. This works for even custom datasources.

Get started

Unsure if Grafana is for you? Watch Grafana in action on play.grafana.org!

Documentation

The Grafana documentation is available at grafana.com/docs.

Contributing

If you're interested in contributing to the Grafana project:

Get involved

License

Grafana is distributed under AGPL-3.0-only. For Apache-2.0 exceptions, see LICENSING.md.