Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions django_prometheus/db/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@

execute_total = Counter(
"django_db_execute_total",
("Counter of executed statements by database and by vendor, including" " bulk executions."),
("Counter of executed statements by database and by vendor, including bulk executions."),
["alias", "vendor"],
namespace=NAMESPACE,
)


execute_many_total = Counter(
"django_db_execute_many_total",
("Counter of executed statements in bulk operations by database and" " by vendor."),
("Counter of executed statements in bulk operations by database and by vendor."),
["alias", "vendor"],
namespace=NAMESPACE,
)
Expand Down
2 changes: 1 addition & 1 deletion django_prometheus/exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def SetupPrometheusEndpointOnPortRange(port_range, addr=""):
thread.start()
logger.info("Exporting Prometheus /metrics/ on port %s" % port)
return port # Stop trying ports at this point
logger.warning("Cannot export Prometheus /metrics/ - " "no available ports in supplied range")
logger.warning("Cannot export Prometheus /metrics/ - no available ports in supplied range")
return None


Expand Down
2 changes: 1 addition & 1 deletion django_prometheus/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def register(self):
self.requests_latency_before = self.register_metric(
Histogram,
"django_http_requests_latency_including_middlewares_seconds",
("Histogram of requests processing time (including middleware " "processing time)."),
("Histogram of requests processing time (including middleware processing time)."),
buckets=PROMETHEUS_LATENCY_BUCKETS,
namespace=NAMESPACE,
)
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ commands =

[testenv:py39-lint]
deps =
ruff==0.8.2
ruff==0.11.13
commands =
ruff format --check django_prometheus/
ruff check django_prometheus/