Skip to content

Commit

Permalink
Fix MetricsServlet initialization (prometheus#739)
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Stäber <[email protected]>
  • Loading branch information
fstab committed Dec 22, 2021
1 parent ce3f5d9 commit fd931c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public MetricsServlet(CollectorRegistry registry, Predicate<String> sampleNameFi
@Override
public void init(ServletConfig servletConfig) throws ServletException {
try {
super.init(servletConfig);
exporter.init(Adapter.wrap(servletConfig));
} catch (ServletConfigurationException e) {
throw new ServletException(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public MetricsServlet(CollectorRegistry registry, Predicate<String> sampleNameFi
@Override
public void init(ServletConfig servletConfig) throws ServletException {
try {
super.init(servletConfig);
exporter.init(wrap(servletConfig));
} catch (ServletConfigurationException e) {
throw new ServletException(e);
Expand Down

0 comments on commit fd931c1

Please sign in to comment.