Giter VIP home page Giter VIP logo

koa-influx-galen's Introduction

koa-influx-galen

influxDB监控系统

环境搭建

  • 拉取influxDB镜像
docker pull influxdb:1.7-alpine
docker run -p 8086:8086 --name docker-influxdb -d influxdb:1.7-alpine
  • 测试启动
yarn run dev

api文档

PS: query添加isReload条件,强制生成文档,否则,将会缓存60秒

  • json
http://127.0.0.1:3000/v1/swagger.json
  • html
http://127.0.0.1:3000/v1/apidoc

搜索

例子:

http://127.0.0.1:3000/v1/responseTimes?where={"time":{"$gt":1597745072984}}&order=time desc&limit=2
  • where

    • equal where={"host":"127.0.0.1"}
    • gt where={"time":{"$gt":1597745072984}}
    • gte where={"time":{"$gte":1597745072984}}
    • lt where={"time":{"$lt":1597745072984}}
    • lte where={"time":{"$lte":1597745072984}}
  • order default order=time desc

    • desc order=time desc
    • asc order=time asc
  • limit default 20

    • number 20

目前存在的问题

  • 未支持虚拟的model类型
  • 异步检查database是否存在改为同步逻辑
  • 未支持koa中间件注入
  • koa安全关闭

koa-influx-galen's People

Contributors

alfierichou avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.