Skip to content

Commit

Permalink
prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
giovnnvm committed Aug 4, 2021
1 parent c206b8f commit 301c60f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ services:
prometheus:
image: prom/prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-volume:/etc/prometheus/
network_mode: bridge
ports:
Expand Down Expand Up @@ -160,7 +161,7 @@ services:
CONTAS_HOST: contas
KEYCLOAK_ISSUER_URI: http://keycloak:8080/auth/realms/nosso-cartao
KEYCLOAK_JWKS_URI: http://keycloak:8080/auth/realms/nosso-cartao/protocol/openid-connect/certs
JAEGER_ENABLED: true
JAEGER_ENABLED:
JAEGER_ENDPOINT: http://jaeger:14268/api/traces
JAEGER_SAMPLER: 1
depends_on:
Expand Down
10 changes: 10 additions & 0 deletions prometheus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
global:
scrape_interval: 15s
evaluation_interval: 15s

scrape_configs:

- job_name: 'proposta'
metrics_path: '/actuator/prometheus'
static_configs:
- targets: ['localhost:8080']
8 changes: 4 additions & 4 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ server.port=8080
solicitacao-analise-resource=http://${ANALISE_HOST:localhost}:9999/api/solicitacao
cartao-resource=http://${CONTAS_HOST:localhost}:8888
### Actuator Health Check ###
management.endpoints.web.exposure.include=info,health,prometheus
management.endpoints.web.exposure.include=info,health,prometheus,metrics
management.endpoint.health.show-details=always
management.endpoint.prometheus.enabled=true
### Scheduled ###
Expand All @@ -34,9 +34,9 @@ opentracing.jaeger.http-sender.url=${JAEGER_ENDPOINT:http://localhost:14268/api/
opentracing.jaeger.probabilistic-sampler.sampling-rate=${JAEGER_SAMPLER:1}
### Timeout ###
# Health status when down #
management.endpoint.health.status.http-mapping.down=503
management.endpoint.health.status.http-mapping.fatal=503
management.endpoint.health.status.http-mapping.out-of-service=503
management.endpoint.health.status.http-mapping.down=500
management.endpoint.health.status.http-mapping.fatal=500
management.endpoint.health.status.http-mapping.out-of-service=500
# Feign #
feign.client.config.analises.connect-timeout=100
feign.client.config.analises.read-timeout=1000
Expand Down

0 comments on commit 301c60f

Please sign in to comment.