opened
pdambrauskas
username_0
We are running Secor on K8s and monitoring our stack with Prometheus.
As Secor uses Micrometer, it is not that hard to add Prometheus support directly, and avoid using exporters for Secor metrics.

I've changed the way `gauge` method works, because Prometheus endpoint was returning `NaN` values.
More on that https://stackoverflow.com/questions/50821924/micrometer-prometheus-gauge-displays-nan

I've added `/prometheus` endpoint to Ostrich Server to avoid making things complicated with listening to some other port.

Also moved initialization of metric controller up to `ConsumerMain` class. I guess we don't need to have different instances for each Consumer. Otherwise  I'd have to ensure, that there is only one instance of PrometheusMetricRegistry to avoid duplications  and other problems on Prometheus http endpoint. This shouldnt be a problem, as Metric registries are delegating calls to static methods anyway.
Add native support for Prometheus
issue
created
HenryCaiHaiying
username_1
In that case use the ERROR level logging and set the cache size threshold a
little bigger: 500
comment
created
HenryCaiHaiying
username_1
Looks good, thanks for the contribution.
comment