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

Riemann mysql client #60

Merged
merged 3 commits into from
Sep 6, 2013
Merged

Riemann mysql client #60

merged 3 commits into from
Sep 6, 2013

Conversation

fborgnia
Copy link
Member

@fborgnia fborgnia commented Sep 5, 2013

Added riemann-mysql that reports to riemann server the results of "SHOW STATUS" query.

data = {
:host => opts[:mysql_host],
:service => "mysql #{var["Variable_name"]}",
:metric => var["Value"].to_f,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strings would get coerced to a float here, might be good to save them and set as an attribute, or set them as the description for the service?

@gsandie
Copy link
Contributor

gsandie commented Sep 5, 2013

Looks good 👍

I'd change the metric so that it doesn't submit strings as floats.

Are you using the state? I see it's being set as a string, which will send up with states like: state: 12345 from the numeric metrics. If you're not using it, it could be set to nil, and let the user define the state and thresholds in the main riemann config file when they are processing the events.

@fborgnia
Copy link
Member Author

fborgnia commented Sep 5, 2013

@gsandie yeap sounds good, i'm not actually using the states so nil will work fine, thanks for taking a look.

send metric as returned from query
@gsandie
Copy link
Contributor

gsandie commented Sep 6, 2013

@fborgnia Excellent looks good, thanks :)

gsandie pushed a commit that referenced this pull request Sep 6, 2013
@gsandie gsandie merged commit 016b1fd into riemann:master Sep 6, 2013
@fborgnia
Copy link
Member Author

fborgnia commented Sep 6, 2013

@gsandie thanks for the quick merge!

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.

2 participants