-
Notifications
You must be signed in to change notification settings - Fork 361
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
Create metrics endpoint for prom-scraper consumption #2648
Comments
Currently we emit metrics named with periods, e.g. @stephanme @philippthun do you have any thoughts on how we would handle an upgrade here? A few options:
Would appreciate your input here. |
Option 1 would work for us; we would need to adapt our monitoring tools beforehand to support both formats and then change them a second time to clean this up (i.e. support only the new format). But I'm not sure if this works for others as well, thus I would prefer option 2. This also has the advantage that we only have to adapt our monitoring tools once without any disruption. There might be even an option 4, that combines 2 and 3; i.e. a config parameter that specifies what to emit: either the old, or the new format, or both. But given the fact that we are not talking about hundreds of metrics, that might be over-engineered; so simply having both formats for one release seems to be the best/easiest solution. |
Sounds good. Having one release that contains both I think makes the most sense. We will move forward with that idea. |
Closing as this has been supported for a while: #2781 |
Currently CCNG uses statsd-injector to gather Statsd style metrics and forward them to loggregator.
We should build a
/metrics
endpoint to supply those same metrics, so we can use prom-scraper to forward the metrics instead.Doing this will allow us to remove the EventMachine/Thin code we have:
cloud_controller_ng/lib/cloud_controller/metrics/periodic_updater.rb
Lines 18 to 20 in 4a23a41
and consequently address #2254 and move CCNG from Thin to Puma.
The text was updated successfully, but these errors were encountered: