remote grafana stack

This commit is contained in:
2026-08-01 10:33:42 +00:00
parent 02af9aa5d1
commit 07ff12f3dc
5 changed files with 1 additions and 239 deletions
-49
View File
@@ -1,49 +0,0 @@
# config/grafana-datasources.yaml
# Auto-provisioned data sources for Grafana
apiVersion: 1
datasources:
# Tempo for traces
- name: Tempo
uid: tempo
type: tempo
access: proxy
url: http://tempo:3200
isDefault: false
jsonData:
tracesToLogsV2:
datasourceUid: loki
filterByTraceID: true
tracesToMetrics:
datasourceUid: mimir
nodeGraph:
enabled: true
serviceMap:
datasourceUid: mimir
# Mimir for metrics
- name: Mimir
uid: mimir
type: prometheus
access: proxy
url: http://mimir:9009/prometheus
isDefault: true
jsonData:
exemplarTraceIdDestinations:
- name: traceID
datasourceUid: tempo
# Loki for logs
- name: Loki
uid: loki
type: loki
access: proxy
url: http://loki:3100
isDefault: false
jsonData:
derivedFields:
- name: TraceID
datasourceUid: tempo
matcherRegex: "traceID=(\\w+)"
url: "$${__value.raw}"
-35
View File
@@ -1,35 +0,0 @@
# config/loki.yaml
# Grafana Loki configuration for local development
auth_enabled: false
server:
http_listen_port: 3100
# Common configuration shared across components
common:
path_prefix: /loki
storage:
filesystem:
chunks_directory: /loki/chunks
rules_directory: /loki/rules
replication_factor: 1
ring:
kvstore:
store: inmemory
# Schema configuration defines how data is stored
schema_config:
configs:
- from: 2020-10-24
store: tsdb
object_store: filesystem
schema: v13
index:
prefix: index_
period: 24h
# Limits for local development
limits_config:
allow_structured_metadata: true
volume_enabled: true
-54
View File
@@ -1,54 +0,0 @@
# config/mimir.yaml
# Grafana Mimir configuration for local development
# Run all components in a single process
target: all
# Server settings
server:
http_listen_port: 9009
grpc_listen_port: 9095
# Single-tenant mode for simplicity
multitenancy_enabled: false
# Block storage configuration
blocks_storage:
backend: filesystem
filesystem:
dir: /data/blocks
tsdb:
dir: /data/tsdb
bucket_store:
sync_dir: /data/sync
# Compactor settings
compactor:
data_dir: /data/compactor
sharding_ring:
kvstore:
store: memberlist
# Distributor accepts remote write from the Collector
distributor:
ring:
kvstore:
store: memberlist
# Ingester configuration
ingester:
ring:
kvstore:
store: memberlist
replication_factor: 1
# Store gateway for querying blocks
store_gateway:
sharding_ring:
replication_factor: 1
# Ruler for alerting rules
ruler_storage:
backend: filesystem
filesystem:
dir: /data/rules
-39
View File
@@ -1,39 +0,0 @@
# config/tempo.yaml
# Grafana Tempo configuration for local development
# Server configuration
server:
http_listen_port: 3200
# Distributor receives traces from the Collector
distributor:
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
# Storage configuration using local filesystem
storage:
trace:
backend: local
local:
path: /var/tempo/blocks
wal:
path: /var/tempo/wal
# Metrics generator creates span metrics for RED dashboards
metrics_generator:
registry:
external_labels:
source: tempo
storage:
path: /var/tempo/generator/wal
remote_write:
- url: http://mimir:9009/api/v1/push
# Enable metrics-generator processors for the default tenant
overrides:
defaults:
metrics_generator:
processors: [span-metrics, service-graphs]