-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dan/per-10200-write-docs-on-how-to-use-opal (#612)
* Added OPAL+ docs * Fixed invalid links * Changed OPAL+ docs * Added OPAL+ features * Added OPAL+ support * Added troubleshooting docs * Fixed pre-commit * Fixed broken link * Added OPAL+ custom data fetcher providers feature
- Loading branch information
Showing
6 changed files
with
177 additions
and
13 deletions.
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
sidebar_position: 2 | ||
title: Deploy OPAL+ | ||
--- | ||
|
||
With OPAL+, you get access to private Docker images that include additional features and capabilities. | ||
To apply for Permit OPAL+, [fill in the form available here](https://hello.permit.io/opal-plus) | ||
|
||
In order to access the OPAL+ Docker images, you need to have Docker Hub credentials with an access token. | ||
Those should be received from your Customer Success manager. | ||
Reach out to us [on Slack](https://bit.ly/permit-slack) if you need assistance. | ||
|
||
## Accessing the OPAL+ Docker Images | ||
|
||
To access the OPAL+ Docker images, you need to log in to Docker Hub with your credentials. | ||
You can do this by running the [docker login](https://docs.docker.com/reference/cli/docker/login/) command: | ||
|
||
```bash | ||
docker login -u <username> -p <password> | ||
``` | ||
|
||
If you are using Kubernetes, check out the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/) on how to pull images from a private registry. | ||
|
||
After logging in, you can pull the OPAL+ Docker images using the following commands: | ||
|
||
```bash | ||
docker pull permitio/opal-plus:latest | ||
``` | ||
|
||
## Running the OPAL+ Docker Images | ||
|
||
Running the OPAL+ Docker images is similar to running the open-source OPAL images. | ||
|
||
Check out the [OPAL Docker documentation](/getting-started/running-opal/run-docker-containers) for more information. |
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 |
---|---|---|
@@ -0,0 +1,80 @@ | ||
--- | ||
sidebar_position: 3 | ||
title: Advanced Features | ||
--- | ||
|
||
OPAL+ has a number of advanced features extending the capabilities of the open-source OPAL. | ||
These features are available to OPAL+ users only. | ||
|
||
To apply for Permit OPAL+, [fill in the form available here](https://hello.permit.io/opal-plus) | ||
|
||
|
||
## Support and SLA | ||
|
||
OPAL+ provides dedicated support and a custom SLA to help you get the most out of your OPAL+ deployment. | ||
Reach out to us [on Slack](https://bit.ly/permit-slack) for more information. | ||
|
||
## Licensing Capabilities | ||
|
||
OPAL+ provides additional licensing capabilities to help you manage your OPAL+ deployment. | ||
Reach out to us [on Slack](https://bit.ly/permit-slack) for more information. | ||
|
||
## Custom Data Fetcher Providers | ||
|
||
OPAL+ provides custom data fetcher providers to help you fetch data from your private data sources. | ||
|
||
## Logging and Monitoring | ||
|
||
OPAL+ provides advanced logging and monitoring capabilities to help you track and debug your OPAL+ deployment. | ||
|
||
#### Connect to logging system | ||
|
||
On production, we advise you to connect OPAL+ to your logging system to collect and store the logs. | ||
Configure the [OPAL_LOG_SERIALIZE](/getting-started/configuration) environment variable to `true` to serialize logs in JSON format. | ||
|
||
#### Monitor OPAL Servers and Clients | ||
|
||
OPAL+ provides monitoring endpoints to help you track the health of your OPAL+ servers and clients. | ||
Configure the [OPAL_STATISTICS_ENABLED=true](/getting-started/configuration) environment variable to enable the statistics APIs. | ||
|
||
You can then monitor the state of your OPAL+ cluster by calling the `/stats` API route on the server. | ||
```bash | ||
curl http://opal-server:8181/stats -H "Authorization: Bearer <token>" | ||
# { "uptime": "2024-07-14T14:55:02.710Z", "version": "0.7.8", "client_count": 1, "server_count": 1 } | ||
``` | ||
|
||
You can also get detailed information about the OPAL+ clients and servers by calling the `/statistics` API route on the server. | ||
```bash | ||
curl http://opal-server:8181/statistics -H "Authorization: Bear <token>" | ||
``` | ||
```json | ||
{ | ||
"uptime": "2024-07-14T14:54:09.809Z", | ||
"version": "0.7.8", | ||
"clients": { | ||
"opal-client-1": [ | ||
{ | ||
"rpc_id": "7ba198b1329d439faaa79dd7447401dc", | ||
"client_id": "693ac1b4d060416eaad50c2bf04121b1", | ||
"topics": [ | ||
"string" | ||
] | ||
} | ||
], | ||
"opal-client-2": [ | ||
{ | ||
"rpc_id": "d343d92292794630994a8a077bcb413a", | ||
"client_id": "4d71d88ba16f49e1a0ae89f16c5a55d5", | ||
"topics": [ | ||
"string" | ||
] | ||
} | ||
] | ||
}, | ||
"servers": [ | ||
"774b376fbead49b79f6a9fd42cef2cfd" | ||
] | ||
} | ||
``` | ||
|
||
For more information on monitoring OPAL, see the [Monitoring OPAL](/tutorials/monitoring_opal) tutorial. |
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
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
sidebar_position: 10 | ||
title: Troubleshooting | ||
--- | ||
|
||
When something goes wrong, we are here to help. | ||
|
||
Feel free to reach out to us on Slack on our [community channel](https://bit.ly/opal-slack) | ||
or in your dedicated OPAL+ support channel, and we will do our best to assist you quickly. | ||
|
||
### Seeking Support | ||
|
||
When seeking support, please provide as much information as possible to help us understand the issue and resolve it faster. | ||
This includes: | ||
* Full description of the problem | ||
* Steps to reproduce the issue | ||
* Environment details (OS, Docker, Kubernetes, etc.) | ||
|
||
You can also provide the following information: | ||
|
||
#### Extract Logs | ||
|
||
On production, we advise you to connect OPAL+ to your logging system to collect logs. | ||
Configure the [OPAL_LOG_SERIALIZE](/getting-started/configuration) environment variable to `true` to serialize logs in JSON format. | ||
|
||
When running OPAL+ locally or in a development environment, you can extract logs from the console. | ||
Alternatively, you can enable logging to file by setting the [OPAL_LOG_TO_FILE](/getting-started/configuration) to `true`. | ||
|
||
You can also enable debug logs by setting the [OPAL_LOG_LEVEL](/getting-started/configuration) environment variable to `debug`. | ||
|
||
#### Export Configuration | ||
|
||
You can export your configuration by running the following command: | ||
|
||
```bash | ||
opal-client print-config | ||
``` | ||
|
||
Make sure to censor any sensitive information, like passwords or API keys, before sharing the configuration. | ||
|
||
## Common Issues | ||
|
||
More common issues and their solutions are available in the [OPAL documentation](/getting-started/running-opal/troubleshooting). |
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
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