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

exception handling, database nil, body name key #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jcmartins
Copy link

Multiplied time by 1000 to match influxdb timescale
exception handling on http request
Check if database is nil -> using settings
Change Body "name" => key.gsub!('-','') to name => key

joao.martins added 2 commits July 8, 2015 11:29
exception handling on http request
check if database is nil -> using settings
change Body  "name" => key.gsub!('-','') to name => key
@BarthV
Copy link

BarthV commented Jul 30, 2015

🆙

but the others enhancements are great 👍

@alfredopalhares
Copy link

@jcmartins could you please resolve the conflicts with #20 ?

@BarthV
Copy link

BarthV commented Jul 30, 2015

@jcmartins :
https://github.com/jcmartins/sensu-influxdb-extension/blob/master/influxdb.rb#L42

If you need to use host "name" from raw data without modifying it with existing gsub('-',''), maybe you can simply enhance the if / elseif statement (L32) to make this gsub conditional upon a variable ?

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

Successfully merging this pull request may close these issues.

3 participants