Skip to content

Commit

Permalink
GH-214: [feat] Create configuration files for tempo, prometheus, and …
Browse files Browse the repository at this point in the history
…grafana.
  • Loading branch information
wade3hamati committed Feb 19, 2025
1 parent c17649a commit 449dfaf
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
47 changes: 47 additions & 0 deletions docker/grafana/datasources.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}
12 changes: 12 additions & 0 deletions docker/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
global:
scrape_interval: 5s
evaluation_interval: 5s

scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['prometheus:9090']
- job_name: 'user-service'
metrics_path: '/actuator/prometheus'
static_configs:
- targets: ['host.docker.internal:8080'] ## only for demo purposes don't use host.docker.internal in production
12 changes: 12 additions & 0 deletions 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 449dfaf

Please sign in to comment.