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

Issue with Basic Auth when connecting the Endpoint to Grafana cloud #277

Open
MrMonkey42 opened this issue Nov 11, 2023 · 2 comments
Open
Assignees
Labels

Comments

@MrMonkey42
Copy link

MrMonkey42 commented Nov 11, 2023

I have Auth enabled on my Swagger endpoint and when connecting it to Grafana cloud using below guide, it is failing auth when "Type of Authentication Credentials" set to "Basic".

Guide - https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-prometheus/prometheus-config-examples/slana-tech-swagger-stats/

When calling the endpoint from Insomnia, if request header is set with Authorization Basic, it is passing but when using Auth type as "Basic Auth" by filling USERNAME and PASSWORD, is fails.

@sv2 sv2 self-assigned this Nov 12, 2023
@sv2 sv2 added the question label Nov 12, 2023
@sv2
Copy link
Collaborator

sv2 commented Nov 12, 2023

To confirm, are you using Metrics Endpoint integration or Grafana Agent ?
Could you kindly capture logs from your app when you attempt to connect to Grafana ? Please enable swagger-stat log by setting up env variable DEBUG=sws:*

@MrMonkey42
Copy link
Author

I'm using Metrics Endpoint integration. I'll try to capture the logs and see if I can find any issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants