Git Product home page Git Product logo

node-kapacitor's Introduction

node-kapacitor, a Kapacitor client for Node.js

node-kapacitor is a Kapacitor client for Node.js.

Installation

For Node, simply:

$ npm install --save kapacitor

Source Repo: node-kapacitor ,code reference node-influx.

Features

  • Simple API for nearly Kapacitor operations
  • Fully supported in Node
  • Performant, processing millions of rows/sec on modest hardware
  • Zero dependencies

Completed task list

  • Writing Data
  • Tasks
  • Templates
  • Recordings
  • Replays
  • Alerts
  • Configuration
  • Storage
  • Logs
  • Testing Services
  • Miscellaneous

Usage

node-kapacitor's People

Contributors

zlq4863947 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

node-kapacitor's Issues

Escaped string in taskCreate

Hello!
First of all: Great work!

But! You can't escape all quotes in script.

For example:

var trigger = data
    |alert()
        .crit(lambda: "value" >= crit)

cannot be escaped, because value MUST be in ". In kapacitor's docs you can read:

All field or tag identifiers must be double quoted.

So in this line, you will break a working script, and kapacitor will return an error.

Who wants to continue to maintain this project

sorry, Kapacitor module is no longer in maintenance,
because I don't need Kapacitor module now for my work.

But if someone wants to maintain this project, I can transfer it to him。

My wish is to let it live!

getTask return error when the itask error is not empty

hi ,I have a task which its executing is false and there have some error like "Error: failed to parse InfluxQL query: found spider, expected identifier at line 2, char 66"

then I get the task using http api ,the reuslts like

{
link: {
rel: "self",
href: "/kapacitor/v1/tasks/test"
},
id: "test",
template-id: "",
type: "batch",
dbrps: [
{
db: "spider",
rp: "autogen"
}
],
script: "batch |query(''' SELECT sum(sucscess) AS success, sum(failed) AS failed FROM spider.autogen.sdk WHERE 'evesnt' = 'uplsoad' ''') .period(1h) .groupBy(time(1h), 'source') .cron('0 0 * * * * *') |mongoDBOut() .url('mongodb://user:[email protected]:1120/spider') .database('spider') .collection('sdk_upload_status') .strict(TRUE) ",
vars: { },
dot: "digraph test { query1 -> mongodb_out2; }",
status: "enabled",
executing: false,
error: "failed to parse InfluxQL query: found spider, expected identifier at line 2, char 66",
stats: {
task-stats: null,
node-stats: null
},
created: "2018-03-01T15:38:50.746069605+08:00",
modified: "2018-03-02T15:53:58.337947287+08:00",
last-enabled: "2018-03-02T15:49:38.493134822+08:00"
}

But when i use node-kapacitor ,I get results like

message: 'Error from Kapacitor: failed to parse InfluxQL query: found spider, expected identifier at line 2, char 66' }

In fact ,the Task exists with some executing error, but the node-kapacitor return error

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.