Browse Source

Change ports

Marcelo Fornet 4 years ago
parent
commit
7d03aed2c4
4 changed files with 6 additions and 6 deletions
  1. 3 3
      Readme.md
  2. 1 1
      main.py
  3. 1 1
      prometheus.yml
  4. 1 1
      run.sh

+ 3 - 3
Readme.md

@@ -1,3 +1,3 @@
--   Telemetry endpoint: 8000
--   Metrics: 8001
--   Prometheus: 9090
+-   Telemetry endpoint: 8388
+-   Metrics: 3389
+-   Prometheus: 8080

+ 1 - 1
main.py

@@ -67,4 +67,4 @@ def hello_world():
 
 if __name__ == 'main':
     print("Starting prometheus server")
-    start_http_server(8001)
+    start_http_server(3389)

+ 1 - 1
prometheus.yml

@@ -26,4 +26,4 @@ global:
       # scheme defaults to 'http'.
 
       static_configs:
-          - targets: ['localhost:9090', 'localhost:8001']
+          - targets: ['localhost:9090', 'localhost:3389']

+ 1 - 1
run.sh

@@ -1,3 +1,3 @@
 #!/bin/bash
 export FLASK_APP=main.py
-flask run --port 8000 --host=0.0.0.0
+flask run --port 8388 --host=0.0.0.0