Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
salt-formulas
fbk-formulas
Loki Formula
Commits
3005c4cf
Commit
3005c4cf
authored
Aug 13, 2019
by
Benjamin DUPUIS
Browse files
enable/disable
parent
8c32e8b0
Changes
6
Hide whitespace changes
Inline
Side-by-side
README.md
0 → 100644
View file @
3005c4cf
# Configure Loki Server
```
yaml
loki
:
server
:
enable
:
true
source
:
http://mybuildedpackage.com/loki-0.2.0.el7
source_hash
:
md5=513a2d3706b59156dc07ca6ec62d444e
install_dir
:
/opt
config
:
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
schema_config
:
configs
:
-
from
:
2018-04-15
store
:
boltdb
object_store
:
filesystem
schema
:
v9
index
:
prefix
:
index_
period
:
168h
storage_config
:
boltdb
:
directory
:
/var/lib/loki/index
filesystem
:
directory
:
/var/lib/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
:
0
table_manager
:
chunk_tables_provisioning
:
inactive_read_throughput
:
0
inactive_write_throughput
:
0
provisioned_read_throughput
:
0
provisioned_write_throughput
:
0
index_tables_provisioning
:
inactive_read_throughput
:
0
inactive_write_throughput
:
0
provisioned_read_throughput
:
0
provisioned_write_throughput
:
0
retention_deletes_enabled
:
false
retention_period
:
0
promtail
:
install_dir
:
/opt
source
:
http://mybuildedpackage.com/promtail-0.2.0.el7
source_hash
:
md5=bd0f67b1ad4f940138723d02afe4e71d
enable
:
false
```
```
yaml
# Configure Promtail
loki
:
server
:
enable
:
false
source
:
http://mybuildedpackage.com/loki-0.2.0.el7
source_hash
:
md5=513a2d3706b59156dc07ca6ec62d444e
promtail
:
install_dir
:
/opt
source
:
http://mybuildedpackage.com/promtail-0.2.0.el7
source_hash
:
md5=bd0f67b1ad4f940138723d02afe4e71d
enable
:
true
config
:
server
:
http_listen_port
:
9080
grpc_listen_port
:
0
positions
:
filename
:
/opt/promtail/positions.yaml
clients
:
-
url
:
http://localhost:3100/api/prom/push
scrape_configs
:
-
job_name
:
journal
journal
:
path
:
/run/log/journal
labels
:
job
:
systemd-journal
relabel_configs
:
-
source_labels
:
[
'
__journal__systemd_unit'
]
target_label
:
'
unit'
```
defaults.yaml
→
loki/
defaults.yaml
View file @
3005c4cf
---
loki
:
server
:
enable
:
false
source
:
http://localhost/loki-0.2.0.el7
source_hash
:
md5=513a2d3706b59156dc07ca6ec62d444e
skip_verify
:
false
install_dir
:
/opt
config
:
auth_enabled
:
false
...
...
@@ -52,6 +56,10 @@ loki:
promtail
:
install_dir
:
/opt
source
:
http://localhost/promtail-0.2.0.el7
source_hash
:
md5=bd0f67b1ad4f940138723d02afe4e71d
skip_verify
:
false
enable
:
false
config
:
server
:
http_listen_port
:
9080
...
...
init.sls
→
loki/
init.sls
View file @
3005c4cf
File moved
map.jinja
→
loki/
map.jinja
View file @
3005c4cf
File moved
promtail.sls
→
loki/
promtail.sls
View file @
3005c4cf
...
...
@@ -3,7 +3,7 @@
promtail:
user.present:
- fullname: promtail daemon
- g
roup
: root
- g
id
: root
- system: True
promtail_install_dir:
...
...
@@ -20,6 +20,8 @@ promtail_binary:
- group: root
- mode: '0755'
- source: "{{ loki.promtail.source }}"
- source_hash: "{{ loki.promtail.source_hash }}"
- skip_verify: "{{ loki.promtail.skip_verify }}"
promtail_service_file:
file.managed:
...
...
server.sls
→
loki/
server.sls
View file @
3005c4cf
...
...
@@ -18,6 +18,8 @@ loki_binary:
- group: root
- mode: '0755'
- source: "{{ loki.server.source }}"
- source_hash: "{{ loki.server.source_hash }}"
- skip_verify: "{{ loki.server.skip_verify }}"
loki_service_file:
file.managed:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment