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

explore idea of a prometheus watcher #38

Open
vsoch opened this issue May 8, 2019 · 0 comments
Open

explore idea of a prometheus watcher #38

vsoch opened this issue May 8, 2019 · 0 comments

Comments

@vsoch
Copy link
Owner

vsoch commented May 8, 2019

We are discussing the addition of exporters in #32, but it seems redundant (a watcher is very similar to an exporter) and like it might be adding a lot of bloat to the code base. But instead, couldn't we achieve the same thing by having a pushgateway watcher? For example, to create the watcher, the user might specify another watcher / one or more tasks to push to the gateway:

$ watchme create pusher
$ watchme add-task pusher task-pushgateway --type pushgateway watcher@results-watcher tasks@task-hpc-job --func `push_all_func`

The above would say "use the pushgateway watcher, task function push_all_func to find any result files in watcher "results-watcher" and task "task-hpc-job" and push them to the gateway. The customization of watcher / tasks / data files would allow the user to select what data to push, and in what format.

Then for using, it would be a matter of running the tasks in serial:

$ watchme run task-hpc-job
$ watchme run pusher

Or something along those lines :)

@vsoch vsoch mentioned this issue May 8, 2019
8 tasks
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