Parcourir la source

Added writing to Time Series Database KairosDB

pull/194/head
Johannes il y a 7 ans
Parent
révision
c34939ff40
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +2
    -2
      modules/logs/endpoints.py

+ 2
- 2
modules/logs/endpoints.py Voir le fichier

@@ -63,10 +63,10 @@ class LogView(FlaskView):
def querry_tsdb(self, type, id):
kairosdb_server = "http://127.0.0.1:" + cbpi.cache["config"]["kairos_db_port"].__dict__["value"]

tag = ""

if cbpi.cache["active_brew"] != "" and cbpi.cache["active_brew"] != "none":
tag = '"brew": "%s"' % cbpi.cache["active_brew"]
else:
tag = ""

data = dict(metrics=[
{


Chargement…
Annuler
Enregistrer