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

Loki API /config endpoint not exposed by the enterprise-gateway #7520

Open
strudel0209 opened this issue Oct 26, 2022 · 4 comments
Open

Loki API /config endpoint not exposed by the enterprise-gateway #7520

strudel0209 opened this issue Oct 26, 2022 · 4 comments
Labels
area/helm component/loki help wanted We would love help on these issues. Please come help us! low-hanging-fruit Helpful additions of limited scope

Comments

@strudel0209
Copy link

Describe the bug
in the latest Helm chart (3.3.0) / Loki 2.6.1 version , values.yaml does not contain the /config Loki endpoint , hence this is not exposed by the enterprise-gateway . This makes the Grafana Enterprise Logs plugin Cluster Configuration tab to spin endless ( checking the Web Developer Tool / Networking returns 404 error )

To Reproduce

  • port-forward the enterprise-gateway service and do a CURL to /config . 404 Not found is returned

Expected behavior
Return the cluster configuration parameters

Environment:
Helm chart (3.3.0) / Loki 2.6.1 version

Screenshots, Promtail config, or terminal output
image

@basvdl
Copy link

basvdl commented Nov 22, 2022

A work around is to add the /config endpoint using serverSnippet

gateway:
  nginxConfig:
    serverSnippet: |
      location ~ /config {
        proxy_pass       http://enterprise-logs-read.loki-simple-scalable.svc.cluster.local:3100$request_uri;
      }

Note: make sure you fix the url to match you deployment.

@trevorwhitney
Copy link
Collaborator

I think the best solution here is to add that additional ~/config path to the nginx snippet in the default values.yaml. Would one of you mind opening a PR?

@trevorwhitney trevorwhitney added help wanted We would love help on these issues. Please come help us! low-hanging-fruit Helpful additions of limited scope area/helm labels Jan 10, 2023
@Sheikh-Abubaker
Copy link
Contributor

Hi @trevorwhitney,

would it be fine if I open a PR by following the steps you stated above ?

@1tft
Copy link

1tft commented Sep 27, 2023

@Sheikh-Abubaker With latest helm chart I can access Loki config via Grafana. I think issue has been fixed with this https://github.com/grafana/loki/blob/main/production/helm/loki/CHANGELOG.md#5811

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/helm component/loki help wanted We would love help on these issues. Please come help us! low-hanging-fruit Helpful additions of limited scope
Projects
None yet
Development

No branches or pull requests

5 participants