Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
juttle-opentsdb-adapter
Advanced tools
OpenTSDB adapter for the Juttle data flow language, with read & write support.
Read all df.bytes.used
metric values from 30 minutes ago to now.
read opentsdb -from :30 minutes ago: name = "df.bytes.used"
Add a debug
option to return the final http query url:
read opentsdb -debug true -from :30 minutes ago: name = "df.bytes.used"
Filter by host tag:
read opentsdb -from :30 minutes ago: name = "df.bytes.used" host = "test_host_name"
Write a test point:
emit -points [ { time: '2016-01-01T01:01:01.111Z', name: 'test.test', value: 11, tag1: 'a_tag' } ] | write opentsdb
Like Juttle itself, the adapter is installed as a npm package. Both Juttle and the adapter need to be installed side-by-side:
$ npm install juttle
$ npm install juttle-opentsdb-adapter
The adapter needs to be registered and configured so that it can be used from
within Juttle. To do so, add the following to your ~/.juttle/config.json
file:
{
"adapters": {
"opentsdb": {
"host": "IP address",
"port": 1234
}
}
}
Name | Type | Required | Description |
---|---|---|---|
debug | boolean | no | output a query url corresponding to current set of options and filters |
from | moment | yes | select points after this time (inclusive) |
to | moment | no | select points before this time (exclusive), defaults to :now: |
id | string | no | select the config instance to use |
In addition to these options, read opentsdb
supports a subset of standard Juttle
read filters, namely:
tagfield = 'value'
tagfield = '*glob*'
AND
A metric name is required in the filter expression: name = "df.bytes.used"
.
Name | Type | Required | Description |
---|---|---|---|
nameField | string | no | the field that contains the metric name. Defaults to name . |
valueField | string | no | the field that contains the metric value. Defaults to value . |
id | string | no | select the config instance to use |
write opentsdb
: the data points passed into it must contain fields:
name
(type: string)value
(type: number)time
(type: Juttle moment)
Optionally, the points can contain one or more tag fields (type: string).Whenever the opentsdb adapter can shape the entire Juttle flowgraph or its portion into an OpenTSDB query,
it will do so, sending the execution to OpenTSDB, so only the matching data will come back into Juttle runtime.
The portion of the program expressed in read opentsdb
is always executed as an OpenTSDB query;
the downstream Juttle processors are currently not optimized, but may be in the future.
List of optimized operations:
read opentsdb
(note: read opentsdb ... | filter
is not optimized)In case of unexpected behavior with optimized reads, add -optimize false
option to read opentsdb
to disable optimizations, and kindly report the problem as a GitHub issue.
Contributions are welcome! Please file an issue or open a pull request.
To check code style and run unit tests:
npm test
Both are run automatically by Travis.
When developing you may run into failures during linting where jscs complains
about your coding style and an easy way to fix those files is to simply run
jscs --fix test
or jscs --fix lib
from the root directory of the project.
After jscs fixes things you should proceed to check that those changes are
reasonable as auto-fixing may not produce the nicest of looking code.
0.3.0
Released 2016-03-23
FAQs
OpenTSDB Adapter for Juttle
The npm package juttle-opentsdb-adapter receives a total of 8 weekly downloads. As such, juttle-opentsdb-adapter popularity was classified as not popular.
We found that juttle-opentsdb-adapter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.