Skip to content

Commit

Permalink
Have all default exports start with flask_
Browse files Browse the repository at this point in the history
  • Loading branch information
rycus86 committed Nov 30, 2017
1 parent 7b4e5ba commit 1a74896
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -64,7 +64,7 @@ The following metrics are exported by default
- `flask_http_request_total` (Counter)
Labels: `method` and `status`.
Total number of HTTP requests for all Flask requests.
- `prometheus_flask_exporter_info` (Gauge)
- `flask_exporter_info` (Gauge)
Information about the Prometheus Flask exporter itself (e.g. `version`).

### Labels
Expand Down
2 changes: 1 addition & 1 deletion prometheus_flask_exporter/__init__.py
Expand Up @@ -128,7 +128,7 @@ def export_defaults(self, buckets=None):
)

self.info(
'prometheus_flask_exporter_info',
'flask_exporter_info',
'Information about the Prometheus Flask exporter',
version=self.version
)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_defaults.py
Expand Up @@ -8,7 +8,7 @@ def test_simple(self):
metrics = self.metrics()

self.assertMetric(
'prometheus_flask_exporter_info', '1.0',
'flask_exporter_info', '1.0',
('version', metrics.version)
)

Expand Down

0 comments on commit 1a74896

Please sign in to comment.