-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
profiling: add documentation for the config file and CLI arguments (#…
…4398) * profiling: add documentation for the config file Signed-off-by: Florian Lehner <florian.lehner@elastic.co> * Apply suggestions from code review Co-authored-by: Christos Kalkanis <christos.kalkanis@elastic.co> * Apply suggestions from code review Co-authored-by: Christos Kalkanis <christos.kalkanis@elastic.co> * Apply suggestions from code review Co-authored-by: Mike Birnstiehl <114418652+mdbirnstiehl@users.noreply.github.com> --------- Signed-off-by: Florian Lehner <florian.lehner@elastic.co> Co-authored-by: Christos Kalkanis <christos.kalkanis@elastic.co> Co-authored-by: Mike Birnstiehl <114418652+mdbirnstiehl@users.noreply.github.com>
- Loading branch information
1 parent
7652ad2
commit e335f27
Showing
4 changed files
with
54 additions
and
1 deletion.
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
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,30 @@ | ||
[[profiling-config-file]] | ||
= Configuration file of the Universal Profiling Agent | ||
|
||
The Universal Profiling Agent can be configured using a configuration file. Specify the path to the configuration file using the CLI argument `-config`. | ||
The default path for the configuration file is `/etc/Elastic/universal-profiling/pf-host-agent.conf`. | ||
|
||
The expected format of the configuration file is a plaintext file, where each line holds one option. | ||
|
||
Example: | ||
[source] | ||
---- | ||
project-id: 73 | ||
secret-token: abc123 | ||
collection-agent: example.com:443 | ||
---- | ||
|
||
WARNING: Command line arguments to the Universal Profiling Agent take precedence over environment variables, and environment variables take precedence over the configuration file. | ||
|
||
[options="header"] | ||
|================================== | ||
| Config file option | Type | Example | Description | ||
| `verbose` | `bool` | `verbose: true` | Run the Universal Profiling Agent in verbose mode. | ||
| `no-kernel-version-check` | `bool` | `no-kernel-version-check: true` | Disable the kernel version check. See <<profiling-no-kernel-version-check, Override kernel version check >> for more details. | ||
| `tags` | `string` | `tags: 'cloud_region:us-central1;env:staging'` | Set specific tags. See <<profiling-tag-data-query, Tag data for querying>> for more details. | ||
| `project-id` | `uint` | `project-id: 73` | Splits profiling data into logical groups that you control. You can assign any non-zero, unsigned integer <= 4095. | ||
| `secret-token` | `string` | `secret-token: abc123` | Set the secret token for communicating with the Universal Profiling Collector to `abc123`. | ||
| `collection-agent` | `string` | `collection-agent: example.com:443` | Set the destination for reporting profiling information to `example.com:443`. | ||
| `probabilistic-interval` | `duration` | `probabilistic-interval: 2m30s`| Set the probabilistic interval to `2m30s`. See <<profiling-probabilistic-profiling, Probabilistic profiling>> for more details. | ||
| `probabilistic-threshold` | `uint` | `probabilistic-threshold: 50` | Set the probabilistic threshold to `50`. See <<profiling-probabilistic-profiling, Probabilistic profiling>> for more details. | ||
|================================== |
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