Skip to content

Commit

Permalink
GH-214: [feat] Create configuration for Prometheus, Grafana, and Tempo.
Browse files Browse the repository at this point in the history
  • Loading branch information
wade3hamati committed Feb 19, 2025
1 parent b5b07fa commit 92ad080
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 0 deletions.
47 changes: 47 additions & 0 deletions Microservices/monitor/docker/grafana/datasource.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
apiVersion: 1

datasources:
- name: Prometheus
type: prometheus
access: proxy
url: http://prometheus:9090
editable: false
jsonData:
httpMethod: POST
exemplarTraceIdDestinations:
- name: trace_id
datasourceUid: tempo
- name: Tempo
type: tempo
access: proxy
orgId: 1
url: http://tempo:3200
basicAuth: false
isDefault: true
version: 1
editable: false
apiVersion: 1
uid: tempo
jsonData:
httpMethod: GET
tracesToLogs:
datasourceUid: 'loki'
nodeGraph:
enabled: true
- name: Loki
type: loki
uid: loki
access: proxy
orgId: 1
url: http://loki:3100
basicAuth: false
isDefault: false
version: 1
editable: false
apiVersion: 1
jsonData:
derivedFields:
- datasourceUid: tempo
matcherRegex: \[.+,(.+?),
name: TraceID
url: $${__value.raw}
28 changes: 28 additions & 0 deletions Microservices/monitor/docker/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
global:
scrape_interval: 15s

scrape_configs:
- job_name: 'user-service'
metrics_path: '/api/user-service/actuator/prometheus'
static_configs:
- targets: [ 'host.docker.internal:8080' ]
- job_name: 'event-service'
metrics_path: '/api/event-service/actuator/prometheus'
scrape_interval: 5s
static_configs:
- targets: [ 'host.docker.internal:8080' ]
- job_name: 'storage-service'
metrics_path: '/api/storage-service/actuator/prometheus'
scrape_interval: 5s
static_configs:
- targets: [ 'host.docker.internal:8080' ]
- job_name: 'orchestration-service'
metrics_path: '/api/orchestration-service/actuator/prometheus'
scrape_interval: 5s
static_configs:
- targets: [ 'host.docker.internal:8080' ]
- job_name: 'messaging-service'
metrics_path: '/api/messaging-service/actuator/prometheus'
scrape_interval: 5s
static_configs:
- targets: [ 'host.docker.internal:8080' ]
12 changes: 12 additions & 0 deletions Microservices/monitor/docker/tempo/tempo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
server:
http_listen_port: 3200

distributor:
receivers:
zipkin:

storage:
trace:
backend: local
local:
path: /tmp/tempo/blocks

0 comments on commit 92ad080

Please sign in to comment.