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

add prometheus extension #6

Merged
merged 3 commits into from
Nov 10, 2023
Merged

Conversation

costela
Copy link
Member

@costela costela commented Nov 8, 2023

This PR refactors the API to export the necessary parts for a "middleware" inspired extension approach.

It also adds the first such extension to expose prometheus metrics.

⚠️ BREAKING:

  • hoglet.NewCircuit now also returns an error. While not as ergonomic as before, this change is necessary to allow errors to bubble up in some edge cases, like prometheus registering.

The API looks like this 📖 as of the current head in this branch.

Closes #2

@costela costela force-pushed the leo.antunes/add-prometheus-extension branch 2 times, most recently from 8a84b86 to c7f67f4 Compare November 9, 2023 08:51
@costela costela force-pushed the leo.antunes/add-prometheus-extension branch from c7f67f4 to ae3723c Compare November 9, 2023 08:56
@costela costela marked this pull request as ready for review November 9, 2023 08:57
extensions/prometheus/prometheus.go Outdated Show resolved Hide resolved
extensions/prometheus/prometheus.go Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Co-authored-by: Alexander Knipping <[email protected]>
@costela costela force-pushed the leo.antunes/add-prometheus-extension branch from 36110fb to 2f24eed Compare November 9, 2023 13:48
Copy link
Member

@obitech obitech left a comment

Choose a reason for hiding this comment

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

LGTM

@costela costela merged commit a8f9d9e into main Nov 10, 2023
1 check passed
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.

add prometheus collector plugin
3 participants