Add the monitoring stack

This commit is contained in:
tanshu committed 2026-10-18 21:35:52 +05:30
1 parent 5e0a27b32b
commit 924f000e17
14 files changed
+376

No files matched your search

+64
View File
@@ -0,0 +1,64 @@
auth_enabled: false
server:
http_listen_port: 3100
grpc_listen_port: 9096
log_level: debug
grpc_server_max_concurrent_streams: 1000
common:
instance_addr: 127.0.0.1
path_prefix: /tmp/loki
storage:
filesystem:
chunks_directory: /tmp/loki/chunks
rules_directory: /tmp/loki/rules
replication_factor: 1
ring:
kvstore:
store: inmemory
query_range:
results_cache:
cache:
embedded_cache:
enabled: true
max_size_mb: 100
# limits_config:
# metric_aggregation_enabled: truez
schema_config:
configs:
- from: 2020-10-24
store: tsdb
object_store: filesystem
schema: v13
index:
prefix: index_
period: 24h
pattern_ingester:
enabled: true
# metric_aggregation:
# enabled: true
# loki_address: localhost:3100
ruler:
alertmanager_url: http://localhost:9093
frontend:
encoding: protobuf
# By default, Loki will send anonymous, but uniquely-identifiable usage and configuration
# analytics to Grafana Labs. These statistics are sent to https://stats.grafana.org/
#
# Statistics help us better understand how Loki is used, and they show us performance
# levels for most users. This helps us prioritize features and documentation.
# For more information on what's sent, look at
# https://github.com/grafana/loki/blob/main/pkg/analytics/stats.go
# Refer to the buildReport method to see what goes into a report.
#
# If you would like to disable reporting, uncomment the following lines:
#analytics:
# reporting_enabled: false
+20
View File
@@ -0,0 +1,20 @@
server {
listen 80;
server_name {{ http_host }};
location / {
proxy_set_header Host $http_host;
proxy_pass http://localhost:3005/;
}
location /api/live/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_pass http://localhost:3005/;
}
}
+2
View File
@@ -0,0 +1,2 @@
esp8266:esp8266
nodered:nodered
+25
View File
@@ -0,0 +1,25 @@
server:
http_listen_port: "{{ promtail_port }}"
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
clients:
- url: "http://loki:{{ loki_port }}/loki/api/v1/push"
scrape_configs:
- job_name: system
static_configs:
- targets:
- localhost
labels:
job: varlogs
__path__: /var/log/*log
- job_name: docker
static_configs:
- targets:
- localhost
labels:
job: docker
__path__: /var/lib/docker/containers/*/*.log