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

style: refactor static labels feat to be more compact #340

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DanArmor
Copy link
Contributor

Feature that was introduced in #339 polutated a lot of code with **self.static_label in exporter.py

Separated static labels logic into child classes of prometheus metrics Gauge, Counter and Histogram and removed hardcoded **self.static_label from other parts of code to reduce chance of mistakes due to necessity to keep in mind this snippet when working with labels.

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.

1 participant