Skip to content

Commit 1db4543

Browse files
Update API endpoint for profiling setup commands (#2865)
Paired with elastic/kibana#234065, adjust the documentation for the new public API to setup Profiling in 9.2+ --------- Co-authored-by: florent-leborgne <[email protected]>
1 parent 9471c75 commit 1db4543

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

solutions/observability/infra-and-hosts/get-started-with-universal-profiling.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ If you’re upgrading from a previous version with Universal Profiling enabled,
8787

8888

8989
### Programmatic configuration [profiling-configure-data-ingestion-programmatic]
90+
```{applies_to}
91+
stack: ga 9.2
92+
```
9093

9194
If you prefer to configure data ingestion programmatically, you can use a Kibana API call. This call can be made either through the "Dev Tools" console in Kibana or with any standalone HTTP client (such as `curl` or `wget`). In both cases, the API call must be executed using the `elastic` user credentials to ensure the necessary permissions.
9295

@@ -95,15 +98,15 @@ A successful API call will return a `202 Accepted` response with an empty body.
9598
To configure data ingestion from the console, go to **Dev Tools** in the navigation menu and run the following command:
9699

97100
```console
98-
POST kbn:/internal/profiling/setup/es_resources
101+
POST kbn:/api/profiling/setup/es_resources
99102
{}
100103
```
101104

102105
To configure data ingestion programmatically using a standalone HTTP client (e.g., `curl`), run the following command:
103106

104107
```console
105108
curl -u elastic:<PASSWORD> -H "kbn-xsrf: true" -H "Content-Type: application/json" \
106-
--data "{}" "https://<kibana-host>:<kibana-port>/internal/profiling/setup/es_resources"
109+
--data "{}" "https://<kibana-host>:<kibana-port>/api/profiling/setup/es_resources"
107110
```
108111

109112

0 commit comments

Comments
 (0)