-
Notifications
You must be signed in to change notification settings - Fork 332
Docs/improve idp documentation #2695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dimas-b
merged 6 commits into
apache:main
from
olsoloviov:docs/improve-IDP-documentation
Sep 29, 2025
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4885317
Fix Github links in IDP documentation
olsoloviov e8ab330
Separate IDP docs for usage and development
olsoloviov 34bebbe
- Add telemetry config example
olsoloviov 282cceb
Fix some relative links (local Hugo resolves them properly, but PR au…
olsoloviov 081ac24
Docs: narrow down --role-arn usage for AWS S3 only; fix a link in key…
olsoloviov 8f4f0c6
Docs: fix a link in keycloak guide.
olsoloviov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
70 changes: 70 additions & 0 deletions
70
site/content/in-dev/unreleased/getting-started/using-polaris/telemetry-tools.md
This file contains hidden or 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,70 @@ | ||
| --- | ||
| # | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
| # | ||
| title: Getting Started with Apache Polaris, Prometheus and Jaeger | ||
| linkTitle: Using Polaris with telemetry tools | ||
| type: docs | ||
| weight: 401 | ||
| --- | ||
|
|
||
| This example requires `jq` to be installed on your machine. | ||
|
|
||
| 1. Build the Polaris image if it's not already present locally: | ||
|
|
||
| ```shell | ||
| ./gradlew \ | ||
| :polaris-server:assemble \ | ||
| :polaris-server:quarkusAppPartsBuild --rerun \ | ||
| -Dquarkus.container-image.build=true | ||
| ``` | ||
|
|
||
| 2. Start the docker compose group by running the following command from the root of the repository: | ||
|
|
||
| ```shell | ||
| export ASSETS_PATH=$(pwd)/getting-started/assets/ | ||
| export CLIENT_ID=root | ||
| export CLIENT_SECRET=s3cr3t | ||
| docker compose -f getting-started/telemetry/docker-compose.yml up | ||
| ``` | ||
|
|
||
| 3. To access Polaris from the host machine, first request an access token: | ||
|
|
||
| ```shell | ||
| export POLARIS_TOKEN=$(curl -s http://localhost:8181/api/catalog/v1/oauth/tokens \ | ||
| --user root:s3cr3t \ | ||
| -d 'grant_type=client_credentials' \ | ||
| -d 'scope=PRINCIPAL_ROLE:ALL' | jq -r .access_token) | ||
| ``` | ||
|
|
||
| 4. Then, use the access token in the Authorization header when accessing Polaris; you can also test | ||
| the `Polaris-Request-Id` header; you should see it in all logs and traces: | ||
|
|
||
| ```shell | ||
| curl -v 'http://localhost:8181/api/management/v1/principal-roles' \ | ||
| -H "Authorization: Bearer $POLARIS_TOKEN" \ | ||
| -H "Polaris-Request-Id: 1234" | ||
| curl -v 'http://localhost:8181/api/catalog/v1/config?warehouse=quickstart_catalog' \ | ||
| -H "Authorization: Bearer $POLARIS_TOKEN" \ | ||
| -H "Polaris-Request-Id: 5678" | ||
| ``` | ||
|
|
||
| 5. Access the following services: | ||
|
|
||
| - Prometheus UI: browse to http://localhost:9093 to view metrics. | ||
| - Jaeger UI: browse to http://localhost:16686 to view traces. |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we delete this? We could say that
AWS s3to be more specific ifs3is too board here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your review, @flyrain! I removed that comment since the actual validation of role-arn for S3 storage has been removed from catalogs command in #2339, so the comment might be misleading now. We could specify AWS S3 but there is no specific validation for AWS S3 as well. I can replace it with a different relevant example if that makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, we are fine here. Sorry, I didn't notice #2339 has removed the check completely.