simple metrics api to interface with collectd and grafana

This commit is contained in:
Jakob Ketterl
2019-08-04 18:36:03 +02:00
parent 766300bdff
commit 92321a3b4e
4 changed files with 44 additions and 0 deletions

View File

@ -6,6 +6,7 @@ from owrx.controllers import (
MapController,
FeatureController,
ApiController,
MetricsController,
)
from http.server import BaseHTTPRequestHandler
import re
@ -43,6 +44,7 @@ class Router(object):
{"route": "/map", "controller": MapController},
{"route": "/features", "controller": FeatureController},
{"route": "/api/features", "controller": ApiController},
{"route": "/metrics", "controller": MetricsController},
]
def find_controller(self, path):