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

Added Collector Signal #227

Merged
merged 2 commits into from
Jul 15, 2024
Merged

Added Collector Signal #227

merged 2 commits into from
Jul 15, 2024

Conversation

marvin-steinke
Copy link
Contributor

I think a more generic collector signal fits our usecase better than a Signal only intended for HTTP. This way it can e.g. also be used to poll kubernetes metrics. The CollectorSignal is an ABC that needs to have a collect() function implemented which is run as a daemon thread and updates the internal value to be returned in now(). Using such a collector does not slow down the simulation opposed to running e.g. an HTTP query every time now() is called.

closes #215 :)

Copy link
Contributor

@kilianp14 kilianp14 left a comment

Choose a reason for hiding this comment

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

Love it!

@marvin-steinke marvin-steinke merged commit a45aedc into dos-group:main Jul 15, 2024
2 checks passed
@marvin-steinke marvin-steinke deleted the collector-signal branch July 15, 2024 09:17
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.

HTTP Signal
2 participants