Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a handler for Librato fails #484

Closed
rhoml opened this issue Mar 7, 2016 · 7 comments
Closed

Creating a handler for Librato fails #484

rhoml opened this issue Mar 7, 2016 · 7 comments
Labels

Comments

@rhoml
Copy link
Contributor

rhoml commented Mar 7, 2016

I am trying to create a handler for librato metrics using the module and I can't find the right combination for it. This is the only way it works apparently but sensu-puppet writes a bunch of information that is not needed by the handler

hiera

sensu::handlers:
  'librato':
    type: pipe
    source: puppet:///modules/sensu_plugins/handlers/handler-metrics-librato.rb
    config:
      email: '[email protected]'
      api_key: 'XX'
      use_sensu_client_hostname_as_source: false

librato.json

{
  "handlers": {
    "librato": {
      "command": "/etc/sensu/handlers/handler-metrics-librato.rb",
      "type": "pipe",
      "filters": [

      ],
      "severities": [
        "ok",
        "warning",
        "critical",
        "unknown"
      ]
    }
  },
  "librato": {
    "email": "[email protected]",
    "api_key": "xxx"
  }
}

In the past I used to send this handler as a file and its configuration too but I would like to use the module instead.

Any hint?

@rhoml
Copy link
Contributor Author

rhoml commented Mar 24, 2016

@jlambert121 do you have any thougts on this issue?

@jlambert121
Copy link
Contributor

Have you figured out what with the JSON is causing issues with the handler? I don't use librato so I'm not sure the config of it.

@rhoml
Copy link
Contributor Author

rhoml commented Mar 30, 2016

Actually I ended up generating my own template and now it is working. The right configuration for librato should be

{
  "librato": {
    "email": "[email protected]",
    "api_key": "XXX",
  }
}

I don't find a way to do it with the puppet module

@confiq
Copy link
Contributor

confiq commented Apr 13, 2016

The problem is that enterprise plugins are on top configuration scope where sensu::handler write only in {handlers: *} scope...

@rhoml
Copy link
Contributor Author

rhoml commented Apr 13, 2016

I use the OSS version of sensu and it wrotes a bunch of other stuff that sensu don't need and in fact it co siders invalid

@jaxxstorm
Copy link
Contributor

@rhoml what exactly about the above JSON is invalid? Which librato handler are you using?

@jaxxstorm
Copy link
Contributor

I think this issue is dead, reopen if you still need help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants