git: 53f646758db9 - main - devel/py-opentelemetry-exporter-prometheus: New port: Prometheus Metric Exporter for OpenTelemetry
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Jul 2026 16:35:42 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=53f646758db93e4b4916d6064c130e35500e9433
commit 53f646758db93e4b4916d6064c130e35500e9433
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-07-09 16:09:27 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-07-09 16:35:37 +0000
devel/py-opentelemetry-exporter-prometheus: New port: Prometheus Metric Exporter for OpenTelemetry
---
devel/Makefile | 1 +
.../py-opentelemetry-exporter-prometheus/Makefile | 26 ++++++++++++++++++++++
.../py-opentelemetry-exporter-prometheus/distinfo | 3 +++
.../files/patch-pyproject.toml | 11 +++++++++
.../py-opentelemetry-exporter-prometheus/pkg-descr | 4 ++++
5 files changed, 45 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 936f17d77555..9701c06c070b 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5535,6 +5535,7 @@
SUBDIR += py-opentelemetry-exporter-otlp-proto-common
SUBDIR += py-opentelemetry-exporter-otlp-proto-grpc
SUBDIR += py-opentelemetry-exporter-otlp-proto-http
+ SUBDIR += py-opentelemetry-exporter-prometheus
SUBDIR += py-opentelemetry-instrumentation
SUBDIR += py-opentelemetry-instrumentation-asgi
SUBDIR += py-opentelemetry-instrumentation-dbapi
diff --git a/devel/py-opentelemetry-exporter-prometheus/Makefile b/devel/py-opentelemetry-exporter-prometheus/Makefile
new file mode 100644
index 000000000000..3cbf5598124d
--- /dev/null
+++ b/devel/py-opentelemetry-exporter-prometheus/Makefile
@@ -0,0 +1,26 @@
+PORTNAME= opentelemetry-exporter-prometheus
+DISTVERSION= 0.64b0
+CATEGORIES= devel python
+MASTER_SITES= PYPI # this doesn't work somehow
+#MASTER_SITES= https://files.pythonhosted.org/packages/97/b3/f778f705289ea5f1c54589ae4494d318c9cede052f18ca33979fda0ef016/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME:S/-/_/g}-${DISTVERSION}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Prometheus Metric Exporter for OpenTelemetry
+WWW= https://github.com/open-telemetry/opentelemetry-python/tree/main/exporter/opentelemetry-exporter-prometheus
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}opentelemetry-api>=1.12:devel/py-opentelemetry-api@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}opentelemetry-sdk>=1.42.1:devel/py-opentelemetry-sdk@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}prometheus-client>=0.5.0:net-mgmt/py-prometheus-client@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-opentelemetry-exporter-prometheus/distinfo b/devel/py-opentelemetry-exporter-prometheus/distinfo
new file mode 100644
index 000000000000..4662477aee8d
--- /dev/null
+++ b/devel/py-opentelemetry-exporter-prometheus/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1783613239
+SHA256 (opentelemetry_exporter_prometheus-0.64b0.tar.gz) = 96fec79be9527cb9dc994d7e663051df35161eb936fe2d41954725e4595abbc1
+SIZE (opentelemetry_exporter_prometheus-0.64b0.tar.gz) = 16405
diff --git a/devel/py-opentelemetry-exporter-prometheus/files/patch-pyproject.toml b/devel/py-opentelemetry-exporter-prometheus/files/patch-pyproject.toml
new file mode 100644
index 000000000000..4bf8c399a5f5
--- /dev/null
+++ b/devel/py-opentelemetry-exporter-prometheus/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig 2020-02-02 00:00:00 UTC
++++ pyproject.toml
+@@ -7,7 +7,7 @@ readme = "README.rst"
+ dynamic = ["version"]
+ description = "Prometheus Metric Exporter for OpenTelemetry"
+ readme = "README.rst"
+-license = "Apache-2.0"
++license = {text = "Apache-2.0"}
+ requires-python = ">=3.10"
+ authors = [
+ { name = "OpenTelemetry Authors", email = "cncf-opentelemetry-contributors@lists.cncf.io" },
diff --git a/devel/py-opentelemetry-exporter-prometheus/pkg-descr b/devel/py-opentelemetry-exporter-prometheus/pkg-descr
new file mode 100644
index 000000000000..851291abbf21
--- /dev/null
+++ b/devel/py-opentelemetry-exporter-prometheus/pkg-descr
@@ -0,0 +1,4 @@
+OpenTelemetry Exporter Prometheus provides a Prometheus metric exporter
+for OpenTelemetry. It enables exporting metrics collected through
+OpenTelemetry instrumentation to Prometheus for monitoring, alerting,
+and observability of Python applications.