Giter Club home page Giter Club logo

chronix.ingester's Introduction

chronix.ingester

The Chronix Ingester batches up sample data from various sources and stores it as chunks in Chronix. Currently, only Prometheus is supported.

Building

Building requires Go 1.7 or newer, as well as a working GOPATH setup.

To build the ingester:

go build

Running

Example:

./chronix.ingester -chronix-url=http://my-solr-host:8983/solr/chronix -max-chunk-age=30m

To show all flags:

./chronix.ingester -h
Usage of ./chronix.ingester:
  -checkpoint-file string
    	The path to the checkpoint file. (default "checkpoint.db")
  -checkpoint-interval duration
    	The interval between checkpoints. (default 5m0s)
  -chronix-commit-within duration
    	The duration after which updates to Chronix should be committed. (default 5s)
  -chronix-url string
    	The URL of the Chronix endpoint. (default "http://localhost:8983/solr/chronix")
  -flush-on-shutdown
    	Whether to flush all chunks to Chronix on shutdown, rather than saving them to a checkpoint. A checkpoint will still be written, but will be empty.
  -listen-addr string
    	The address to listen on. (default ":8080")
  -log.format value
    	Set the log target and format. Example: "logger:syslog?appname=bob&local=7" or "logger:stdout?json=true" (default "logger:stderr")
  -log.level value
    	Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal] (default "info")
  -max-chunk-age duration
    	The maximum age of a chunk before it is closed and persisted. (default 1h0m0s)

Testing

To run tests:

go test ./...

Configuring Prometheus

Sending samples to the Chronix ingester from Prometheus requires Prometheus version 1.2.0 or newer. To configure Prometheus to send samples to the ingester, add the following stanza to your Prometheus configuration file:

remote_write:
  url: http://<host>:<port>/ingest

chronix.ingester's People

Contributors

juliusv avatar

Watchers

James Cloos avatar Roma Chi 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.