Closed msherif1234 closed 5 months ago
@msherif1234: This pull request references NETOBSERV-557 which is a valid jira issue.
Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set.
Attention: 62 lines
in your changes are missing coverage. Please review.
Comparison is base (
349fd30
) 33.53% compared to head (77d43d1
) 35.90%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@msherif1234: This pull request references NETOBSERV-557 which is a valid jira issue.
Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set.
@msherif1234: This pull request references NETOBSERV-557 which is a valid jira issue.
Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set.
@msherif1234: This pull request references NETOBSERV-557 which is a valid jira issue.
Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set.
New image: quay.io/netobserv/netobserv-ebpf-agent:1ed6690
It will expire after two weeks.
To deploy this build, run from the operator repo, assuming the operator is running:
USER=netobserv VERSION=1ed6690 make set-agent-image
p99 of lookup&delete map is kinda scary... almost 1s
p99 of lookup&delete map is kinda scary... almost 1s
is this at scale ?we know this path is most busy path and resouces hog in the agent
/approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: msherif1234
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Description
add promo metrics to eBPF agent with the ability to export metrics to promo Server
unit-test
tested locally using standalone ebpf-agent
sudo LOG_LEVEL=debug FLOWS_TARGET_HOST=127.0.0.1 FLOWS_TARGET_PORT=9999 METRICS_PROMO_ENABLE="true" ./bin/netobserv-ebpf-agent
curl 127.0.0.1:9090/metrics | grep ebpf_agent
resultsHELP ebpf_agent_hashmap_evictions Number of hashmap evictions
8# TYPE ebpf_agent_hashmap_evictions counter 8ebpf_agent_hashmap_evictions{operational="hash map evictions"} 16 06# HELP ebpf_agent_number_of_evicted_flows Number of evicted flows k# TYPE ebpf_agent_number_of_evicted_flows gauge
ebpf_agent_number_of_evicted_flows{operational="number of evicted flows"} 41
HELP ebpf_agent_number_of_flows_received_via_ring_buffer Number of flows received via ring buffer
TYPE ebpf_agent_number_of_flows_received_via_ring_buffer gauge
ebpf_agent_number_of_flows_received_via_ring_buffer{operational="number_of_flows_received"} 0
HELP ebpf_agent_number_of_records_received_by_grpc Number of records received by GRPC
TYPE ebpf_agent_number_of_records_received_by_grpc counter
ebpf_agent_number_of_records_received_by_grpc{operational="number_of_records_received_by_grpc"} 41
HELP ebpf_agent_sampling_rate Sampling rate
TYPE ebpf_agent_sampling_rate gauge
ebpf_agent_sampling_rate{operational="sampling rate"} 50
HELP ebpf_agent_time_spent_in_lookup_and_delete_map Time spent in lookup and delete map
TYPE ebpf_agent_time_spent_in_lookup_and_delete_map histogram
ebpf_agent_time_spent_in_lookup_and_delete_map_bucket{operational="time spent in lookup and delete",le="0.001"} 16 ebpf_agent_time_spent_in_lookup_and_delete_map_bucket{operational="time spent in lookup and delete",le="0.01"} 16 ebpf_agent_time_spent_in_lookup_and_delete_map_bucket{operational="time spent in lookup and delete",le="0.1"} 16 ebpf_agent_time_spent_in_lookup_and_delete_map_bucket{operational="time spent in lookup and delete",le="1"} 16 ebpf_agent_time_spent_in_lookup_and_delete_map_bucket{operational="time spent in lookup and delete",le="10"} 16 ebpf_agent_time_spent_in_lookup_and_delete_map_bucket{operational="time spent in lookup and delete",le="100"} 16 ebpf_agent_time_spent_in_lookup_and_delete_map_bucket{operational="time spent in lookup and delete",le="1000"} 16 ebpf_agent_time_spent_in_lookup_and_delete_map_bucket{operational="time spent in lookup and delete",le="10000"} 16 ebpf_agent_time_spent_in_lookup_and_delete_map_bucket{operational="time spent in lookup and delete",le="+Inf"} 16 ebpf_agent_time_spent_in_lookup_and_delete_map_sum{operational="time spent in lookup and delete"} 0.005711665 ebpf_agent_time_spent_in_lookup_and_delete_map_count{operational="time spent in lookup and delete"} 16
HELP ebpf_agent_userspace_evictions Number of userspace evictions
TYPE ebpf_agent_userspace_evictions counter
ebpf_agent_userspace_evictions{operational="user space evictions"} 0