From 3006ecb1da1e7d242127e927ff6d3aaefbf7321e Mon Sep 17 00:00:00 2001 From: blockchainluffy Date: Fri, 19 Dec 2025 11:43:48 +0530 Subject: [PATCH] fix: add regex to fix promtail indentation --- shutter/promtail_config.yaml | 68 +++++++++++++++++------------------- 1 file changed, 33 insertions(+), 35 deletions(-) diff --git a/shutter/promtail_config.yaml b/shutter/promtail_config.yaml index f241855..54e83ae 100644 --- a/shutter/promtail_config.yaml +++ b/shutter/promtail_config.yaml @@ -1,46 +1,44 @@ server: http_listen_port: 9080 grpc_listen_port: 0 - positions: filename: /tmp/positions.yaml - client: url: https://logs.metrics.shutter.network/insert/loki/api/v1/push basic_auth: username: ${PUSHGATEWAY_USERNAME} password: ${PUSHGATEWAY_PASSWORD} - scrape_configs: - - job_name: configure - pipeline_stages: - - docker: - static_configs: - - targets: - - localhost - labels: - job: configure - host: ${KEYPER_NAME} - __path__: /tmp/configure.log - - - job_name: keyper - pipeline_stages: - - docker: - static_configs: - - targets: - - localhost - labels: - job: keyper - host: ${KEYPER_NAME} - __path__: /tmp/keyper.log - - - job_name: chain - pipeline_stages: - - docker: - static_configs: - - targets: - - localhost - labels: - job: chain - host: ${KEYPER_NAME} - __path__: /tmp/chain.log + - job_name: configure + pipeline_stages: + - regex: + expression: '^(?P<_msg>.*)$' + static_configs: + - targets: + - localhost + labels: + job: configure + host: ${KEYPER_NAME} + __path__: /tmp/configure.log + - job_name: keyper + pipeline_stages: + - regex: + expression: '^(?P<_msg>.*)$' + static_configs: + - targets: + - localhost + labels: + job: keyper + host: ${KEYPER_NAME} + __path__: /tmp/keyper.log + - job_name: chain + pipeline_stages: + - regex: + expression: '^(?P<_msg>.*)$' + static_configs: + - targets: + - localhost + labels: + job: chain + host: ${KEYPER_NAME} + __path__: /tmp/chain.log