瀏覽代碼

Added writing to Time Series Database KairosDB

pull/194/head
Johannes 7 年之前
父節點
當前提交
c34939ff40
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      modules/logs/endpoints.py

+ 2
- 2
modules/logs/endpoints.py 查看文件

@@ -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=[
{


Loading…
取消
儲存