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

feat(backend): add opentelemetry backend in orb-agent, policies. #2780

Merged
Changes from 1 commit
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
31b3f1f
chore: wip work on otel backend.
Aug 3, 2023
0d0808f
chore: use otel v.0.81.0 to not break the api.
Aug 7, 2023
54c6de1
feat(agent): wip otel backend.
Aug 7, 2023
08c1390
feat(agent): wip otel backend.
Aug 7, 2023
02f596e
feat(agent): add makefile and started work to import and run executab…
Aug 8, 2023
c9bfb76
feat(agent): add gitignore to ignore the binary files in github.
Aug 8, 2023
c6c156e
feat(agent): implement version method.
Aug 8, 2023
763209a
feat(agent): implement add and start testing to control policies.
Aug 8, 2023
75ee97c
feat(agent): implement add and start testing to control policies.
Aug 10, 2023
3997dea
feat(agent): fix behaviors and implement missing features.
Aug 14, 2023
ec49822
feat(agent): add otel registered backend.
Aug 14, 2023
aaad3b4
feat(agent): fix configuration pass-through.
Aug 14, 2023
489d9b9
feat(agent): fix configuration pass-through.
Aug 14, 2023
218206f
feat(agent): add sample policy.
Aug 14, 2023
c0c90f0
feat(agent): fix apply policy behaviour.
Aug 14, 2023
96ed0c7
feat(agent): add default configurations to inside pktvisor code, remo…
Aug 15, 2023
aa7482d
feat(agent): wip try to fix startup.
Aug 15, 2023
2567e65
feat(agent): wip try to fix startup.
Aug 16, 2023
db02c74
feat(agent): wip try to fix startup.
Aug 16, 2023
2891677
feat(agent): fix startup and multiple routines working the same execu…
Aug 17, 2023
536a943
feat(agent): implement configuration passing to temporary file.
Aug 17, 2023
b34aa0a
feat(agent): swapping from go-memexec to previously used go-cmd.
Aug 18, 2023
803d06d
feat(agent): add build and fix make agent_full goal to contemplate ot…
Aug 22, 2023
09b7691
feat(agent): add build and fix make agent_full goal to contemplate ot…
Aug 22, 2023
fbfd144
feat(agent): fix build with Dockerfile.
Aug 23, 2023
8553f24
feat(agent): swapping from go-memexec to previously used go-cmd.
Aug 18, 2023
5b848ce
feat(agent): removing debug and build helping flags.
Aug 23, 2023
35b4fd0
feat(agent): wip
Aug 25, 2023
ca0e49f
Merge branch 'develop' into poc/otel-backend
Oct 12, 2023
030b88d
feat(mod): update libs.
Oct 12, 2023
517fe15
feat(agent): update agent otel dependencies changes.
Oct 12, 2023
4fe89a8
feat(maestro): update agent otel dependencies changes.
Oct 12, 2023
54a48aa
feat(agent): log identation.
Oct 12, 2023
75343bc
feat(agent): fix version.
Oct 12, 2023
886de73
remove file
Aug 25, 2023
399452b
feat(agent): fix build with Dockerfile.
Aug 28, 2023
ee83138
feat(maestro): standardize log references.
Aug 29, 2023
eded89d
feat(agent): fix typing warnings.
Oct 16, 2023
086d465
feat(agent): fix options on go-cmd.
Oct 16, 2023
5013ffb
feat(policies): explain validate.
Oct 18, 2023
6fd657e
feat(maestro): update collector version.
Oct 18, 2023
3f702b3
feat(agent): add validate policy in agent.
Oct 18, 2023
5a9f704
feat(agent): update sample.
Oct 19, 2023
46c75aa
feat(sinker): update otel.
Oct 19, 2023
57600a7
feat(sinker): update otel.
Oct 19, 2023
283afdd
fix(maestro): conflict fix.
Oct 20, 2023
04d5645
fix(policies): add otel backend register.
Oct 20, 2023
57c9c5d
feat(policies): pass yaml instead of json for otel yaml policies.
Oct 20, 2023
6c499af
feat(agent): otel validate policy will bypass for now, until it is in…
Oct 20, 2023
0268917
feat(policies): add todo explaining unwanted check.
Oct 20, 2023
140e149
feat(agent): fix agent to receive policy.
Oct 20, 2023
ab8275c
feat(agent): fix agent to receive policy.
Oct 20, 2023
b6ac37f
fix(policies): add return data for yaml in retrieve policies per group.
Oct 20, 2023
5e1d255
fix(policies): fix yaml marshaling.
Oct 20, 2023
5abe9b0
fix(agent): fix receiveOTLP on otel backend.
Oct 20, 2023
b8cb1c8
fix(agent): fix receiveOTLP on otel backend.
Oct 20, 2023
b288373
fix(agent): fix receiveOTLP on otel backend.
Oct 20, 2023
34e2304
fix(agent): fix cmd options for streaming.
Oct 20, 2023
5cdebd8
fix(fleet): add backend to be able to create policy on UI.
Oct 20, 2023
9b3dfe7
fix(agent): fix cmd options for streaming.
Oct 24, 2023
bb96507
fix(agent): fixed receiver host and port for now.
Oct 24, 2023
4aa0d36
fix(fleet): rename.
Oct 25, 2023
1cd60d2
fix(agent): make the agent wait until the receiver start to apply pol…
Oct 25, 2023
ab153e2
fix(agent): create a backend ready for comms creation in parallel.
Oct 25, 2023
49659bf
fix(agent): create a backend ready for comms creation in parallel.
Oct 25, 2023
fe6946b
fix(agent): remove custom endpoints.
Oct 25, 2023
ed08170
fix(agent): fix connection between otel-backend and orb-agent.
Oct 31, 2023
e534c71
fix(agent): fix connection between otel-backend and orb-agent.
Oct 31, 2023
ca2e1e0
fix(agent): fix mqtt connection.
Oct 31, 2023
cfb4bf3
fix(agent): change 0.0.0.0 to localhost which limits the interface.
Oct 31, 2023
e2b3422
feat(agent): change policyName to instead of being to scope.Name(), t…
Oct 31, 2023
eb1c5b5
feat(agent): WIP
Oct 31, 2023
a72bbd1
feat(agent): add struct parse to otel configuration.
Nov 1, 2023
9d9829f
feat(agent): add test.
Nov 1, 2023
2b5bb7b
feat(agent): add piece to call the builder to merge with default struct.
Nov 1, 2023
84c30be
feat(agent): add correct metrics and scope attributes to pass policy-…
Nov 2, 2023
960b4e1
feat(agent): fix unit tests.
Nov 2, 2023
11a4c67
feat(agent): add missing libs.
Nov 2, 2023
e1437fe
fix(agent): fix agent id on reset.
Nov 7, 2023
4dce958
fix(agent): fix agent id on reset.
Nov 8, 2023
d3a1dd5
fix(agent): standardize the env var naming.
Nov 8, 2023
d2a303f
fix(agent): clean up.
Nov 8, 2023
011ce30
Update policies/backend/otel/otel.go
lpegoraro Nov 8, 2023
7809bf6
fix(fleet): clean up.
Nov 13, 2023
e2ee4a7
:Merge branch 'eng-1056-orb-policies-opentelemetry-configuration' of …
Nov 13, 2023
cfe5291
fix(agent): clean up and fix order of startup.
Nov 14, 2023
25b1232
fix(agent): clean up.
Nov 14, 2023
a990fe3
fix(agent): clean up.
Nov 14, 2023
561f207
fix(agent): rollback fullreset as it was before fixing reset.
Nov 14, 2023
ea2b9ff
fix(agent): attempt to fix communication between reset from orb agent…
Nov 14, 2023
e0a88c6
fix(agent): add more scrape info on opentelemetry to fix reset action…
Nov 14, 2023
0aa7afb
fix(agent): add run configuration and fix version change on otlprecei…
Nov 15, 2023
3fc0fdf
fix(agent): inverted boolean return to improve readability.
Nov 15, 2023
abb162c
fix(agent): inverted boolean return to improve readability.
Nov 15, 2023
113db6d
fix(agent): fixed nil function reference error.
Nov 15, 2023
6ed419c
fix(agent): fixed nil function reference error.
Nov 15, 2023
042548e
[pktvisor] add missing ReportComponentStatus
mfiedorowicz Nov 15, 2023
25dc98d
Merge remote-tracking branch 'origin/eng-1056-orb-policies-openteleme…
mfiedorowicz Nov 15, 2023
489906a
Update agent/backend/otel/otel.go
lpegoraro Nov 15, 2023
ebebf95
fix(agent): fix indentation.
Nov 15, 2023
b0a8f14
fix(agent): moved the heartbeat to correct order on reset.
Nov 15, 2023
894eff2
fix(agent): fix otlpmqtt exporter traces, metrics, logs.
Nov 16, 2023
c348e7c
[pktvisor] re-add pktvisor backend defaults
mfiedorowicz Nov 16, 2023
9ed019a
fix(agent): remove logs and traces and focus on metrics for now.
Nov 16, 2023
aee6a5e
fix(agent): replace defaults in pktvisor to instead of setting the de…
Nov 16, 2023
1d3d96b
fix(agent): add mechanism to enable multiple policies, because teleme…
Nov 16, 2023
6d1679f
fix(agent): add mechanism to enable multiple policies, because teleme…
Nov 16, 2023
6896f39
fix(agent): add mechanism to enable multiple policies, because teleme…
Nov 16, 2023
7f021c2
fix(agent): fix unit test.
Nov 16, 2023
323c5a6
Update agent/backend/otel/policy.go
lpegoraro Nov 16, 2023
1fa1718
fix(agent): fix url build.
Nov 16, 2023
9a08d79
fix(agent): readd debug.
Nov 16, 2023
1b3de08
Apply suggestions from code review
lpegoraro Nov 16, 2023
6b2556e
fix(agent): err scope.
Nov 16, 2023
e02b92a
Apply suggestions from code review
lpegoraro Nov 16, 2023
3056bbd
fix(agent): apply code review changes.
Nov 16, 2023
5b17f69
fix(agent): fix err scope.
Nov 16, 2023
35f4efd
fix(agent): fix import err.
Nov 16, 2023
ca04d9d
fix download of otelcol-contrib
mfiedorowicz Nov 17, 2023
9584351
simplify/minimise Dockerfile.full
mfiedorowicz Nov 17, 2023
b45e3b9
chore(mod): update and merge dependencies.
Nov 17, 2023
02078db
Merge branch 'develop' into eng-1056-orb-policies-opentelemetry-confi…
Nov 17, 2023
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
Prev Previous commit
Next Next commit
[pktvisor] re-add pktvisor backend defaults
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
  • Loading branch information
mfiedorowicz committed Nov 16, 2023
commit c348e7c4bbd40c16859d8002b23b6635968317e9
5 changes: 5 additions & 0 deletions cmd/agent/main.go
Original file line number Diff line number Diff line change
@@ -152,6 +152,11 @@ func mergeOrError(path string) {
v.SetDefault("orb.otel.port", 0)
v.SetDefault("orb.debug.enable", Debug)

v.SetDefault("orb.backends.pktvisor.binary", "/usr/local/sbin/pktvisord")
v.SetDefault("orb.backends.pktvisor.config_file", "/opt/orb/agent.yaml")
v.SetDefault("orb.backends.pktvisor.api_host", "localhost")
v.SetDefault("orb.backends.pktvisor.api_port", "10853")

if len(path) > 0 {
cobra.CheckErr(v.ReadInConfig())
}