mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
New port: www/py-django-prometheus
This library exports Django monitoring metrics for Prometheus.io. It provides support to monitor the following databases types: * SQLite (via Django) * PostgreSQL * MySQL In addition, caches can also be monitored: * memcached * Redis It's even possible to export metrics of Django models and migrations. WWW: https://github.com/korfuri/django-prometheus Approved by: mentors (implicit)
This commit is contained in:
parent
a6a7ea1912
commit
d1c99b75eb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=500444
@ -1589,6 +1589,7 @@
|
||||
SUBDIR += py-django-pipeline
|
||||
SUBDIR += py-django-post_office
|
||||
SUBDIR += py-django-profiles
|
||||
SUBDIR += py-django-prometheus
|
||||
SUBDIR += py-django-pyscss
|
||||
SUBDIR += py-django-ranged-response
|
||||
SUBDIR += py-django-recaptcha
|
||||
|
33
www/py-django-prometheus/Makefile
Normal file
33
www/py-django-prometheus/Makefile
Normal file
@ -0,0 +1,33 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= django-prometheus
|
||||
PORTVERSION= 1.0.15
|
||||
CATEGORIES= www python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= kai@FreeBSD.org
|
||||
COMMENT= Export Django monitoring metrics for Prometheus.io
|
||||
|
||||
LICENSE= APACHE20
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django111>=1.8:www/py-django111@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}prometheus-client>=0.0.21:net-mgmt/py-prometheus-client@${PY_FLAVOR}
|
||||
|
||||
USES= python
|
||||
USE_PYTHON= autoplist distutils
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
OPTIONS_GROUP= DATABASE CACHE
|
||||
OPTIONS_GROUP_DATABASE= MYSQL PGSQL
|
||||
OPTIONS_GROUP_CACHE= MEMCACHED REDIS
|
||||
|
||||
MEMCACHED_DESC= Memcached distributed memory caching support
|
||||
|
||||
MEMCACHED_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python-memcached>=0:databases/py-python-memcached@${PY_FLAVOR}
|
||||
MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mysqlclient>=0:databases/py-mysqlclient@${PY_FLAVOR}
|
||||
PGSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>=0:databases/py-psycopg2@${PY_FLAVOR}
|
||||
REDIS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django-redis>=4.8:www/py-django-redis@${PY_FLAVOR}
|
||||
|
||||
.include <bsd.port.mk>
|
3
www/py-django-prometheus/distinfo
Normal file
3
www/py-django-prometheus/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1556181024
|
||||
SHA256 (django-prometheus-1.0.15.tar.gz) = e8da2eb91cb20cfe0b8130305d34f3503766b7a08a244ce1031c36136beeb7a5
|
||||
SIZE (django-prometheus-1.0.15.tar.gz) = 13708
|
16
www/py-django-prometheus/pkg-descr
Normal file
16
www/py-django-prometheus/pkg-descr
Normal file
@ -0,0 +1,16 @@
|
||||
This library exports Django monitoring metrics for Prometheus.io.
|
||||
|
||||
It provides support to monitor the following databases types:
|
||||
|
||||
* SQLite (via Django)
|
||||
* PostgreSQL
|
||||
* MySQL
|
||||
|
||||
In addition, caches can also be monitored:
|
||||
|
||||
* memcached
|
||||
* Redis
|
||||
|
||||
It's even possible to export metrics of Django models and migrations.
|
||||
|
||||
WWW: https://github.com/korfuri/django-prometheus
|
Loading…
Reference in New Issue
Block a user