From 1ca612985e885b1518eefcf593f954ec800cc11d Mon Sep 17 00:00:00 2001 From: anilkumarmyla Date: Tue, 1 May 2018 05:25:31 -0400 Subject: [PATCH] Fix doc - use new markdown directive for dependency (#24811) --- akka-docs/src/main/paradox/cluster-metrics.md | 25 +++++-------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/akka-docs/src/main/paradox/cluster-metrics.md b/akka-docs/src/main/paradox/cluster-metrics.md index 9781d7d188..1671437f2e 100644 --- a/akka-docs/src/main/paradox/cluster-metrics.md +++ b/akka-docs/src/main/paradox/cluster-metrics.md @@ -12,25 +12,12 @@ such as "Node Let-it-crash" when CPU steal time becomes excessive. Cluster Metrics Extension is a separate Akka module delivered in `akka-cluster-metrics` jar. To enable usage of the extension you need to add the following dependency to your project: -: -Scala -: @@@ vars -``` -"com.typesafe.akka" % "akka-cluster-metrics_$scala.binary_version$" % "$akka.version$" -``` -@@@ - -Java -: @@@ vars -``` - - com.typesafe.akka - akka-cluster-metrics_$scala.binary_version$ - $akka.version$ - -``` -@@@ +@@dependency[sbt,Maven,Gradle] { + group="com.typesafe.akka" + artifact="akka-cluster-metrics_$scala.binary_version$" + version="$akka.version$" +} and add the following configuration stanza to your `application.conf` : @@ -235,4 +222,4 @@ Custom metrics collector implementation class must be specified in the The Cluster metrics extension can be configured with the following properties: -@@snip [reference.conf]($akka$/akka-cluster-metrics/src/main/resources/reference.conf) \ No newline at end of file +@@snip [reference.conf]($akka$/akka-cluster-metrics/src/main/resources/reference.conf)