Skip to content

Commit

Permalink
Prometheus for management
Browse files Browse the repository at this point in the history
  • Loading branch information
faderskd committed Jul 14, 2023
1 parent d961aea commit 63e1e6f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package pl.allegro.tech.hermes.management.config;

import java.util.List;
import org.springframework.boot.context.properties.ConfigurationProperties;
import pl.allegro.tech.hermes.common.di.factories.MicrometerRegistryParameters;

import java.util.List;

@ConfigurationProperties(prefix = "metrics.micrometer")
public class MicrometerRegistryProperties implements MicrometerRegistryParameters {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package pl.allegro.tech.hermes.management.config;

import io.micrometer.prometheus.PrometheusConfig;

import java.time.Duration;

public class PrometheusConfigAdapter implements PrometheusConfig {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package pl.allegro.tech.hermes.management.config;

import java.time.Duration;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.time.Duration;

@ConfigurationProperties(prefix = "metrics.prometheus")
public class PrometheusProperties {

Expand Down
4 changes: 3 additions & 1 deletion hermes-management/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ server:
management:
endpoints:
web:
base-path: /
base-path: /status
exposure:
include: health, prometheus
rest-template:
connect-timeout: 2000
read-timeout: 2000
Expand Down

0 comments on commit 63e1e6f

Please sign in to comment.