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

Plugins timeline should be observable #13

Open
ilya-siluyanov opened this issue Feb 28, 2023 · 0 comments
Open

Plugins timeline should be observable #13

ilya-siluyanov opened this issue Feb 28, 2023 · 0 comments

Comments

@ilya-siluyanov
Copy link

The problem: I see in the output when a plugin runs, but I don't see its runs duration

The solution: Create a log for events.
They can be 'plugin started', 'plugin finished', 'plugin prints a line', etc.
Based on an event type, we can assign handlers for them:

start -> [log_to_output, update_monitoring_state]
log -> [log_to_output]

As the first iteration, I see enough to create an entity which responsibilities are:

  • read a paws config, create a gauge {plugin_name}_state
  • when a metric changes, push current state to a prometheus pushgateway
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

No branches or pull requests

1 participant