Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

Strategy & source metrics #27

Open
dmorn opened this issue Jan 18, 2019 · 2 comments
Open

Strategy & source metrics #27

dmorn opened this issue Jan 18, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@dmorn
Copy link
Member

dmorn commented Jan 18, 2019

A strategy needs metrics to make decisions. At the moment we already instrument the program with the metrics component. Instead of duplicating the source metrics inside the source itself (the aim was to then retrieve the values with the Value(interface{}) interface{} function), provide a way to retrieve and control the lifetime of the source's metrics from the metrics component, which can then be used by the different strategy implementations.

@dmorn dmorn added the enhancement New feature or request label Jan 18, 2019
dmorn added a commit that referenced this issue Jan 18, 2019
@dmorn
Copy link
Member Author

dmorn commented Feb 1, 2019

It is possible to retrieve the metrics through https://godoc.org/github.com/prometheus/client_golang/prometheus#Gatherer

@dmorn
Copy link
Member Author

dmorn commented Feb 27, 2019

As we can control booster remotely, and a strategy would nevertheless take the metrics from our exported metrics package, we could:

  • create a strategy that gives connections to sources using a configurable windowing system or anti congestion control mechanism
  • add an endpoint to allow to configure this strategy remotely

This way tools that manage how booster behaves could be developed separately!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant