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

Issue #1341: Support Micrometer metrics facade to integrate with more… #1342

Merged
merged 1 commit into from
May 23, 2020

Conversation

HenryCaiHaiying
Copy link
Contributor

… metrics backend systems

Currently secor's metrics monitoring relies on Twitter's Ostrich library which is already deprecated. There are many stats/metrics collection libraries and backend systems on the market (e.g. StatsD, Promethus, Graphite, Datadog, Influx etc).

A good way to support integration with those metrics collection system is using Micrometer facade (micrometer.io) which provides a common interface and prebuilt integration with most popular metrics systems.

Adding the new MicrometerMetricCollector implementation and plug in through:
secor.monitoring.metrics.collector.class=com.pinterest.secor.monitoring.MicroMeterMetricCollector

Micrometer metrics can use a CompositeMetricRegistry which supports to multiple metrics systems simultaneously. We added the following two integration points to JMX and StatsD, more (e.g. Graphite, Datadog) can be added in the similar fashion:

secor.monitoring.metrics.collector.micrometer.jmx.enabled=true
secor.monitoring.metrics.collector.micrometer.statsd.enabled=true

…with more metrics backend systems

Currently secor's metrics monitoring relies on Twitter's Ostrich library which is already deprecated. There are many stats/metrics collection libraries and backend systems on the market (e.g. StatsD, Promethus, Graphite, Datadog, Influx etc).

A good way to support integration with those metrics collection system is using Micrometer facade (micrometer.io) which provides a common interface and prebuilt integration with most popular metrics systems.

Adding the new MicrometerMetricCollector implementation and plug in through:
secor.monitoring.metrics.collector.class=com.pinterest.secor.monitoring.MicroMeterMetricCollector

Micrometer metrics can use a CompositeMetricRegistry which supports to multiple metrics systems simultaneously.  We added the following two integration points to JMX and StatsD, more (e.g. Graphite, Datadog) can be added in the similar fashion:

secor.monitoring.metrics.collector.micrometer.jmx.enabled=true
secor.monitoring.metrics.collector.micrometer.statsd.enabled=true
@HenryCaiHaiying HenryCaiHaiying merged commit 6a74db2 into pinterest:master May 23, 2020
HenryCaiHaiying pushed a commit to HenryCaiHaiying/secor that referenced this pull request May 25, 2020
And add the missing MicrometerMetricsCollector from pinterest#1342
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

Successfully merging this pull request may close these issues.

1 participant