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 loop that never returns on http error #92

Merged

Conversation

jcreixell
Copy link
Contributor

  • While running this exporter in the grafana agent, we have identified a loop that never returns in case of http error. This in turn causes the agent to never release a lock, preventing it from making progress.
  • Note: I have not added additional metrics to report errors as I am trying to keep the scope of this change minimal, but it would be a good idea to add a gauge as stated in the prometheus guidelines.
  • See Github exporter blocks on http error grafana/agent#3144

  - While running this exporter in the grafana agent, we have identified a loop
  that never returns in case of http error. This in turn causes the agent to never
  release a lock, preventing it from making progress.
  - Note: I have not added additional metrics to report errors as I am trying to keep the
  scope of this change minimal, but it would be a good idea to add a gauge as stated in
  the [prometheus guidelines](https://prometheus.io/docs/instrumenting/writing_exporters/#failed-scrapes).
@henrymcconville henrymcconville merged commit d6d3e44 into githubexporter:master Aug 23, 2023
@henrymcconville
Copy link
Collaborator

Thanks for this @jcreixell and sorry for the delay in getting this merged.

This is now available as version 1.0.4 and on Docker Hub at githubexporter/github-exporter.

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

Successfully merging this pull request may close these issues.

2 participants