slanatech/swagger-stats

Issue with Basic Auth when connecting the Endpoint to Grafana cloud

Opened this issue · 2 comments

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 commented

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:*

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