Skip to content

Commit

Permalink
Fix routing issue with a2a3fb9
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed May 4, 2023
1 parent a2a3fb9 commit 85359f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion emmett_prometheus/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.4"
__version__ = "0.1.5"
7 changes: 5 additions & 2 deletions emmett_prometheus/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,15 @@ def on_load(self):
self._pipe_ws = PrometheusWSPipe(self)

if self.config.auto_load:
self.appmod = self.app.module(__name__, "emmett_prometheus")
self.appmod = self.app.module(
__name__,
"emmett_prometheus",
hostname=self.config.metrics_route_hostname
)
self.appmod.route(
self.config.metrics_route_path,
name="metrics",
methods='get',
hostname=self.config.metrics_route_hostname,
output='bytes'
)(self._metrics_route)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "emmett-prometheus"
version = "0.1.4"
version = "0.1.5"
description = "Prometheus extension for Emmett framework"
authors = ["Giovanni Barillari <[email protected]>"]
license = "BSD-3-Clause"
Expand Down

0 comments on commit 85359f1

Please sign in to comment.