Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

influxdb-builder

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

influxdb-builder

Builds an influxdb from a yml definiton

  • 0.0.0-rc47
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

CircleCI

influxdb-builder

A declarative builder for influx databases.

Installation

npm install -g influxdb-builder

Usage

influxdb-builder <options>

  --influxUrl=VAL   The url to the influx database. Required.

  --username=VAL    The influx administrator username.

  --password=VAL    The influx administrator password.

  --database=VAL    The name of the database to build. Required.

  --definition=VAL  The path to the database definition (yml file or directory of yml files). Required.
                  
  --apply           If specified the database will be updated, otherwise, only a plan is generated.

Output is written using bunyan. For pretty logs, pipe to bunyan:

bin/influxdb-builder \
    --influxUrl "http://localhost:8086" \
    --database "test" \
    --definition "example/resources.yml" \
    --apply | bunyan

Definitions Format

retention_policies:

  '2hr':
    duration: '2h'
    replication: 2
    shard_duration: '1h'
    default: true

  '1year':
    duration: '365d'
    replication: 1
    shard_duration: '7d'

continuous_queries:

  'average_passengers':
    query: >
      SELECT mean(passengers) AS passengers
      INTO ${database}."1year".average_passengers
      FROM ${database}."2hr".bus_data
      GROUP BY time(1d)
    resample:
      every: '30m'
      for: '3d'

Keywords

FAQs

Package last updated on 24 Jul 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc