New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sidekiq-opentsdb

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sidekiq-opentsdb

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

Sidekiq::Opentsdb

Build Status

Sidekiq middleware that sends useful Sidekiq statistics to OpenTSDB.

Installation

Add this line to your application's Gemfile:

gem 'sidekiq-opentsdb'

And then execute:

$ bundle

Usage

You need to add the middleware to your call stack. To do so, put the folllowing code in an initializer (ideally sidekiq.rb):

Sidekiq.configure_server do |config|
  config.server_middleware do |chain|
    middleware_options = {
      opentsdb_hostname: 'localhost',
      opentsdb_port: '4242',
      metric_prefix: 'nine',
      only: %w(retry_size dead_size)
    }

    chain.add Sidekiq::Opentsdb::ServerMiddleware, middleware_options
  end
end

Available Options

opentsdb_hostname: 'localhost'   # (required) Hostname of your opentsdb server.
opentsdb_port: '4242'            # (required) Port of your opentsdb server.

metric_prefix: 'nine'            # (optional) Prefix of the metric keys (default: '').
only:   %w(retry_size dead_size) # (optional) Only send the given metrics to OpenTSDB.
except: %w(retry_size dead_size) # (optional) Send all but the given metrics to OpenTSDB.

# Tags
app: 'MyApp'                     # (optional) Your app name (Rails app name if available)
environment: 'staging'           # (optional) Your app environment (default: ENV['RACK_ENV'])

About

This Gem is maintained and funded by nine.ch.

nine.ch

We run your Linux server infrastructure – without interruptions, around the clock.

FAQs

Package last updated on 09 Jun 2016

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