Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify LogServer, Collector and KafkaHandlers #55

Merged
merged 31 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
f94fb01
Add initial structure for clickhouse connector
lamr02n Nov 6, 2024
9c8a178
Implement tables server_logs_timestamps and failed_dns_loglines
lamr02n Nov 6, 2024
b71b778
Implement tables logline_to_batches and dns_loglines
lamr02n Nov 6, 2024
9a18b3c
Implement all tables
lamr02n Nov 7, 2024
8814160
Update clickhouse_connector.py
lamr02n Nov 7, 2024
47b71bb
Merge remote-tracking branch 'refs/remotes/origin/add-clickhouse' int…
lamr02n Nov 7, 2024
4cdf723
Fix bugs
lamr02n Nov 7, 2024
99cc5aa
Make the functionality run via Docker
lamr02n Nov 7, 2024
6fca4d2
Add monitoring_agent and update tests
lamr02n Nov 10, 2024
85161fd
Simplify Kafka Handlers and Log Server
lamr02n Nov 12, 2024
57862a5
Simplify Collector
lamr02n Nov 13, 2024
3538685
Fix Kafka handlers, LogServer and Collector
lamr02n Nov 13, 2024
729fc55
Add topics to config.yaml
lamr02n Nov 13, 2024
1ae6d90
Update .gitignore
lamr02n Nov 13, 2024
411b9ae
Update tests
lamr02n Nov 13, 2024
df4ef4b
Fix missing timer deletion in clickhouse_batch.py
lamr02n Nov 15, 2024
f1cd162
Allow inserts via monitoring_agent.py
lamr02n Nov 15, 2024
bbffd2a
Update .gitignore
lamr02n Nov 15, 2024
3ffa1ae
Update tests for collector and server
lamr02n Nov 15, 2024
a206b9e
Move clickhouse_kafka_sender.py to src/base
lamr02n Nov 15, 2024
b755838
Update tests
lamr02n Nov 17, 2024
367347b
Remove unrelated files
lamr02n Nov 20, 2024
22d4295
Remove unrelated entry in config.yaml
lamr02n Nov 20, 2024
1979bfb
Uncomment docker-compose.yml field
lamr02n Nov 20, 2024
6ab4ce8
Uncomment docker-compose.yml field
lamr02n Nov 20, 2024
6207de0
Merge remote-tracking branch 'origin/simplify-logserver-and-collector…
lamr02n Nov 20, 2024
64f1d18
Remove default.txt entries
lamr02n Nov 20, 2024
f6fbabe
Update reservations field in docker-compose.yml
lamr02n Nov 20, 2024
da31bfb
Update tests
lamr02n Nov 23, 2024
2111720
Update tests
lamr02n Nov 23, 2024
f7f842e
Fix wrong produce topic of batch_handler.py
lamr02n Nov 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ __pycache__/
*.py[cod]
*$py.class
*.pkl

# C extensions
*.so
*.html
Expand Down Expand Up @@ -320,6 +321,7 @@ dmypy.json
cython_debug/

# End of https://www.toptal.com/developers/gitignore/api/python,jupyternotebooks
/docs/api/

# Others
docs/api/
!/docs/api/index.rst
/pipeline_prototype/
12 changes: 7 additions & 5 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ logging:
pipeline:
log_storage:
logserver:
input_kafka_topic: "LogServer"
input_file: "/opt/file.txt"
max_number_of_connections: 1000

Expand Down Expand Up @@ -74,7 +73,10 @@ environment:
port: 8098
- hostname: 172.27.0.5
port: 8099
logserver:
hostname: 172.27.0.8
port_in: 9998
port_out: 9999
kafka_topics:
pipeline:
logserver_in: "pipeline.logserver_in"
logserver_to_collector: "pipeline.logserver_to_collector"
batch_sender_to_prefilter: "pipeline.batch_sender_to_prefilter"
prefilter_to_inspector: "pipeline.prefilter_to_inspector"
inspector_to_detector: "pipeline.inspector_to_detector"
4 changes: 1 addition & 3 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ services:
condition: service_healthy
clickhouse-server:
condition: service_healthy
ports:
- 9998:9998
networks:
heidgaf:
ipv4_address: 172.27.0.8
Expand Down Expand Up @@ -168,7 +166,7 @@ services:
devices:
- driver: nvidia
count: 1 # alternatively, use `count: all` for all GPUs
capabilities: [gpu]
capabilities: [ gpu ]

clickhouse-server:
image: clickhouse/clickhouse-server:24.3.12.75-alpine
Expand Down
2 changes: 1 addition & 1 deletion docker/dockerfiles/Dockerfile.logserver
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ENV PYTHONDONTWRITEBYTECODE=1
WORKDIR /usr/src/app

COPY requirements/requirements.logserver.txt ./
RUN pip --disable-pip-version-check install --no-cache-dir --no-compile -r requirements.logserver.txt
RUN pip --disable-pip-version-check install --no-cache-dir --no-compile -r requirements.logserver.txt

COPY src/base ./src/base
COPY src/logserver ./src/logserver
Expand Down
1 change: 0 additions & 1 deletion requirements/requirements.detector.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ scikit-learn~=1.5.2
requests
colorlog~=6.8.2
PyYAML~=6.0.1
colorlog~=6.8.2
confluent-kafka~=2.4.0
marshmallow_dataclass~=8.7.1
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ omit =
tests/*
version.py
src/train/*
*sandbox.py

[coverage:report]
show_missing = True
Loading
Loading