Initial commit
This commit is contained in:
commit
6bf4bc1f6c
3 changed files with 51 additions and 0 deletions
35
defaults/main.yml
Normal file
35
defaults/main.yml
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
loki:
|
||||||
|
config:
|
||||||
|
auth_enabled: false
|
||||||
|
server:
|
||||||
|
http_listen_address: "127.0.0.1"
|
||||||
|
http_listen_port: 23100
|
||||||
|
grpc_listen_port: 29096
|
||||||
|
common:
|
||||||
|
path_prefix: /var/lib/grafana-loki
|
||||||
|
storage:
|
||||||
|
filesystem:
|
||||||
|
chunks_directory: /var/lib/grafana-loki/chunks
|
||||||
|
rules_directory: /var/lib/grafana-loki/rules
|
||||||
|
replication_factor: 1
|
||||||
|
ring:
|
||||||
|
instance_addr: 127.0.0.1
|
||||||
|
kvstore:
|
||||||
|
store: inmemory
|
||||||
|
schema_config:
|
||||||
|
configs:
|
||||||
|
- from: 2021-01-01
|
||||||
|
store: boltdb-shipper
|
||||||
|
object_store: filesystem
|
||||||
|
schema: v11
|
||||||
|
index:
|
||||||
|
prefix: index_
|
||||||
|
period: 24h
|
||||||
|
ruler:
|
||||||
|
alertmanager_url: http://localhost:9093
|
||||||
|
compactor:
|
||||||
|
working_directory: /var/lib/grafana-loki/compactor
|
||||||
|
retention_enabled: true
|
||||||
|
shared_store: filesystem
|
||||||
|
limits_config:
|
||||||
|
retention_period: 14d
|
||||||
4
handlers/main.yml
Normal file
4
handlers/main.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
- name: restart grafana-loki
|
||||||
|
service:
|
||||||
|
name: grafana-loki
|
||||||
|
state: restarted
|
||||||
12
tasks/main.yml
Normal file
12
tasks/main.yml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
- name: install grafana-loki
|
||||||
|
package:
|
||||||
|
name: grafana-loki
|
||||||
|
|
||||||
|
- name: write grafana-loki config
|
||||||
|
notify: restart grafana-loki
|
||||||
|
copy:
|
||||||
|
owner: root
|
||||||
|
group: grafana-loki
|
||||||
|
mode: 0640
|
||||||
|
dest: /etc/grafana-loki.yml
|
||||||
|
content: "{{ loki.config|to_nice_yaml(indent=2) }}"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue