Skip to content

Commit

Permalink
add manual data collection example
Browse files Browse the repository at this point in the history
  • Loading branch information
Limmen committed Feb 13, 2024
1 parent d0ffa31 commit e76370a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/data_collection/manual_sequences/level_9/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
# Collect measurements
time_series = ClusterController.get_execution_time_series_data(
ip=execution.emulation_env_config.kafka_config.container.physical_host_ip,
port=constants.GRPC_SERVERS.CLUSTER_MANAGER_PORT, minutes=1,
port=constants.GRPC_SERVERS.CLUSTER_MANAGER_PORT, minutes=duration_minutes,
ip_first_octet=execution.ip_first_octet, emulation=execution.emulation_env_config.name)

Logger.__call__().get_logger().info("Data collection complete")
Expand All @@ -79,6 +79,7 @@
aggregate_snort_metrics = time_series.agg_snort_ids_metrics[0]
for i in range(1, len(time_series.agg_snort_ids_metrics)):
aggregate_snort_metrics.add(time_series.agg_snort_ids_metrics[i])

data["snort_metrics"].append(aggregate_snort_metrics.to_dict())
data["attacker_ips"].append(ip)
data["attacker_cmds"].append(cmd)
Expand Down

0 comments on commit e76370a

Please sign in to comment.