Compare commits
No commits in common. "28fea907788cbacf723602189da7f5f39753cba4" and "8c3d0d3884203a7a2b5b730fc35e7595aacb82d1" have entirely different histories.
28fea90778
...
8c3d0d3884
@ -2,50 +2,44 @@ auth_enabled: false
|
|||||||
|
|
||||||
server:
|
server:
|
||||||
http_listen_port: 3100
|
http_listen_port: 3100
|
||||||
grpc_listen_port: 9096
|
|
||||||
|
|
||||||
common:
|
ingester:
|
||||||
instance_addr: 127.0.0.1
|
lifecycler:
|
||||||
path_prefix: /var/opt/loki
|
address: 127.0.0.1
|
||||||
storage:
|
|
||||||
filesystem:
|
|
||||||
chunks_directory: /var/opt/loki/chunks
|
|
||||||
rules_directory: /var/opt/loki/rules
|
|
||||||
replication_factor: 1
|
|
||||||
ring:
|
ring:
|
||||||
kvstore:
|
kvstore:
|
||||||
store: inmemory
|
store: inmemory
|
||||||
|
replication_factor: 1
|
||||||
query_range:
|
final_sleep: 0s
|
||||||
results_cache:
|
chunk_idle_period: 5m
|
||||||
cache:
|
chunk_retain_period: 30s
|
||||||
embedded_cache:
|
max_transfer_retries: 0
|
||||||
enabled: true
|
|
||||||
max_size_mb: 100
|
|
||||||
|
|
||||||
schema_config:
|
schema_config:
|
||||||
configs:
|
configs:
|
||||||
- from: 2020-10-24
|
- from: 2018-04-15
|
||||||
store: tsdb
|
store: boltdb
|
||||||
object_store: filesystem
|
object_store: filesystem
|
||||||
schema: v13
|
schema: v11
|
||||||
index:
|
index:
|
||||||
prefix: index_
|
prefix: index_
|
||||||
period: 24h
|
period: 168h
|
||||||
|
|
||||||
frontend:
|
storage_config:
|
||||||
encoding: protobuf
|
boltdb:
|
||||||
|
directory: /var/opt/loki/index
|
||||||
|
|
||||||
# By default, Loki will send anonymous, but uniquely-identifiable usage and configuration
|
filesystem:
|
||||||
# analytics to Grafana Labs. These statistics are sent to https://stats.grafana.org/
|
directory: /var/opt/loki/chunks
|
||||||
#
|
|
||||||
# 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
|
|
||||||
|
|
||||||
|
limits_config:
|
||||||
|
enforce_metric_name: false
|
||||||
|
reject_old_samples: true
|
||||||
|
reject_old_samples_max_age: 168h
|
||||||
|
|
||||||
|
chunk_store_config:
|
||||||
|
max_look_back_period: 0s
|
||||||
|
|
||||||
|
table_manager:
|
||||||
|
retention_deletes_enabled: false
|
||||||
|
retention_period: 0s
|
||||||
|
|||||||
@ -8,11 +8,13 @@
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Deploy `prometheus` files:
|
# Deploy `prometheus` files:
|
||||||
remote_file '/etc/loki/loki-config.yml' do
|
template '/etc/loki/loki-config.yml' do
|
||||||
owner 'root'
|
owner 'root'
|
||||||
group 'root'
|
group 'root'
|
||||||
mode '644'
|
mode '644'
|
||||||
|
|
||||||
|
variables(ipaddr: node['loki']['ipaddr'])
|
||||||
|
|
||||||
notifies :restart, 'service[loki]'
|
notifies :restart, 'service[loki]'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
45
cookbooks/loki/templates/etc/loki/loki-config.yml
Normal file
45
cookbooks/loki/templates/etc/loki/loki-config.yml
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
auth_enabled: false
|
||||||
|
|
||||||
|
server:
|
||||||
|
http_listen_port: 3100
|
||||||
|
|
||||||
|
ingester:
|
||||||
|
lifecycler:
|
||||||
|
address: 127.0.0.1
|
||||||
|
ring:
|
||||||
|
kvstore:
|
||||||
|
store: inmemory
|
||||||
|
replication_factor: 1
|
||||||
|
final_sleep: 0s
|
||||||
|
chunk_idle_period: 5m
|
||||||
|
chunk_retain_period: 30s
|
||||||
|
max_transfer_retries: 0
|
||||||
|
|
||||||
|
schema_config:
|
||||||
|
configs:
|
||||||
|
- from: 2018-04-15
|
||||||
|
store: boltdb
|
||||||
|
object_store: filesystem
|
||||||
|
schema: v11
|
||||||
|
index:
|
||||||
|
prefix: index_
|
||||||
|
period: 168h
|
||||||
|
|
||||||
|
storage_config:
|
||||||
|
boltdb:
|
||||||
|
directory: /var/opt/loki/index
|
||||||
|
|
||||||
|
filesystem:
|
||||||
|
directory: /var/opt/loki/chunks
|
||||||
|
|
||||||
|
limits_config:
|
||||||
|
enforce_metric_name: false
|
||||||
|
reject_old_samples: true
|
||||||
|
reject_old_samples_max_age: 168h
|
||||||
|
|
||||||
|
chunk_store_config:
|
||||||
|
max_look_back_period: 0s
|
||||||
|
|
||||||
|
table_manager:
|
||||||
|
retention_deletes_enabled: false
|
||||||
|
retention_period: 0s
|
||||||
Loading…
Reference in New Issue
Block a user