mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-22 15:50:32 +01:00
Working Loki + promtail
This commit is contained in:
parent
2b3abe113a
commit
4a6483b6b3
|
@ -1,36 +1,23 @@
|
||||||
|
|
||||||
|
# This is a complete configuration to deploy Loki backed by the filesystem.
|
||||||
|
# The index will be shipped to the storage via tsdb-shipper.
|
||||||
|
|
||||||
auth_enabled: false
|
auth_enabled: false
|
||||||
|
|
||||||
server:
|
server:
|
||||||
http_listen_port: 3100
|
http_listen_port: 3100
|
||||||
grpc_listen_port: 9096
|
|
||||||
log_level: debug
|
|
||||||
grpc_server_max_concurrent_streams: 1000
|
|
||||||
|
|
||||||
common:
|
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:
|
ring:
|
||||||
|
instance_addr: 127.0.0.1
|
||||||
kvstore:
|
kvstore:
|
||||||
store: inmemory
|
store: inmemory
|
||||||
|
replication_factor: 1
|
||||||
ingester_rf1:
|
path_prefix: /tmp/loki
|
||||||
enabled: false
|
|
||||||
|
|
||||||
query_range:
|
|
||||||
results_cache:
|
|
||||||
cache:
|
|
||||||
embedded_cache:
|
|
||||||
enabled: true
|
|
||||||
max_size_mb: 100
|
|
||||||
|
|
||||||
schema_config:
|
schema_config:
|
||||||
configs:
|
configs:
|
||||||
- from: 2020-10-24
|
- from: 2020-05-15
|
||||||
store: tsdb
|
store: tsdb
|
||||||
object_store: filesystem
|
object_store: filesystem
|
||||||
schema: v13
|
schema: v13
|
||||||
|
@ -38,17 +25,6 @@ schema_config:
|
||||||
prefix: index_
|
prefix: index_
|
||||||
period: 24h
|
period: 24h
|
||||||
|
|
||||||
pattern_ingester:
|
storage_config:
|
||||||
enabled: true
|
filesystem:
|
||||||
metric_aggregation:
|
directory: /tmp/loki/chunks
|
||||||
enabled: true
|
|
||||||
log_push_observations: true
|
|
||||||
|
|
||||||
# ruler:
|
|
||||||
# alertmanager_url: http://localhost:9093
|
|
||||||
|
|
||||||
frontend:
|
|
||||||
encoding: protobuf
|
|
||||||
|
|
||||||
analytics:
|
|
||||||
reporting_enabled: false
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ scrape_configs:
|
||||||
max_age: 12h
|
max_age: 12h
|
||||||
labels:
|
labels:
|
||||||
job: systemd-journal
|
job: systemd-journal
|
||||||
host: chrysalis
|
host: beleth
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: ["__journal__systemd_unit"]
|
- source_labels: ["__journal__systemd_unit"]
|
||||||
target_label: "unit"
|
target_label: "unit"
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
port = 2342;
|
port = 2342;
|
||||||
addr = "127.0.0.1";
|
addr = "127.0.0.1";
|
||||||
domain = "grafana.heroin.trade";
|
domain = "grafana.heroin.trade";
|
||||||
|
analytics.reporting.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.promtail = {
|
systemd.services.promtail = {
|
||||||
|
|
Loading…
Reference in a new issue