Skip to content

Commit

Permalink
main prometheus listens to log parser client
Browse files Browse the repository at this point in the history
  • Loading branch information
mishaschwartz committed Nov 5, 2024
1 parent d4e8402 commit c78408f
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion birdhouse/components/monitoring/default.env
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export GRAFANA_VERSION="7.0.3"
export GRAFANA_DOCKER=grafana/grafana
export GRAFANA_IMAGE='${GRAFANA_DOCKER}:${GRAFANA_VERSION}'

export PROMETHEUS_VERSION="v2.19.0"
export PROMETHEUS_VERSION="v2.53.3"
export PROMETHEUS_DOCKER=prom/prometheus
export PROMETHEUS_IMAGE='${PROMETHEUS_DOCKER}:${PROMETHEUS_VERSION}'

Expand Down
3 changes: 3 additions & 0 deletions birdhouse/components/monitoring/prometheus.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ scrape_configs:
- targets:
- ${BIRDHOUSE_FQDN}:9100

scrape_config_files:
- "/etc/prometheus/scrape_config.d/*.yml"

rule_files:
- "/etc/prometheus/*.rules"

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scrape_configs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.4"
services:
prometheus:
volumes:
- ./optional-components/prometheus-log-parser/config/monitoring/scrape_configs.yml:/etc/prometheus/scrape_config.d/log_parser.yml:ro
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
scrape_configs:
- job_name: log_parser
honor_labels: true
static_configs:
- targets:
- prometheus-log-parser:${PROMETHEUS_LOG_PARSER_CLIENT_PORT}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ export PROMETHEUS_LOG_PARSER_PARSERS_DIR=/parsers.d
export PROMETHEUS_LOG_PARSER_POLL_DELAY=1 # time in seconds
export PROMETHEUS_LOG_PARSER_TAIL=t

OPTIONAL_VARS="
$OPTIONAL_VARS
\$PROMETHEUS_LOG_PARSER_CLIENT_PORT
"

export DELAYED_EVAL="
$DELAYED_EVAL
PROMETHEUS_LOG_PARSER_IMAGE
Expand Down

0 comments on commit c78408f

Please sign in to comment.