Add Grafana & Prometheus Configs

This commit is contained in:
Juan Negro 2024-03-12 14:25:39 +01:00
parent 844bfe83d2
commit 05fcbebbb0
No known key found for this signature in database
GPG Key ID: 670B33C54F9BABA7
2 changed files with 21 additions and 0 deletions

9
grafana/datasource.yml Normal file
View File

@ -0,0 +1,9 @@
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
url: http://prometheus:9090
isDefault: true
access: proxy
editable: true

12
prometheus/prometheus.yml Normal file
View File

@ -0,0 +1,12 @@
global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
scrape_configs:
- job_name: spring-app
scrape_interval: 15s
scrape_timeout: 10s
scheme: http
metrics_path: /metrics
static_configs:
- targets: ['spring-app:8080']