https://github.com/dcos/dcos-checks
checks for DC/OS cluster
https://github.com/dcos/dcos-checks
dcos dcos-checks dcos-ux-guild
Last synced: about 1 year ago
JSON representation
checks for DC/OS cluster
- Host: GitHub
- URL: https://github.com/dcos/dcos-checks
- Owner: dcos
- Created: 2017-05-12T22:51:00.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T21:41:03.000Z (about 5 years ago)
- Last Synced: 2024-04-09T22:30:07.143Z (about 2 years ago)
- Topics: dcos, dcos-checks, dcos-ux-guild
- Language: Go
- Homepage: https://dcos.io
- Size: 9.51 MB
- Stars: 0
- Watchers: 46
- Forks: 14
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dcos-checks
### add a new check
1. `go get github.com/spf13/cobra/cobra`
2. `cobra add -t github.com/dcos/dcos-checks/cmd/checks/ `
3. edit `cmd/checks/.go`
4. rename `init()` to `func Add(root *cobra.Command)` and change it accordingly:
```
func Add(root *cobra.Command) {
root.AddCommand()
// other flag and configuration goes here
}
```
5. Modify `cmd/subcommands.go` to add your check.
see https://github.com/spf13/cobra for more details