Skip to content

Commit

Permalink
feat(metrics): enable Prometheus endpoint on Kubernetes for collectin…
Browse files Browse the repository at this point in the history
…g indexer metrics
  • Loading branch information
filipowm committed Mar 17, 2022
1 parent 581cef8 commit 5b0c6a1
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions ambassador-application/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ springdoc:
prefix: /ui

management:

health:
livenessstate:
enabled: true
Expand Down Expand Up @@ -72,18 +71,12 @@ management:
exposure:
include:
- health
# TODO enable prometheus endpoint when IP-based security is enabled
# - prometheus

---
ambassador:
language: english
security:
enabled: true
indexer:
subscription:
unsubscribe:
topic: unsubscribe
features:
requireVisibility:
- public
Expand All @@ -94,12 +87,10 @@ ambassador:
supportingThreadPrefix: spprt-
concurrencyLevel: 30
lock-type: in_memory
historySize: 10
gracePeriod: 7d
criteria:
projects:
excludeGroups:
- 1745
excludeGroups: []
excludeArchived: true
excludeForks: true
maxVisibility: internal
Expand All @@ -126,3 +117,17 @@ logging:
level:
root: warn
com.roche: info

---
spring:
config:
activate:
on-cloud-platform: kubernetes

management:
endpoints:
web:
exposure:
include:
- health
- prometheus

0 comments on commit 5b0c6a1

Please sign in to comment.