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

Sysdig Exporter #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
16 changes: 16 additions & 0 deletions .chloggen/sysdigexporter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: new_component

# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
component: exporter/sysdigexporter

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Add a new sysdig exporter to send prom metrics to Sysdig backend

# One or more tracking issues related to the change
issues: []
Copy link
Author

Choose a reason for hiding this comment

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

the issue can be added after we open one with OTEL OSS


# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ exporter/sentryexporter/ @open-telemetry/collect
exporter/signalfxexporter/ @open-telemetry/collector-contrib-approvers @pmcollins @dmitryax
exporter/skywalkingexporter/ @open-telemetry/collector-contrib-approvers @liqiangz
exporter/splunkhecexporter/ @open-telemetry/collector-contrib-approvers @atoulme @dmitryax
exporter/sysdigexporter/ @open-telemetry/collector-contrib-approvers @mms2409
exporter/sumologicexporter/ @open-telemetry/collector-contrib-approvers @sumo-drosiek
exporter/tanzuobservabilityexporter/ @open-telemetry/collector-contrib-approvers @oppegard @thepeterstone @keep94
exporter/tencentcloudlogserviceexporter/ @open-telemetry/collector-contrib-approvers @wgliang @yiyang5055
Expand Down Expand Up @@ -122,6 +123,7 @@ pkg/translator/opencensus/ @open-telemetry/collect
pkg/translator/prometheus/ @open-telemetry/collector-contrib-approvers @dashpole @bertysentry
pkg/translator/prometheusremotewrite/ @open-telemetry/collector-contrib-approvers @Aneurysm9 @kovrus
pkg/translator/signalfx/ @open-telemetry/collector-contrib-approvers @pmcollins @pjanotti @dmitryax
pkg/translator/sysdig/ @open-telemetry/collector-contrib-approvers @mms2409
pkg/translator/zipkin/ @open-telemetry/collector-contrib-approvers @open-telemetry/collector-approvers
pkg/winperfcounters/ @open-telemetry/collector-contrib-approvers @dashpole @mrod1598 @binaryfissiongames
pkg/batchperresourceattr/ @open-telemetry/collector-contrib-approvers @atoulme @dmitryax
Expand Down
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ body:
- exporter/skywalking
- exporter/splunkhec
- exporter/sumologic
- exporter/sysdig
- exporter/tanzuobservability
- exporter/tencentcloudlogservice
- exporter/zipkin
Expand Down Expand Up @@ -114,6 +115,7 @@ body:
- pkg/translator/prometheus
- pkg/translator/prometheusremotewrite
- pkg/translator/signalfx
- pkg/translator/sysdig
- pkg/translator/zipkin
- pkg/winperfcounters
- processor/attributes
Expand Down
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ body:
- exporter/skywalking
- exporter/splunkhec
- exporter/sumologic
- exporter/sysdig
- exporter/tanzuobservability
- exporter/tencentcloudlogservice
- exporter/zipkin
Expand Down Expand Up @@ -108,6 +109,7 @@ body:
- pkg/translator/prometheus
- pkg/translator/prometheusremotewrite
- pkg/translator/signalfx
- pkg/translator/sysdig
- pkg/translator/zipkin
- pkg/winperfcounters
- processor/attributes
Expand Down
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/other.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ body:
- exporter/skywalking
- exporter/splunkhec
- exporter/sumologic
- exporter/sysdig
- exporter/tanzuobservability
- exporter/tencentcloudlogservice
- exporter/zipkin
Expand Down Expand Up @@ -108,6 +109,7 @@ body:
- pkg/translator/prometheus
- pkg/translator/prometheusremotewrite
- pkg/translator/signalfx
- pkg/translator/sysdig
- pkg/translator/zipkin
- pkg/winperfcounters
- processor/attributes
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ run:
.PHONY: docker-component # Not intended to be used directly
docker-component: check-component
GOOS=linux GOARCH=amd64 $(MAKE) $(COMPONENT)
cp ./bin/$(COMPONENT)_linux_amd64 ./cmd/$(COMPONENT)/$(COMPONENT)
docker build -t $(COMPONENT) ./cmd/$(COMPONENT)/
rm ./cmd/$(COMPONENT)/$(COMPONENT)
cp ./otel/sysdig-otel ./cmd/$(COMPONENT)/$(COMPONENT)
docker build --no-cache -t $(COMPONENT) ./cmd/$(COMPONENT)/
#rm ./cmd/$(COMPONENT)/$(COMPONENT)

.PHONY: check-component
check-component:
Expand Down
6 changes: 6 additions & 0 deletions cmd/configschema/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/sapmexporter v0.72.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/sentryexporter v0.72.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter v0.72.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/sysdigexporter v0.72.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/skywalkingexporter v0.72.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/splunkhecexporter v0.72.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/sumologicexporter v0.72.0 // indirect
Expand Down Expand Up @@ -88,6 +89,7 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/prometheus v0.72.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/prometheusremotewrite v0.72.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/signalfx v0.72.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/sysdig v0.72.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/zipkin v0.72.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor v0.72.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/processor/cumulativetodeltaprocessor v0.72.0 // indirect
Expand Down Expand Up @@ -1039,3 +1041,7 @@ replace github.com/open-telemetry/opentelemetry-collector-contrib/internal/filte
retract v0.65.0

replace github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sshcheckreceiver => ../../receiver/sshcheckreceiver

replace github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/sysdig => ../../pkg/translator/sysdig

replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/sysdigexporter => ../../exporter/sysdigexporter
5 changes: 3 additions & 2 deletions cmd/otelcontribcol/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ FROM alpine:latest as prep
RUN apk --update add ca-certificates
Copy link
Author

Choose a reason for hiding this comment

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

ignore this file


RUN mkdir -p /tmp
RUN apk add bash

FROM scratch
#FROM scratch

ARG USER_UID=10001
USER ${USER_UID}

COPY --from=prep /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
#COPY --from=prep /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY otelcontribcol /
EXPOSE 4317 55680 55679
ENTRYPOINT ["/otelcontribcol"]
Expand Down
Loading