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

fix(prometheus): prometheus cannot connect to sig's metrics #531

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

dnut
Copy link
Contributor

@dnut dnut commented Feb 3, 2025

Currently, our prometheus server does not work. It has some issue with the way it responds to http requests. curl is able to get data from it, but prometheus itself is unable to connect to the server. I've tested this on my macbook and three linux boxes. Prometheus always has an error connecting to sig, likewise grafana doesn't get any data.

This is a big problem because it makes us blind to sig's internals while it's running. Manual end-to-end tests of things like gossip and the shred network are not practical until this is fixed, which means other tasks are being blocked by this bug.

This problem was introduced in #520 (remove httpz), so I've reverted the portion of that change which is relevant to prometheus. I haven't made any tweaks to the code, it's just a simple git revert.

After reverting this change, prometheus connects as expected, and I can observe the data in grafana.

I'm in favor of minimizing dependencies, but we just need a working prometheus server ASAP. I'd be happy to see another PR come in after this one to remove httpz again, replacing it with an http server that is compatible with prometheus.

A previous commit broke our prometheus server. This reverts the portion of that commit which affects prometheus.

8345545

"refactor(echo,prometheus,build): Remove our dependency on the httpz library (#520)"
@dnut dnut requested review from Sobeston and InKryption February 3, 2025 17:50
@dnut dnut marked this pull request as ready for review February 3, 2025 17:51
Copy link
Contributor

@Sobeston Sobeston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing that this fixed it. Going to leave approval to Ink as it's his code, he probably understands it more

@dnut dnut added this pull request to the merge queue Feb 3, 2025
Merged via the queue into main with commit 3e0043e Feb 3, 2025
12 of 13 checks passed
@dnut dnut deleted the fix/prometheus/broken-server branch February 3, 2025 19:19
Rexicon226 added a commit that referenced this pull request Feb 8, 2025
github-merge-queue bot pushed a commit that referenced this pull request Feb 11, 2025
* Revert "fix(prometheus): prometheus cannot connect to sig's metrics (#531)"

This reverts commit 3e0043e.

* prometheus: use HTTP 1.1 instead of 1.0
dadepo pushed a commit that referenced this pull request Feb 13, 2025
* Revert "fix(prometheus): prometheus cannot connect to sig's metrics (#531)"

This reverts commit 3e0043e.

* prometheus: use HTTP 1.1 instead of 1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants