Skip to content

Commit

Permalink
programmatic configuration of data ingestion
Browse files Browse the repository at this point in the history
Closes elastic/prodfiler/issues/5319.

Signed-off-by: inge4pres <[email protected]>
  • Loading branch information
inge4pres committed Nov 8, 2024
1 parent 2b62f5d commit a3574fc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/en/observability/profiling-get-started.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,30 @@ NOTE: To configure data ingestion, you need elevated privileges, typically the `

If you're upgrading from a previous version with Universal Profiling enabled, see the <<profiling-upgrade,upgrade guide>>.

[discrete]
[[profiling-configure-data-ingestion-programmatic]]
=== Programmatic configuration

If you prefer to configure data ingestion programmatically, you can use a Kibana API call.
The API call can be performed either via the "Dev Tools" console in Kibana or any standalone HTTP client (like `curl` or `wget`).
In both cases, the API call will have tobe executed with the `elastic` user credentials to have the necessary permissions.

A successful API call will return a `202 Accepted` response with an empty body.

To configure data ingestion from the console, go to *Dev Tools* from the navigation menu and execute the following snippet:
[source,console]
----
POST kbn:/internal/profiling/setup/es_resources
{}
----

To configure data ingestion programmatically using a standalone HTTP client (e.g. `curl`), execute the following command:
[source,console]
----
curl -u elastic:<PASSWORD> -H "kbn-xsrf: true" -H "Content-Type: application/json" \
--data "{}" "https://<kibana-host>:<kibana-port>/internal/profiling/setup/es_resources"
----

[discrete]
[[profiling-install-profiling-agent]]
== Install the Universal Profiling Agent
Expand Down

0 comments on commit a3574fc

Please sign in to comment.