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

create systemd unit example #59

Merged
merged 1 commit into from
Oct 6, 2022
Merged

Conversation

joewilliams
Copy link
Contributor

I am interested in running this under systemd rather than inside kube. This PR includes an example systemd unit file and environment config file.

joe@dev:~$ sudo systemctl status netobserv-ebpf-agent
● netobserv-ebpf-agent.service - Netobserv eBPF Agent
     Loaded: loaded (/lib/systemd/system/netobserv-ebpf-agent.service; disabled; preset: enabled)
     Active: active (running) since Wed 2022-10-05 18:26:05 UTC; 1s ago
   Main PID: 20013 (netobserv-ebpf-)
      Tasks: 8 (limit: 2173)
     Memory: 20.8M
        CPU: 17ms
     CGroup: /system.slice/netobserv-ebpf-agent.service
             └─20013 /opt/netobserv-ebpf-agent/bin/netobserv-ebpf-agent

Oct 05 18:26:05 dev systemd[1]: Started Netobserv eBPF Agent.
Oct 05 18:26:05 dev netobserv-ebpf-agent[20013]: time="2022-10-05T18:26:05Z" level=info msg="starting NetObserv eBPF Agent"
Oct 05 18:26:05 dev netobserv-ebpf-agent[20013]: time="2022-10-05T18:26:05Z" level=info msg="initializing Flows agent" component=agent.Flows
Oct 05 18:26:05 dev netobserv-ebpf-agent[20013]: time="2022-10-05T18:26:05Z" level=info msg="push CTRL+C or send SIGTERM to interrupt execution"
Oct 05 18:26:05 dev netobserv-ebpf-agent[20013]: time="2022-10-05T18:26:05Z" level=info msg="starting Flows agent" component=agent.Flows
Oct 05 18:26:05 dev netobserv-ebpf-agent[20013]: time="2022-10-05T18:26:05Z" level=info msg="Flows agent successfully started" component=agent.Flows
Oct 05 18:26:05 dev netobserv-ebpf-agent[20013]: time="2022-10-05T18:26:05Z" level=info msg="interface detected. Registering flow tracer" component=agent.Flows interface="{enp0s3 2}"
Oct 05 18:26:05 dev netobserv-ebpf-agent[20013]: time="2022-10-05T18:26:05Z" level=warning msg="qdisc clsact already existed. Deleted it" component=ebpf.FlowTracer iface="{enp0s3 2}"
Oct 05 18:26:05 dev netobserv-ebpf-agent[20013]: time="2022-10-05T18:26:05Z" level=info msg="interface detected. Registering flow tracer" component=agent.Flows interface="{docker0 3}"
Oct 05 18:26:05 dev netobserv-ebpf-agent[20013]: time="2022-10-05T18:26:05Z" level=warning msg="qdisc clsact already existed. Deleted it" component=ebpf.FlowTracer iface="{docker0 3}"

Copy link
Member

@jotak jotak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm and I don't have any objection for that. Thanks @joewilliams !

cc @mariomac

@mariomac
Copy link

mariomac commented Oct 6, 2022

No objections! Thank you for the contribution!

@codecov-commenter
Copy link

Codecov Report

Merging #59 (70ca405) into main (24af5a5) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #59   +/-   ##
=======================================
  Coverage   34.76%   34.76%           
=======================================
  Files          19       19           
  Lines        1300     1300           
=======================================
  Hits          452      452           
  Misses        829      829           
  Partials       19       19           
Flag Coverage Δ
unittests 34.76% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants