Code Monkey home page Code Monkey logo

opentsdb-elasticsearch's Introduction

   ___                 _____ ____  ____  ____
  / _ \ _ __   ___ _ _|_   _/ ___||  _ \| __ )
 | | | | '_ \ / _ \ '_ \| | \___ \| | | |  _ \
 | |_| | |_) |  __/ | | | |  ___) | |_| | |_) |
  \___/| .__/ \___|_| |_|_| |____/|____/|____/
       |_|    The modern time series database.

Build Status Coverage Status

Search plugin for OpenTSDB

##Installation

  • Compile the plugin via mvn package.
  • Create a plugins directory for your TSD
  • Copy the plugin from the target directory into your TSD's plugin's directory.
  • Add the following configs to your opentsdb.conf file.
    • Add tsd.core.plugin_path = <directory> pointing to a valid directory for your plugins.
    • Add tsd.search.enable = true
    • Add tsd.search.plugin = net.opentsdb.search.ElasticSearch
    • Add tsd.search.elasticsearch.host = <host> The HTTP protocol, host and port for an ES host or VIP in the format http[s]://<host>[:port].
  • Add a mapping for each JSON file in the ./schemas sub folder of your choice via: (NOTE: It's important to do this BEFORE starting a TSD that would index data as you can't modify the mappings for documents that have already been indexed [afaik])
  curl -X PUT -d @schemas/simple/opentsdb_index.json http://<eshost>/opentsdb/
  curl -X PUT -d @schemas/simple/tsmeta_mapping.json http://<eshost>/opentsdb/tsmeta/_mapping
  curl -X PUT -d @schemas/simple/uidmeta_mapping.json http://<eshost>/opentsdb/uidmeta/_mapping
  curl -X PUT -d @schemas/simple/annotation_mapping.json http://<eshost>/opentsdb/annotation/_mapping
  • Optionally add tsd.core.meta.enable_tracking = true to your TSD config if it's processing incoming data
  • Turn up the TSD OR...
  • ... if you have existing data, run the uid metasync utility from OpenTSDB

Schemas

TODO - doc em

opentsdb-elasticsearch's People

Contributors

manolama avatar sdreynolds avatar stephenweber avatar liubin avatar anonthing avatar szalai1 avatar

Watchers

David Leadbeater avatar James Cloos avatar Simon Matic Langford avatar G-Research 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.