Skip to content

Commit

Permalink
feat(logger): add Loki transport
Browse files Browse the repository at this point in the history
  • Loading branch information
mKeRix committed Apr 11, 2021
1 parent 719c664 commit 3eae74a
Show file tree
Hide file tree
Showing 5 changed files with 356 additions and 4 deletions.
27 changes: 24 additions & 3 deletions docs/guide/monitoring.md
Expand Up @@ -40,10 +40,31 @@ room-assistant is capable of piping log output into an Elasticsearch cluster wit

```yaml
logger:
elasticsearch:
enabled: true
node: http://192.168.0.20:9200
elasticsearch:
enabled: true
node: http://192.168.0.20:9200
```

:::

### Loki

**Config Key:** `loki`

You can send the room-assistant logs to an instance of [Grafana Loki](https://grafana.com/oss/loki/), which will allow you to collect and query logs easily from [Grafana](https://grafana.com/grafana/).

| Name | Type | Default | Description |
| --------- | ------- | --------------------- | ------------------------------------------------------- |
| `enabled` | Boolean | `false` | Whether room-assistant should send logs to Loki or not. |
| `host` | String | http://localhost:3100 | The endpoint of your Loki instance. |

::: details Example Config

```yaml
logger:
loki:
enabled: true
host: http://192.168.0.20:3100
```

:::

0 comments on commit 3eae74a

Please sign in to comment.