Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions deployment/grafana/provisioning/dashboards/all.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
- name: 'default'
org_id: 1
folder: ''
type: 'file'
options:
folder: '/var/lib/grafana/dashboards'
apiVersion: 1

providers:
- name: 'default'
orgId: 1
type: file
disableDeletion: false
editable: true
options:
path: '/var/lib/grafana/dashboards'
6 changes: 3 additions & 3 deletions deployment/grafana/provisioning/datasources/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ apiVersion: 1
datasources:
- name: 'Temporal Prometheus'
type: 'prometheus'
org_id: 1
orgId: 1
url: 'http://prometheus:9090'
is_default: true
isDefault: true
version: 1
editable: true
- name: 'Loki'
type: loki
access: proxy
url: 'http://loki:3100'
jsonData:
maxLines: 1000
maxLines: 1000
34 changes: 11 additions & 23 deletions deployment/loki/local-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,38 +20,26 @@ ingester:
schema_config:
configs:
- from: 2022-11-20
store: boltdb
store: tsdb
object_store: filesystem
schema: v9
schema: v13
index:
prefix: index_
period: 168h
period: 24h

storage_config:
boltdb:
directory: /tmp/loki/index

filesystem:
directory: /tmp/loki/chunks

tsdb_shipper:
active_index_directory: /tmp/loki/index
cache_location: /tmp/loki/index_cache
cache_ttl: 24h

limits_config:
enforce_metric_name: false
reject_old_samples: true
reject_old_samples_max_age: 168h

chunk_store_config:
max_look_back_period: 0

table_manager:
chunk_tables_provisioning:
inactive_read_throughput: 0
inactive_write_throughput: 0
provisioned_read_throughput: 0
provisioned_write_throughput: 0
index_tables_provisioning:
inactive_read_throughput: 0
inactive_write_throughput: 0
provisioned_read_throughput: 0
provisioned_write_throughput: 0
retention_deletes_enabled: false
retention_period: 0
compactor:
working_directory: /tmp/loki/compactor
compaction_interval: 10m
12 changes: 6 additions & 6 deletions deployment/prometheus/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ scrape_configs:
static_configs:
# Server metrics target
- targets:
- 'host.docker.internal:8000'
- 'host.docker.internal:8001'
- 'host.docker.internal:8002'
- 'host.docker.internal:8003'
- 'host.docker.internal:8004'
- 'temporal-history:8000'
- 'temporal-matching:8001'
- 'temporal-frontend:8002'
- 'temporal-worker:8003'
- 'temporal-frontend2:8004'
labels:
group: 'server-metrics'

Expand All @@ -38,4 +38,4 @@ scrape_configs:
- targets:
- 'host.docker.internal:3030'
labels:
group: 'spring-boot-metrics'
group: 'spring-boot-metrics'
8 changes: 7 additions & 1 deletion docker-compose-multirole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ services:

grafana:
container_name: grafana
image: grafana/grafana:7.5.16
image: grafana/grafana:12.2.1
build: './deployment/grafana'
environment:
- GF_AUTH_DISABLE_LOGIN_FORM=true
Expand All @@ -286,6 +286,12 @@ services:
- type: bind
source: ./deployment/grafana/provisioning/datasources
target: /etc/grafana/provisioning/datasources
- type: bind
source: ./temporalio/deployment/grafana/provisioning/dashboards
target: /etc/grafana/provisioning/dashboards
- type: bind
source: ./temporalio/deployment/grafana/dashboards
target: /var/lib/grafana/dashboards
depends_on:
- prometheus
networks:
Expand Down