Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register /metrics endpoint when using --enablemetrics #207

Merged
merged 1 commit into from
Aug 21, 2020
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
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a changelog](https://github.com/olivierlacan/keep-a-changelog).

## [Unreleased](https://github.com/idealista/prom2teams/tree/develop)

### Fixed
* [#201](https://github.com/idealista/prom2teams/issues/201) /metrics server not working

## [2.5.7](https://github.com/idealista/prom2teams/tree/2.5.7)
[Full Changelog](https://github.com/idealista/prom2teams/compare/2.5.6...2.5.7)
Expand Down
1 change: 1 addition & 0 deletions prom2teams/app/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def config_app(application):
if command_line_args.groupalertsby:
application.config['GROUP_ALERTS_BY'] = command_line_args.groupalertsby
if command_line_args.enablemetrics or os.environ.get('PROM2TEAMS_PROMETHEUS_METRICS', False):
os.environ["DEBUG_METRICS"] = "True"
from prometheus_flask_exporter import PrometheusMetrics
metrics = PrometheusMetrics(application)

Expand Down