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

Memory check resource definition is not valid in README #107

Open
rgeniesse opened this issue Feb 27, 2020 · 0 comments
Open

Memory check resource definition is not valid in README #107

rgeniesse opened this issue Feb 27, 2020 · 0 comments

Comments

@rgeniesse
Copy link

The README currently has the following for a memory check resource definition example:

---
type: CheckConfig
spec:
  command: "check-memory.rb"
  handlers: []
  high_flap_threshold: 0
  interval: 10
  low_flap_threshold: 0
  publish: true
  runtime_assets:
  - sensu-plugins/sensu-plugins-memory-checks
  - sensu/sensu-ruby-runtime
  subscriptions:
  - linux

This isn't valid for a few reasons:

  • No metadata, so no check name can be set.
  • Missing the api_version attribute.
  • The memory check command throws an error that both warning and critical need to be set.
    The following worked for me:
---
type: CheckConfig
api_version: core/v2
metadata:
  name: check-memory
  namespace: default
spec:
  command: "check-memory.rb -w 80 -c 90"
  high_flap_threshold: 0
  interval: 10
  low_flap_threshold: 0
  publish: true
  runtime_assets:
  - sensu-plugins/sensu-plugins-memory-checks
  - sensu/sensu-ruby-runtime
  subscriptions:
  - linux
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

No branches or pull requests

1 participant