![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Prometheus metrics for arq
⚠️ WARNING! This is a project in alpha phase ⚠️
pip install -U arq-prometheus
poetry add arq-prometheus
The metrics exposed are the same as the health check.
Metric name | Description |
---|---|
arq_jobs_completed | The number of jobs completed |
arq_jobs_failed | The total number of errored jobs |
arq_jobs_retried | The total number of retried jobs |
arq_ongoing_jobs | The number of jobs in progress |
arq_queued_inprogress | The number of jobs in progress |
When working with arq
I found some limitations, it was specially hard to get access to
the worker in order to retrieve information like the queue_name
or health_check_key
.
The startup and shutdown functions only make available a ctx
with the redis connection.
This means that if you provide a custom queue_name
or health_check_key
, you will
also have to provide them to ArqPrometheusMetrics
.
# example_worker.py
from arq_prometheus import ArqPrometheusMetrics
async def startup(ctx):
arq_prometheus = ArqPrometheusMetrics(ctx, delay=delay)
ctx["arq_prometheus"] = await arq_prometheus.start()
async def shutdown(ctx):
await ctx["arq_prometheus"].stop()
class WorkerSettings:
on_startup = startup
on_shutdown = shutdown
function = [] # your arq jobs
... # other settings
Start your arq worker,
arq example_worker.WorkerSettings
Make request to localhost:8081
(or open in browser).
curl localhost:8081
ctx: dict
: arq contextqueue_name: str = default_queue_name
: name of the arq queuehealth_check_key: Optional[str] = None
: arq health keydelay: datetime.timedelta = datetime.timedelta(seconds=5)
: a datetime.timedeltaenable_webserver: bool = True
: set to True if you want a web server exposing the metricsaddr: str = "0.0.0.0"
: webserver addressport: int = 8081
: webserver portregistry: prom.CollectorRegistry = prom.REGISTRY
: the prometheus registry, usually you do not have to override thisFAQs
Prometheus metrics for arq job queues
We found that arq-prometheus demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.