Permalink
Browse files

Update the prometheus screenshot

  • Loading branch information...
hmalphettes committed Nov 28, 2017
1 parent 7f36afe commit 422bb61336b73ad870b8e1aa03b67f0963bddac1
Showing with 5 additions and 3 deletions.
  1. BIN prometheus-s3-analyser.jpg
  2. +2 −2 server.py
  3. +3 −1 test_s3_storage_analyzer.py
View
Binary file not shown.
View
@@ -7,7 +7,7 @@
import os
from s3_storage_analyser import (
analyse, parse_args, stop_pool, get_metrics_prom, s3_analysis)
analyse, parse_args, stop_pool, get_metrics_prom)
# Run a single analysis at a time
LOCK_ANALYSIS = threading.Lock()
@@ -33,7 +33,7 @@ def do_GET(self):
if metrics_prom is not None:
self.send_response(200)
self.send_header('Content-type','text/plain')
self.send_header('Content-type', 'text/plain')
self.end_headers()
if os.path.exists(metrics_prom):
file = open(metrics_prom, 'rb')
@@ -331,7 +331,9 @@ def test_server_favicon(monkeypatch):
def test_server_json(monkeypatch):
"""Test whole server"""
os.environ['PROM_TEXT'] = 'test.prom'
data = _test_server(monkeypatch, query_string='fmt=json&unit=TB&conc=4&prefix=hm.samples', port=9003)
data = _test_server(
monkeypatch,
query_string='fmt=json&unit=TB&conc=4&prefix=hm.samples', port=9003)
print(data)
assert data.startswith('{"Buckets":[{"Bucket":"hm.samples"')
del os.environ['PROM_TEXT']

0 comments on commit 422bb61

Please sign in to comment.