Skip to content

Commit

Permalink
docs: new configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
cngJo committed Aug 11, 2022
1 parent d7641b6 commit 775aabc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,23 @@ http://127.0.0.1:9101/probe?target=INBOX
probe_mailbox_count 0
```

### Configuration

The `imap-mailbox-exporter` can be configures with a `config.yaml` file and environment variables.

```yaml
server:
- hostname: 'hostname'
port: '1234'
accounts:
- username: '[email protected]'
password: 'env:E_AT_MAIL_COM_PASSWORD'
```
You can use environment variables with the `env:VARIABLE_NAME` directive in YAML.

The configuration file is expected in `./config.yaml` relative to the `imap-mailbox-exporter` binary.

### Example Usage

You can find a example docker compose configuration.
Expand Down

0 comments on commit 775aabc

Please sign in to comment.