From 7032affde5293adef098c849b051666156cf2192 Mon Sep 17 00:00:00 2001 From: Ivan Topolnjak Date: Tue, 31 Mar 2020 12:02:10 +0200 Subject: [PATCH] move the prometheus reporter into its own folder, related to #626 --- build.sbt | 1 + .../kamon-prometheus/src}/main/resources/reference.conf | 0 .../src}/main/scala/kamon/prometheus/HttpClient.scala | 0 .../main/scala/kamon/prometheus/MetricOverrideReporter.scala | 0 .../scala/kamon/prometheus/PrometheusPushgatewayReporter.scala | 0 .../src}/main/scala/kamon/prometheus/PrometheusReporter.scala | 0 .../src}/main/scala/kamon/prometheus/PrometheusSettings.scala | 0 .../src}/main/scala/kamon/prometheus/ScrapeDataBuilder.scala | 0 .../test/scala/kamon/prometheus/MetricOverrideReporterSpec.scala | 0 .../src}/test/scala/kamon/prometheus/ScrapeDataBuilderSpec.scala | 0 10 files changed, 1 insertion(+) rename {src => reporters/kamon-prometheus/src}/main/resources/reference.conf (100%) rename {src => reporters/kamon-prometheus/src}/main/scala/kamon/prometheus/HttpClient.scala (100%) rename {src => reporters/kamon-prometheus/src}/main/scala/kamon/prometheus/MetricOverrideReporter.scala (100%) rename {src => reporters/kamon-prometheus/src}/main/scala/kamon/prometheus/PrometheusPushgatewayReporter.scala (100%) rename {src => reporters/kamon-prometheus/src}/main/scala/kamon/prometheus/PrometheusReporter.scala (100%) rename {src => reporters/kamon-prometheus/src}/main/scala/kamon/prometheus/PrometheusSettings.scala (100%) rename {src => reporters/kamon-prometheus/src}/main/scala/kamon/prometheus/ScrapeDataBuilder.scala (100%) rename {src => reporters/kamon-prometheus/src}/test/scala/kamon/prometheus/MetricOverrideReporterSpec.scala (100%) rename {src => reporters/kamon-prometheus/src}/test/scala/kamon/prometheus/ScrapeDataBuilderSpec.scala (100%) diff --git a/build.sbt b/build.sbt index b84d0e9a9..dec77aaf0 100644 --- a/build.sbt +++ b/build.sbt @@ -393,6 +393,7 @@ lazy val reporters = (project in file("reporters")) `kamon-influxdb`, `kamon-jaeger`, `kamon-newrelic`, + `kamon-prometheus`, `kamon-statsd`, `kamon-zipkin`, ) diff --git a/src/main/resources/reference.conf b/reporters/kamon-prometheus/src/main/resources/reference.conf similarity index 100% rename from src/main/resources/reference.conf rename to reporters/kamon-prometheus/src/main/resources/reference.conf diff --git a/src/main/scala/kamon/prometheus/HttpClient.scala b/reporters/kamon-prometheus/src/main/scala/kamon/prometheus/HttpClient.scala similarity index 100% rename from src/main/scala/kamon/prometheus/HttpClient.scala rename to reporters/kamon-prometheus/src/main/scala/kamon/prometheus/HttpClient.scala diff --git a/src/main/scala/kamon/prometheus/MetricOverrideReporter.scala b/reporters/kamon-prometheus/src/main/scala/kamon/prometheus/MetricOverrideReporter.scala similarity index 100% rename from src/main/scala/kamon/prometheus/MetricOverrideReporter.scala rename to reporters/kamon-prometheus/src/main/scala/kamon/prometheus/MetricOverrideReporter.scala diff --git a/src/main/scala/kamon/prometheus/PrometheusPushgatewayReporter.scala b/reporters/kamon-prometheus/src/main/scala/kamon/prometheus/PrometheusPushgatewayReporter.scala similarity index 100% rename from src/main/scala/kamon/prometheus/PrometheusPushgatewayReporter.scala rename to reporters/kamon-prometheus/src/main/scala/kamon/prometheus/PrometheusPushgatewayReporter.scala diff --git a/src/main/scala/kamon/prometheus/PrometheusReporter.scala b/reporters/kamon-prometheus/src/main/scala/kamon/prometheus/PrometheusReporter.scala similarity index 100% rename from src/main/scala/kamon/prometheus/PrometheusReporter.scala rename to reporters/kamon-prometheus/src/main/scala/kamon/prometheus/PrometheusReporter.scala diff --git a/src/main/scala/kamon/prometheus/PrometheusSettings.scala b/reporters/kamon-prometheus/src/main/scala/kamon/prometheus/PrometheusSettings.scala similarity index 100% rename from src/main/scala/kamon/prometheus/PrometheusSettings.scala rename to reporters/kamon-prometheus/src/main/scala/kamon/prometheus/PrometheusSettings.scala diff --git a/src/main/scala/kamon/prometheus/ScrapeDataBuilder.scala b/reporters/kamon-prometheus/src/main/scala/kamon/prometheus/ScrapeDataBuilder.scala similarity index 100% rename from src/main/scala/kamon/prometheus/ScrapeDataBuilder.scala rename to reporters/kamon-prometheus/src/main/scala/kamon/prometheus/ScrapeDataBuilder.scala diff --git a/src/test/scala/kamon/prometheus/MetricOverrideReporterSpec.scala b/reporters/kamon-prometheus/src/test/scala/kamon/prometheus/MetricOverrideReporterSpec.scala similarity index 100% rename from src/test/scala/kamon/prometheus/MetricOverrideReporterSpec.scala rename to reporters/kamon-prometheus/src/test/scala/kamon/prometheus/MetricOverrideReporterSpec.scala diff --git a/src/test/scala/kamon/prometheus/ScrapeDataBuilderSpec.scala b/reporters/kamon-prometheus/src/test/scala/kamon/prometheus/ScrapeDataBuilderSpec.scala similarity index 100% rename from src/test/scala/kamon/prometheus/ScrapeDataBuilderSpec.scala rename to reporters/kamon-prometheus/src/test/scala/kamon/prometheus/ScrapeDataBuilderSpec.scala