Configuration
server:
http_listen_network: tcp
http_listen_address: ""
http_listen_port: 9080
http_listen_conn_limit: 0
grpc_listen_network: tcp
grpc_listen_address: ""
grpc_listen_port: 9095
grpc_listen_conn_limit: 0
tls_cipher_suites: ""
tls_min_version: ""
http_tls_config:
cert_file: ""
key_file: ""
client_auth_type: ""
client_ca_file: ""
grpc_tls_config:
cert_file: ""
key_file: ""
client_auth_type: ""
client_ca_file: ""
register_instrumentation: true
graceful_shutdown_timeout: 30s
http_server_read_timeout: 30s
http_server_write_timeout: 30s
http_server_idle_timeout: 2m0s
grpc_server_max_recv_msg_size: 4194304
grpc_server_max_send_msg_size: 4194304
grpc_server_max_concurrent_streams: 100
grpc_server_max_connection_idle: 2562047h47m16.854775807s
grpc_server_max_connection_age: 2562047h47m16.854775807s
grpc_server_max_connection_age_grace: 2562047h47m16.854775807s
grpc_server_keepalive_time: 2h0m0s
grpc_server_keepalive_timeout: 20s
grpc_server_min_time_between_pings: 5m0s
grpc_server_ping_without_stream_allowed: false
log_format: logfmt
log_level: info
log_source_ips_enabled: false
log_source_ips_header: ""
log_source_ips_regex: ""
log_request_at_info_level_enabled: false
http_path_prefix: ""
external_url: ""
health_check_target: null
disable: false
profiling_enabled: false
enable_runtime_reload: false
client:
url: ""
batchwait: 1s
batchsize: 1048576
follow_redirects: false
enable_http2: false
backoff_config:
min_period: 500ms
max_period: 5m0s
max_retries: 10
timeout: 10s
tenant_id: ""
drop_rate_limited_batches: false
stream_lag_labels: ""
clients:
- url: http://argus-loki.service.consul:3100/loki/api/v1/push
batchwait: 1s
batchsize: 1048576
follow_redirects: false
enable_http2: false
backoff_config:
min_period: 500ms
max_period: 5m0s
max_retries: 10
timeout: 10s
tenant_id: promtail
drop_rate_limited_batches: false
stream_lag_labels: ""
positions:
sync_period: 10s
filename: /var/lib/promtail/positions.yml
ignore_invalid_yaml: false
scrape_configs:
- job_name: file_sd
static_configs: []
file_sd_configs:
- files:
- /etc/promtail/file_sd/*.yml
- /etc/promtail/file_sd/*.yaml
- /etc/promtail/file_sd/*.json
refresh_interval: 5m
- job_name: systemd-journal
journal:
max_age: ""
json: false
labels:
job: systemd-journal
path: /var/log/journal
matches: ""
relabel_configs:
- source_labels: [__journal__systemd_unit]
separator: ;
regex: (.*)
target_label: service
replacement: $1
action: replace
- source_labels: [__journal__hostname]
separator: ;
regex: (.*)
target_label: hostname
replacement: $1
action: replace
- source_labels: [service]
separator: ;
regex: (nomad|consul|ssh)\.service
replacement: $1
action: keep
static_configs: []
- job_name: nomad-jobs
pipeline_stages:
- labeldrop:
- filename
- metrics:
log_lines_total:
config:
action: inc
match_all: true
description: total number of log lines
max_idle_duration: 24h
prefix: my_promtail_custom_
type: Counter
- regex:
expression: ^.* error discovering (?P<service_name>.*?) active.*$
- metrics:
error_discovery_services:
config:
action: inc
description: error discovery services
max_idle_duration: 10s
prefix: my_promtail_custom_
source: service_name
type: Counter
- regex:
expression: ^.* ReclaimableSpace=(?P<space>.*?)GB.*$
- labels:
instance: null
- labeldrop:
- task_id
- metrics:
reclaimable_space:
config:
action: add
description: reclaimable space
max_idle_duration: 10s
prefix: my_promtail_custom_
source: space
type: Counter
- match:
selector: '{job="gnosis-mainnet-nonarchival-metrics"}'
stages:
- regex:
expression: ^.* Unable to rent an instance of IEthRpcModule.*$
- metrics:
nethermind_unable_to_rent_an_instance_error:
config:
action: inc
match_all: true
description: 'Nethermind: unable to rent an instance'
max_idle_duration: 1h
prefix: my_promtail_custom_
type: Counter
- match:
selector: '{job="lighthouse-metrics", instance=~".*-mainnet-.*"} |= "Attestation
queue full"'
stages:
- regex:
expression: ^.*$
- metrics:
ligthhouse_queeu_full_error_counter:
config:
action: inc
match_all: true
description: Lighthouse attestation queue full error
max_idle_duration: 1h
prefix: my_promtail_custom_
type: Counter
relabel_configs:
- source_labels: [__meta_consul_tags]
separator: ;
regex: .*promtail-target.*
replacement: $1
action: keep
- source_labels: [__meta_consul_node]
separator: ;
regex: (.*)
target_label: __host__
replacement: $1
action: replace
- source_labels: [__meta_consul_service_id]
separator: ;
regex: _nomad-task-([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})-.*
target_label: task_id
replacement: $1
action: replace
- source_labels: [__meta_consul_service]
separator: ;
regex: (.*)
target_label: job
replacement: $1
action: replace
- source_labels: [__meta_consul_node]
separator: ;
regex: (.*)
target_label: instance
replacement: $1
action: replace
- source_labels: [__meta_consul_service_id]
separator: ;
regex: _nomad-task-([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})-.*
target_label: __path__
replacement: /var/nomad/alloc/$1/alloc/logs/*std*
action: replace
- source_labels: [__meta_consul_service_id]
separator: ;
regex: _nomad-task-([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})-.*
target_label: __path_exclude__
replacement: /var/nomad/alloc/$1/alloc/logs/*std*.fifo
action: replace
static_configs: []
consul_sd_configs:
- server: consul.service.consul:8500
tag_separator: ','
scheme: http
allow_stale: true
refresh_interval: 30s
follow_redirects: true
enable_http2: true
target_config:
sync_period: 10s
stdin: false
limits_config:
readline_rate: 10000
readline_burst: 10000
readline_rate_drop: true
max_streams: 0
max_line_size: 0
max_line_size_truncate: false
tracing:
enabled: true
wal:
enabled: false
dir: ""
cleanSegmentsOlderThan: 0s