change grafana_loki role variable structure
This commit is contained in:
parent
374bd0d69a
commit
0363813807
@ -243,62 +243,14 @@ prometheus_alerting_rules:
|
|||||||
description: "Clock not synchronising. Ensure NTP is configured on this host.\n VALUE = {{'{{'}} $value {{'}}'}}\n LABELS = {{'{{'}} $labels {{'}}'}}"
|
description: "Clock not synchronising. Ensure NTP is configured on this host.\n VALUE = {{'{{'}} $value {{'}}'}}\n LABELS = {{'{{'}} $labels {{'}}'}}"
|
||||||
|
|
||||||
|
|
||||||
|
loki_settings:
|
||||||
loki_options:
|
config:
|
||||||
auth_enabled: false
|
auth_enabled: false
|
||||||
|
|
||||||
server:
|
server:
|
||||||
http_listen_port: 3100
|
http_listen_port: 3100
|
||||||
grpc_listen_port: 9096
|
|
||||||
log_level: info
|
log_level: info
|
||||||
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: true
|
|
||||||
|
|
||||||
schema_config:
|
|
||||||
configs:
|
|
||||||
- from: 2020-10-24
|
|
||||||
store: tsdb
|
|
||||||
object_store: filesystem
|
|
||||||
schema: v13
|
|
||||||
index:
|
|
||||||
prefix: index_
|
|
||||||
period: 24h
|
|
||||||
|
|
||||||
pattern_ingester:
|
pattern_ingester:
|
||||||
enabled: true
|
enabled: true
|
||||||
metric_aggregation:
|
|
||||||
loki_address: localhost:3100
|
|
||||||
|
|
||||||
ruler:
|
|
||||||
alertmanager_url: http://localhost:9093
|
|
||||||
|
|
||||||
frontend:
|
|
||||||
encoding: protobuf
|
|
||||||
|
|
||||||
analytics:
|
|
||||||
reporting_enabled: false
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
fluentbit_settings:
|
fluentbit_settings:
|
||||||
|
@ -1,14 +1,15 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
loki_options:
|
loki_settings:
|
||||||
auth_enabled: false
|
|
||||||
|
|
||||||
|
loki_default_settings:
|
||||||
|
config:
|
||||||
|
auth_enabled: false
|
||||||
server:
|
server:
|
||||||
http_listen_port: 3100
|
http_listen_port: 3100
|
||||||
grpc_listen_port: 9096
|
grpc_listen_port: 9096
|
||||||
log_level: debug
|
log_level: debug
|
||||||
grpc_server_max_concurrent_streams: 1000
|
grpc_server_max_concurrent_streams: 1000
|
||||||
|
|
||||||
common:
|
common:
|
||||||
instance_addr: 127.0.0.1
|
instance_addr: 127.0.0.1
|
||||||
path_prefix: /tmp/loki
|
path_prefix: /tmp/loki
|
||||||
@ -20,37 +21,30 @@ loki_options:
|
|||||||
ring:
|
ring:
|
||||||
kvstore:
|
kvstore:
|
||||||
store: inmemory
|
store: inmemory
|
||||||
|
|
||||||
query_range:
|
query_range:
|
||||||
results_cache:
|
results_cache:
|
||||||
cache:
|
cache:
|
||||||
embedded_cache:
|
embedded_cache:
|
||||||
enabled: true
|
enabled: true
|
||||||
max_size_mb: 100
|
max_size_mb: 100
|
||||||
|
|
||||||
limits_config:
|
limits_config:
|
||||||
metric_aggregation_enabled: true
|
metric_aggregation_enabled: true
|
||||||
|
|
||||||
schema_config:
|
schema_config:
|
||||||
configs:
|
configs:
|
||||||
- from: 2020-10-24
|
- from: '2020-10-24'
|
||||||
store: tsdb
|
store: tsdb
|
||||||
object_store: filesystem
|
object_store: filesystem
|
||||||
schema: v13
|
schema: v13
|
||||||
index:
|
index:
|
||||||
prefix: index_
|
prefix: index_
|
||||||
period: 24h
|
period: 24h
|
||||||
|
|
||||||
pattern_ingester:
|
pattern_ingester:
|
||||||
enabled: true
|
enabled: true
|
||||||
metric_aggregation:
|
metric_aggregation:
|
||||||
loki_address: localhost:3100
|
loki_address: localhost:3100
|
||||||
|
|
||||||
ruler:
|
ruler:
|
||||||
alertmanager_url: http://localhost:9093
|
alertmanager_url: http://localhost:9093
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
encoding: protobuf
|
encoding: protobuf
|
||||||
|
|
||||||
analytics:
|
analytics:
|
||||||
reporting_enabled: false
|
reporting_enabled: false
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
- name: Combine default and user settings, decrypt vault.
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
loki_settings: "{{ loki_default_settings |
|
||||||
|
ansible.builtin.combine(loki_settings, recursive=true) }}"
|
||||||
|
no_log: true
|
||||||
|
|
||||||
- name: Install Grafana Loki from mirror.
|
- name: Install Grafana Loki from mirror.
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
deb: "https://github.com/grafana/loki/releases\
|
deb: "https://github.com/grafana/loki/releases\
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
# Managed with Ansible
|
# Managed with Ansible
|
||||||
|
|
||||||
{{ loki_options | ansible.builtin.to_nice_yaml(indent=2, width=80) }}
|
{{ loki_settings.config | ansible.builtin.to_nice_yaml(indent=2, width=80) }}
|
||||||
|
Loading…
Reference in New Issue
Block a user