DenBeke / DenBeke/mailbear

Connecting to Grafana: error reading Prometheus

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
82
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Hey DenBeke,
thank you for creating mailbear.

I have a question regarding the Grafana setup. I proxied a domain to port 9090. Now, when I enter the domain/metrics, I get something like this:
![image](https://user-images.githubusercontent.com/54767886/163127241-e8ad8b43-e350-41e7-b074-e8db13748e68.png)

I tried to add this URL as a data source in Grafana.
![Grafana](https://user-images.githubusercontent.com/54767886/163127405-8e9cd3a2-d9ef-4103-9d81-9b73d2a14cac.png)
Grafana returns the error `Error reading Prometheus: client_error: client error: 404`

What am I doing wrong?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by checking the exposed /metrics endpoint and comparing its URL with the Grafana Prometheus data-source configuration. Done means Grafana can read Prometheus successfully instead of returning a 404.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, grafana, prometheus
Domain
backend, observability-sre
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.