Gerapy Prometheus Exporter
This is a package for supporting Prometheus in Scrapy, also this package is a module in Gerapy.
And the source code is modified from https://github.com/rangertaha/scrapy-prometheus-exporter.
Installation
pip3 install gerapy-prometheus-exporter
Usage
Set it to settings.py:
EXTENSIONS = {
'gerapy_prometheus_exporter.extension.WebService': 500,
}
By default the extension is enabled. To disable the extension you need to set PROMETHEUS_EXPORTER_ENABLED to False.
The web server will listen on a port specified in PROMETHEUS_EXPORTER_PORT (by default, it will try to listen on port 9410)
The endpoint for accessing exported metrics is:
http://0.0.0.0:9410/metrics
Settings
These are the settings that control the metrics exporter:
PROMETHEUS_EXPORTER_ENABLED
Default: True
A boolean which specifies if the exporter will be enabled (provided its extension is also enabled).
PROMETHEUS_EXPORTER_PORT
Default: [6080]
The port to use for the web service. If set to None or 0, a dynamically assigned port is used.
PROMETHEUS_EXPORTER_HOST
Default: '0.0.0.0'
The interface the web service should listen on.
PROMETHEUS_EXPORTER_PATH
Default: 'metrics'
The url path to access exported metrics Example:
http://0.0.0.0:9410/metrics
PROMETHEUS_EXPORTER_UPDATE_INTERVAL
Default: 5
This extensions periodically collects stats for exporting. The interval in seconds between metrics updates can be controlled with this setting.
Metadata
Release files for gerapy-prometheus-exporter 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gerapy-prometheus-exporter-0.1.0.tar.gz | 5.1 kB | Without provenance | Details for gerapy-prometheus-exporter-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gerapy_prometheus_exporter-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for gerapy_prometheus_exporter-0.1.0-py2.py3-none-any.whl |
Total release size: 10.3 kB
Release files / gerapy-prometheus-exporter-0.1.0.tar.gz
| Download URL | gerapy-prometheus-exporter-0.1.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c96fab07ad841d7bd0dbf02ce53cb4f6318a62f09daf6a2d3a038358041e2d36
|
|
BLAKE2b-256 checksum How to use checksums |
9b4070440e8dbedece5718a94be43cc70126077b8b38d560e330a7d84246fc91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.22.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.7
|
Release files / gerapy_prometheus_exporter-0.1.0-py2.py3-none-any.whl
| Download URL | gerapy_prometheus_exporter-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2c9f00055e5a33c6f9ca82a684c5dc505871fc679a0ecf9f5ece369995eaf2e2
|
|
BLAKE2b-256 checksum How to use checksums |
394e93d02233c928e3b223d13651ea4f957b30e4d1bd9f97133e9e0f4bcd3fa2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.22.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.7
|
Security for gerapy-prometheus-exporter 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.