summaryrefslogtreecommitdiff
path: root/net/otelcol-contrib
diff options
context:
space:
mode:
Diffstat (limited to 'net/otelcol-contrib')
-rw-r--r--net/otelcol-contrib/Makefile30
-rw-r--r--net/otelcol-contrib/distinfo3
-rw-r--r--net/otelcol-contrib/files/config.yaml41
-rw-r--r--net/otelcol-contrib/pkg-descr10
4 files changed, 84 insertions, 0 deletions
diff --git a/net/otelcol-contrib/Makefile b/net/otelcol-contrib/Makefile
new file mode 100644
index 000000000000..67c935ed3dee
--- /dev/null
+++ b/net/otelcol-contrib/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= otelcol-contrib
+PORTVERSION= 0.138.0
+CATEGORIES= net
+MASTER_SITES= https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v${PORTVERSION}/
+DISTFILES_amd64= ${PORTNAME}_${DISTVERSION}_linux_amd64.tar.gz
+
+MAINTAINER= osa@FreeBSD.org
+COMMENT= OpenTelemetry Collector Contrib
+WWW= https://github.com/open-telemetry/opentelemetry-collector-contrib/
+
+LICENSE= APACHE20
+
+ONLY_FOR_ARCHS= amd64
+
+USES= linux:rl9
+
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
+
+PLIST_FILES= bin/otelcol-contrib \
+ %%DATADIR%%/README.md \
+ %%DATADIR%%/config.yaml
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${FILESDIR}/config.yaml ${STAGEDIR}${DATADIR}
+
+.include <bsd.port.mk>
diff --git a/net/otelcol-contrib/distinfo b/net/otelcol-contrib/distinfo
new file mode 100644
index 000000000000..d2bee0c25c83
--- /dev/null
+++ b/net/otelcol-contrib/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1762041872
+SHA256 (otelcol-contrib_0.138.0_linux_amd64.tar.gz) = 9f6462ffa45829bce9e69a2995932a521e9d40f0658eddbe27f6e262c2e82b1d
+SIZE (otelcol-contrib_0.138.0_linux_amd64.tar.gz) = 90395268
diff --git a/net/otelcol-contrib/files/config.yaml b/net/otelcol-contrib/files/config.yaml
new file mode 100644
index 000000000000..15e658cdc508
--- /dev/null
+++ b/net/otelcol-contrib/files/config.yaml
@@ -0,0 +1,41 @@
+receivers:
+ nginx:
+ endpoint: "http://127.0.0.1:8080/status"
+ collection_interval: 10s
+ otlp:
+ protocols:
+ grpc:
+ endpoint: 0.0.0.0:4317
+
+exporters:
+ prometheus:
+ endpoint: 0.0.0.0:8889
+ namespace: default
+
+ debug:
+ verbosity: detailed
+
+processors:
+ batch:
+
+extensions:
+ health_check:
+ endpoint: 0.0.0.0:13133
+ pprof:
+ endpoint: 0.0.0.0:1777
+ zpages:
+ endpoint: 0.0.0.0:55679
+
+service:
+ extensions: [health_check, pprof, zpages]
+
+ pipelines:
+ metrics:
+ receivers: [nginx]
+ processors: [batch]
+ exporters: [prometheus]
+
+ traces:
+ receivers: [otlp]
+ processors: [batch]
+ exporters: [debug]
diff --git a/net/otelcol-contrib/pkg-descr b/net/otelcol-contrib/pkg-descr
new file mode 100644
index 000000000000..75782a993a40
--- /dev/null
+++ b/net/otelcol-contrib/pkg-descr
@@ -0,0 +1,10 @@
+The OpenTelemetry Collector components that are not suitable
+for the core repository of the collector.
+
+This distribution contains all the components from both the
+OpenTelemetry Collector,
+https://github.com/open-telemetry/opentelemetry-collector
+repository and the OpenTelemetry Collector Contrib,
+https://github.com/open-telemetry/opentelemetry-collector-contrib
+repository. This distribution includes open source and
+vendor supported components.