-
Notifications
You must be signed in to change notification settings - Fork 75
[ETCM-49] Replace statsd metrics with prometheus #668
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
[ETCM-49] Replace statsd metrics with prometheus #668
Conversation
6271adf
to
3e23224
Compare
3e23224
to
7851d30
Compare
83ba14b
to
ebc0d7c
Compare
ebc0d7c
to
cf151db
Compare
import io.micrometer.jmx.JmxConfig | ||
|
||
class AppJmxConfig extends JmxConfig { | ||
def get(key: String): String = null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes (override is missing, i will add it)
import scala.util.Try | ||
|
||
case class Metrics(metricsPrefix: String, registry: MeterRegistry, serverPort: Int = 0) { | ||
private[this] final val MetricsPrefixDot = metricsPrefix + "." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same logic is used in meterRegistryBuilder
maybe it could be reused
case class Metrics(metricsPrefix: String, registry: MeterRegistry, serverPort: Int = 0) { | ||
private[this] final val MetricsPrefixDot = metricsPrefix + "." | ||
|
||
private[this] def mkName(name: String): String = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
… into ETCM-49-Replace-statsd-metrics-with-prometheus Conflicts: build.sbt src/main/scala/io/iohk/ethereum/network/p2p/messages/PV62.scala src/universal/conf/logback.xml src/main/scala/io/iohk/ethereum/domain/BlockBody.scala TODO: Regenerate nix dependencies
…repo.nix files, sbtnix is inyecting local paths)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
in order to follow IOHK devops standards we will move our metrics to Prometheus (Pull monitoring model) + Grafana.
Important Changes Introduced
Testing
In order to run it locally using docker monitoring client please check the README.md#Monitoring