Skip to content

manolama/opentsdb-elasticsearch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

   ___                 _____ ____  ____  ____
  / _ \ _ __   ___ _ _|_   _/ ___||  _ \| __ )
 | | | | '_ \ / _ \ '_ \| | \___ \| | | |  _ \
 | |_| | |_) |  __/ | | | |  ___) | |_| | |_) |
  \___/| .__/ \___|_| |_|_| |____/|____/|____/
       |_|    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 ./scripts folder 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 @scripts/opentsdb_index.json http://<eshost>/opentsdb/
  curl -X PUT -d @scripts/tsmeta_mapping.json http://<eshost>/opentsdb/tsmeta/_mapping
  curl -X PUT -d @scripts/uidmeta_mapping.json http://<eshost>/opentsdb/uidmeta/_mapping
  curl -X PUT -d @scripts/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

About

Search plugin for OpenTSDB

Resources

License

LGPL-2.1, GPL-3.0 licenses found

Licenses found

LGPL-2.1
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%