Skip to content

Commit

Permalink
openshift-network mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau committed Aug 17, 2022
1 parent 8611185 commit b914741
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 1 addition & 3 deletions examples/loki-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ rules:
- apiGroups:
- 'loki.grafana.com'
resources:
- application
- infrastructure
- audit
- network
resourceNames:
- logs
verbs:
Expand Down
9 changes: 4 additions & 5 deletions hack_loki.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ kubectl create ns openshift-logging

Then create a `LokiStack` in `openshift-logging` namespace from:
Administrator view -> Operators -> Installed Operators -> Loki Operator -> LokiStack -> Create LokiStack
- ensure the name is `lokistack`
- ensure the name is `lokistack-network`
- set `Object Storage` -> `Secret`. Check [documentation](https://loki-operator.dev/docs/object_storage.md/).
- ensure `Tenants Configuration` -> `Mode` is set to `openshift-logging`
- ensure `Tenants Configuration` -> `Mode` is set to `openshift-network`

This will create `gateway`, `distributor`, `compactor`, `ingester`, `querier` and `query-frontend` components.

Expand All @@ -89,12 +89,11 @@ To allow `flowlogs-pipeline` to write to the gateway and `network-observability-
oc apply -f examples/loki-role.yaml
```

Then you will be able to set the following configuration in `FlowCollector` for `application` tenant:
Then you will be able to set the following configuration in `FlowCollector` for `network` tenant:
```yaml
loki:
tenantID: application
sendAuthToken: true
url: 'https://lokistack-gateway-http.openshift-logging.svc.cluster.local:8080/api/logs/v1/application/'
url: 'https://lokistack-gateway-http.openshift-logging.svc.cluster.local:8080/api/logs/v1/network/'
```
### Troubleshooting
Expand Down

0 comments on commit b914741

Please sign in to comment.