Skip to content

Commit

Permalink
Merge pull request #120 from arenadata/feature/ADH-5065-add-metrics-s…
Browse files Browse the repository at this point in the history
…upport

[ADH-5065] Add metrics support
  • Loading branch information
iamlapa authored Nov 25, 2024
2 parents 0a3ba7e + bef2c93 commit 6df567a
Show file tree
Hide file tree
Showing 289 changed files with 2,010 additions and 652 deletions.
46 changes: 46 additions & 0 deletions conf/smart-default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,12 @@
<description>SSM Rest Server port</description>
</property>

<property>
<name>smart.agent.http.server.port</name>
<value>8081</value>
<description>SSM Agent HTTP server port</description>
</property>

<property>
<name>smart.client.report.tasks.timeout.ms</name>
<value>2000</value>
Expand Down Expand Up @@ -724,4 +730,44 @@
The threshold number of file diff cache elements for starting cache invalidation.
</description>
</property>

<property>
<name>smart.metrics.enabled</name>
<value>true</value>
<description>
Whether to enable metrics collection and export.
</description>
</property>

<property>
<name>smart.metrics.jmx.enabled</name>
<value>true</value>
<description>
Whether to enable JMX metrics exporter.
</description>
</property>

<property>
<name>smart.metrics.jmx.domain</name>
<value>metrics</value>
<description>
Default domain for JMX exporter.
</description>
</property>

<property>
<name>smart.metrics.prometheus.enabled</name>
<value>true</value>
<description>
Whether to enable Prometheus metrics exporter.
</description>
</property>

<property>
<name>smart.metrics.db.queries.enabled</name>
<value>true</value>
<description>
Whether to enable SQL queries statistics export.
</description>
</property>
</configuration>
1 change: 1 addition & 0 deletions lombok.config
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
config.stopBubbling = true
lombok.builder.classname = Builder
lombok.copyableAnnotations += org.springframework.beans.factory.annotation.Qualifier
13 changes: 12 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@
<skip-build-web-ui>true</skip-build-web-ui>
<hamcrest.version>1.3</hamcrest.version>
<rest-assured.version>4.5.1</rest-assured.version>
<caffeine.version>2.9.3</caffeine.version>
<caffeine.version>2.9.3</caffeine.version>
<micrometer.version>1.9.17</micrometer.version>
<smart.hadoop.artifact>smart-hadoop-3.3</smart.hadoop.artifact>
<smart.hadoop.client.artifact>smart-hadoop-client-3</smart.hadoop.client.artifact>
<maven-replacer-plugin.version>1.5.3</maven-replacer-plugin.version>
Expand Down Expand Up @@ -504,6 +505,16 @@
<artifactId>caffeine</artifactId>
<version>${caffeine.version}</version>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
<version>${micrometer.version}</version>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-jmx</artifactId>
<version>${micrometer.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
Expand Down
17 changes: 17 additions & 0 deletions smart-agent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,30 @@
<version>2.0.0-SNAPSHOT</version>
<packaging>jar</packaging>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring.boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>org.smartdata</groupId>
<artifactId>smart-engine</artifactId>
<version>2.0.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.smartdata</groupId>
<artifactId>smart-agent-web-server</artifactId>
<version>2.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-testkit_2.11</artifactId>
Expand Down
Loading

0 comments on commit 6df567a

Please sign in to comment.