Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] AccessDenied and missing permission folders:read #231

Open
KoeusIss opened this issue Mar 26, 2024 · 0 comments
Open

[BUG] AccessDenied and missing permission folders:read #231

KoeusIss opened this issue Mar 26, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@KoeusIss
Copy link

Describe the bug
I'm giving PomEx a try and try to link it to Grafana. since we are a multi application company we have different folder for different app. I followed the Installations steps a longside with the dockyard tutorial. but I'm blocked by a permission issue.

{
  "time": "2024-03-26T12:56:21.491Z",
  "severity": "warn",
  "message": "Received a 403 from Grafana because: %Finch.Response{status: 403, body: \"{\\\"accessErrorId\\\":\\\"*************\\\",\\\"message\\\":\\\"You'll need additional permissions to perform this action. Permissions needed: folders:read\\\",\\\"title\\\":\\\"Access denied\\\"}\\n\", headers: [{\"date\", \"Tue, 26 Mar 2024 11:56:21 GMT\"}, {\"content-type\", \"application/json; charset=UTF-8\"}, {\"content-length\", \"162\"}, {\"connection\", \"keep-alive\"}, {\"cache-control\", \"no-store\"}, {\"strict-transport-security\", \"max-age=86400\"}, {\"x-content-type-options\", \"nosniff\"}, {\"x-frame-options\", \"deny\"}, {\"x-xss-protection\", \"1; mode=block\"}], trailers: []}",
  "metadata": {}
}

Configurations:

# config.exs
config :my_app, MyApp.PromEx,
  disabled: false,
  manual_metrics_start_delay: :no_delay,
  drop_metrics_groups: [],
  grafana: [
    host: "https://my_grafana_host.com",
    upload_dashboards_on_start: true,
    auth_token: "grafana_token_for_the_service_account",
    folder_name: "APP Three dashboard",
    annotate_app_lifecycle: true
  ],
  metrics_server: :disabled

The service account in grafana has the permission to edit the APP Three dashboard folder.
Am I missing something here.

Expected behavior
**

Environment

  • Elixir version: elixir 1.15.7-otp-26
  • Erlang/OTP version: erlang 26.1.2
  • Grafana version: 10.4
  • Prometheus version:

Additional context
Add any other context about the problem here.

@KoeusIss KoeusIss added the bug Something isn't working label Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants