From 0665af9b511e6d3b21a499a75d99ac5578d0298f Mon Sep 17 00:00:00 2001 From: djkhl Date: Thu, 8 Feb 2024 12:49:37 +0100 Subject: [PATCH] WIP --- quickstart/docker-compose.yml | 17 +++++++++++++++++ quickstart/exampledata/config/http_pipeline.yml | 2 +- quickstart/exampledata/config/pipeline.yml | 9 +++------ .../config/prometheus/prometheus.yml | 2 +- 4 files changed, 22 insertions(+), 8 deletions(-) diff --git a/quickstart/docker-compose.yml b/quickstart/docker-compose.yml index 40f517b2b..66aff013d 100644 --- a/quickstart/docker-compose.yml +++ b/quickstart/docker-compose.yml @@ -92,7 +92,24 @@ services: - ../quickstart/:/home/logprep/quickstart/ entrypoint: - logprep + - run - /home/logprep/quickstart/exampledata/config/pipeline.yml + http-input: + build: + context: .. + image: logprep + container_name: http-input + profiles: + - http-input + expose: + - 8002 + network_mode: host + volumes: + - ../quickstart/:/home/logprep/quickstart/ + entrypoint: + - logprep + - run + - /home/logprep/quickstart/exampledata/config/http_pipeline.yml grafana: image: bitnami/grafana:latest container_name: grafana diff --git a/quickstart/exampledata/config/http_pipeline.yml b/quickstart/exampledata/config/http_pipeline.yml index 5be5501c4..cb0c77348 100644 --- a/quickstart/exampledata/config/http_pipeline.yml +++ b/quickstart/exampledata/config/http_pipeline.yml @@ -2,7 +2,7 @@ version: 1 metrics: enabled: true - port: 8000 + port: 8002 input: httpinput: diff --git a/quickstart/exampledata/config/pipeline.yml b/quickstart/exampledata/config/pipeline.yml index 39ffaee03..7223a3b9b 100644 --- a/quickstart/exampledata/config/pipeline.yml +++ b/quickstart/exampledata/config/pipeline.yml @@ -12,8 +12,7 @@ metrics: pipeline: - dissector: type: dissector - specific_rules: - - quickstart/exampledata/rules/030_dissector/rules_specific/ + specific_rules: [] generic_rules: - quickstart/exampledata/rules/030_dissector/rules_generic/ @@ -21,8 +20,7 @@ pipeline: type: grokker specific_rules: - quickstart/exampledata/rules/035_grokker/rules_specific/ - generic_rules: - - quickstart/exampledata/rules/035_grokker/rules_generic/ + generic_rules: [] - field_manager_a: type: field_manager @@ -42,8 +40,7 @@ pipeline: type: timestamper specific_rules: - quickstart/exampledata/rules/043_timestamper/rules_specific/ - generic_rules: - - quickstart/exampledata/rules/043_timestamper/rules_generic/ + generic_rules: [] - calculator: type: calculator diff --git a/quickstart/exampledata/config/prometheus/prometheus.yml b/quickstart/exampledata/config/prometheus/prometheus.yml index 8fdd847e4..89323ff21 100644 --- a/quickstart/exampledata/config/prometheus/prometheus.yml +++ b/quickstart/exampledata/config/prometheus/prometheus.yml @@ -29,7 +29,7 @@ scrape_configs: - targets: ["localhost:9090"] - job_name: "logprep" static_configs: - - targets: ["localhost:8000", "localhost:8001"] + - targets: ["localhost:8001", "localhost:8002"] - job_name: "kafka" metrics_path: "/metrics" static_configs: