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

Add numerical representation of Consul health check state. #2277

Merged
merged 1 commit into from
Jan 29, 2017

Conversation

johnrengelman
Copy link
Contributor

@johnrengelman johnrengelman commented Jan 16, 2017

Required for all PRs:

  • CHANGELOG.md updated (we recommend not updating this until the PR has been approved by a maintainer)
  • Sign CLA (if not already signed)
  • README.md updated (if adding a new plugin)

@johnrengelman
Copy link
Contributor Author

I targeted this to master, but it would be nice to be in 1.2 since that is still unreleased.

@sparrc
Copy link
Contributor

sparrc commented Jan 17, 2017

this looks good, but I think these should be integers rather than floats

@johnrengelman
Copy link
Contributor Author

I thought I'd have to do = 1.0 to get a float?

@sparrc
Copy link
Contributor

sparrc commented Jan 17, 2017

I would have thought so too, but this line-protocol shows they are floats: passing=1,critical=0,warning=0 (there would be an i appended to each number if they were integers).

@johnrengelman
Copy link
Contributor Author

oh ha. Yeah, I just manually typed that. I'll verify and update according. :)

@johnrengelman
Copy link
Contributor Author

Updated.

@sparrc sparrc added this to the 1.3.0 milestone Jan 25, 2017
> consul_health_checks,host=wolfpit,node=consul-server-node,check_id="serfHealth" check_name="Serf Health Status",service_id="",status="passing" 1464698464486439902
> consul_health_checks,host=wolfpit,node=consul-server-node,service_name=www.example.com,check_id="service:www-example-com.test01" check_name="Service 'www.example.com' check",service_id="www-example-com.test01",status="critical" 1464698464486519036
> consul_health_checks,host=wolfpit,node=consul-server-node,check_id="serfHealth" check_name="Serf Health Status",service_id="",status="passing",passing=1i,critical=0i,warning=0i 1464698464486439902
> consul_health_checks,host=wolfpit,node=consul-server-node,service_name=www.example.com,check_id="service:www-example-com.test01" check_name="Service 'www.example.com' check",service_id="www-example-com.test01",status="critical",passing=0i,critical=1i,warning-0i 1464698464486519036
Copy link
Contributor

Choose a reason for hiding this comment

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

sp: warning-0i, still manually typing? ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You caught me. 😈
Fixed.

@sparrc
Copy link
Contributor

sparrc commented Jan 27, 2017

👍, just update the changelog and I'll merge

@johnrengelman
Copy link
Contributor Author

Update the changelog and rebased.

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