application-study-tool icon indicating copy to clipboard operation
application-study-tool copied to clipboard

Otel collector Error scraping metrics {"error": "endpoint /mgmt/shared/authn/login returned code 401"}

Open Hopbyhop opened this issue 1 year ago • 3 comments

Hi there, I've encountered an issue with Otel Collector after running the command "docker compose up". As a result, the dashboard has no data. The error message is "Error scraping metrics {"error": "endpoint /mgmt/shared/authn/login returned code 401"}" I have researched this issue and know that it comes from the account not being authorized, however, I am using an admin account. Does anyone have the same issue? Please help me!

Hopbyhop avatar Jun 05 '25 09:06 Hopbyhop

Which dashboard is empty? I assume all of them, but did you follow the configuration outlined? I mean changing your .env file and your defaults or receivers file?

mikempw avatar Jun 06 '25 00:06 mikempw

The entire dashboard is empty when I use the administrator local account. When I switch to the other account (Remote account), it works and shows a lot of dashboards, except for ASM. The ASM's dashboard is "No data", maybe this account doesn't have the right to get the information.

Hopbyhop avatar Jun 06 '25 06:06 Hopbyhop

I'd check to ensure you have "bash command level access" as many of the metrics are gathered not available through SNMP or API directly.

mikempw avatar Jun 25 '25 21:06 mikempw