-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
27179ae
commit 02d592c
Showing
1 changed file
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,58 @@ | ||
# ecflow-watchman | ||
|
||
Watch ecflow servers. | ||
Watch ecflow servers. | ||
|
||
## Install | ||
|
||
`ecflow-watchman` uses `ecflow-client-go` package which requires ecFlow and boost. | ||
|
||
Set some environment variables before build the library. | ||
|
||
```bash | ||
export ECFLOW_BUILD_DIR=/some/path/to/ecflow/build | ||
export ECFLOW_SOURCE_DIR=/some/path/to/ecflow/source | ||
export BOOST_LIB_DIR=/some/path/to/boost/stage/lib | ||
``` | ||
|
||
Please visit [ecflow-client-go](https://github.com/perillaroc/ecflow-client-go) for more information. | ||
|
||
Use `Makefile` to build the project and `ecflow_watchman` will be under `bin` directory. | ||
|
||
## Getting Started | ||
|
||
`ecflow_watchman watch-all` command watches all ecflow servers listed in the config file, | ||
and sends collected status into a redis server. | ||
|
||
```bash | ||
ecflow_watchman watch-all --config-file=/some/config/file/path | ||
``` | ||
|
||
## Config | ||
|
||
The following is an example config file. | ||
|
||
```yaml | ||
global: | ||
scrape_interval: 20s | ||
scrape_timeout: 10s # not worked | ||
|
||
scrape_configs: | ||
- | ||
job_name: job name | ||
owner: owner | ||
repo: repo | ||
host: ecflow server host | ||
port: ecflow server port | ||
|
||
sink_config: | ||
type: redis # only redis is supported | ||
url: redis url | ||
``` | ||
`owner` and `repo` are used in key name for redis. | ||
|
||
## License | ||
|
||
Copyright 2019, perillaroc | ||
|
||
`ecflow-watchman` is licensed under [MIT License](./LICENSE.md). |