Skip to content

Commit

Permalink
📝 add README.
Browse files Browse the repository at this point in the history
  • Loading branch information
perillaroc committed Oct 11, 2019
1 parent 27179ae commit 02d592c
Showing 1 changed file with 56 additions and 1 deletion.
57 changes: 56 additions & 1 deletion README.md
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).

0 comments on commit 02d592c

Please sign in to comment.