Documentation Fixes (Switching Paths To Queries) (#567)
This commit is contained in:
Родитель
f2be1ca27c
Коммит
e012be4a87
|
@ -1,5 +1,5 @@
|
|||
# Default Process
|
||||
|
||||
When using APIs to capture diagnostic artifacts, typically a `pid`, `uid`, or `name` is provided to perform the operation on a specific process. However, these parameters may be omitted if dotnet-monitor is able to resolve a default process.
|
||||
When using APIs to capture diagnostic artifacts, typically a `pid`, `uid`, or `name` is provided to perform the operation on a specific process. However, these parameters may be omitted if `dotnet monitor` is able to resolve a default process.
|
||||
|
||||
The tool is able to resolve a default process if there is one and only one observable process. If there are no processes or there are more that one process, any API that allows operating on the default process will fail when invoked.
|
||||
The tool is able to resolve a default process if there is one and only one observable process. If there are no processes or there are more that one process, any API that allows operating on the default process will fail when invoked.
|
||||
|
|
|
@ -20,9 +20,9 @@ The default host address for these routes is `https://localhost:52323`. This rou
|
|||
|
||||
| Name | In | Required | Type | Description |
|
||||
|---|---|---|---|---|
|
||||
| `pid` | path | false | int | The ID of the process. |
|
||||
| `uid` | path | false | guid | A value that uniquely identifies a runtime instance within a process. |
|
||||
| `name` | path | false | string | The name of the process. |
|
||||
| `pid` | query | false | int | The ID of the process. |
|
||||
| `uid` | query | false | guid | A value that uniquely identifies a runtime instance within a process. |
|
||||
| `name` | query | false | string | The name of the process. |
|
||||
| `type` | query | false | [DumpType](definitions.md#DumpType) | The type of dump to capture. Default value is `WithHeap` |
|
||||
| `egressProvider` | query | false | string | If specified, uses the named egress provider for egressing the collected dump. When not specified, the dump is written to the HTTP response stream. See [Egress Providers](../egress.md) for more details. |
|
||||
|
||||
|
|
|
@ -24,9 +24,9 @@ The default host address for these routes is `https://localhost:52323`. This rou
|
|||
|
||||
| Name | In | Required | Type | Description |
|
||||
|---|---|---|---|---|
|
||||
| `pid` | path | false | int | The ID of the process. |
|
||||
| `uid` | path | false | guid | A value that uniquely identifies a runtime instance within a process. |
|
||||
| `name` | path | false | string | The name of the process. |
|
||||
| `pid` | query | false | int | The ID of the process. |
|
||||
| `uid` | query | false | guid | A value that uniquely identifies a runtime instance within a process. |
|
||||
| `name` | query | false | string | The name of the process. |
|
||||
| `egressProvider` | query | false | string | If specified, uses the named egress provider for egressing the collected GC dump. When not specified, the GC dump is written to the HTTP response stream. See [Egress Providers](../egress.md) for more details. |
|
||||
|
||||
See [ProcessIdentifier](definitions.md#ProcessIdentifier) for more details about the `pid`, `uid`, and `name` parameters.
|
||||
|
|
|
@ -20,9 +20,9 @@ The default host address for these routes is `https://localhost:52323`. This rou
|
|||
|
||||
| Name | In | Required | Type | Description |
|
||||
|---|---|---|---|---|
|
||||
| `pid` | path | false | int | The ID of the process. |
|
||||
| `uid` | path | false | guid | A value that uniquely identifies a runtime instance within a process. |
|
||||
| `name` | path | false | string | The name of the process. |
|
||||
| `pid` | query | false | int | The ID of the process. |
|
||||
| `uid` | query | false | guid | A value that uniquely identifies a runtime instance within a process. |
|
||||
| `name` | query | false | string | The name of the process. |
|
||||
| `durationSeconds` | query | false | int | The duration of the log collection operation in seconds. Default is `30`. Min is `-1` (indefinite duration). Max is `2147483647`. |
|
||||
| `egressProvider` | query | false | string | If specified, uses the named egress provider for egressing the collected logs. When not specified, the logs are written to the HTTP response stream. See [Egress Providers](../egress.md) for more details. |
|
||||
|
||||
|
|
|
@ -20,9 +20,9 @@ The default host address for these routes is `https://localhost:52323`. This rou
|
|||
|
||||
| Name | In | Required | Type | Description |
|
||||
|---|---|---|---|---|
|
||||
| `pid` | path | false | int | The ID of the process. |
|
||||
| `uid` | path | false | guid | A value that uniquely identifies a runtime instance within a process. |
|
||||
| `name` | path | false | string | The name of the process. |
|
||||
| `pid` | query | false | int | The ID of the process. |
|
||||
| `uid` | query | false | guid | A value that uniquely identifies a runtime instance within a process. |
|
||||
| `name` | query | false | string | The name of the process. |
|
||||
| `level` | query | false | [LogLevel](definitions.md#LogLevel) | The name of the log level at which log events are collected. If not specified, logs are collected levels as specified by the [application-defined configuration](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/#configure-logging). |
|
||||
| `durationSeconds` | query | false | int | The duration of the log collection operation in seconds. Default is `30`. Min is `-1` (indefinite duration). Max is `2147483647`. |
|
||||
| `egressProvider` | query | false | string | If specified, uses the named egress provider for egressing the collected logs. When not specified, the logs are written to the HTTP response stream. See [Egress Providers](../egress.md) for more details. |
|
||||
|
|
|
@ -18,13 +18,13 @@ The default host address for these routes is `https://localhost:52323`. This rou
|
|||
|
||||
| Name | In | Required | Type | Description |
|
||||
|---|---|---|---|---|
|
||||
| `pid` | path | true | int | The ID of the process. |
|
||||
| `uid` | path | true | guid | A value that uniquely identifies a runtime instance within a process. |
|
||||
| `name` | path | true | string | The name of the process. |
|
||||
| `pid` | query | false | int | The ID of the process. |
|
||||
| `uid` | query | false | guid | A value that uniquely identifies a runtime instance within a process. |
|
||||
| `name` | query | false | string | The name of the process. |
|
||||
|
||||
See [ProcessIdentifier](definitions.md#ProcessIdentifier) for more details about the `pid`, `uid`, and `name` parameters.
|
||||
|
||||
One of `pid`, `uid`, or `name` are required, but not all.
|
||||
If none of `pid`, `uid`, or `name` are specified, the environment block of the [default process](defaultprocess.md) will be provided. Attempting to get the environment block of the default process when the default process cannot be resolved will fail.
|
||||
|
||||
## Authentication
|
||||
|
||||
|
|
|
@ -18,13 +18,13 @@ The default host address for these routes is `https://localhost:52323`. This rou
|
|||
|
||||
| Name | In | Required | Type | Description |
|
||||
|---|---|---|---|---|
|
||||
| `pid` | path | true | int | The ID of the process. |
|
||||
| `uid` | path | true | guid | A value that uniquely identifies a runtime instance within a process. |
|
||||
| `name` | path | true | string | The name of the process. |
|
||||
| `pid` | query | false | int | The ID of the process. |
|
||||
| `uid` | query | false | guid | A value that uniquely identifies a runtime instance within a process. |
|
||||
| `name` | query | false | string | The name of the process. |
|
||||
|
||||
See [ProcessIdentifier](definitions.md#ProcessIdentifier) for more details about the `pid`, `uid`, and `name` parameters.
|
||||
|
||||
One of `pid`, `uid`, or `name` are required, but not all.
|
||||
If none of `pid`, `uid`, or `name` are specified, information about the [default process](defaultprocess.md) will be provided. Attempting to get information from the default process when the default process cannot be resolved will fail.
|
||||
|
||||
## Authentication
|
||||
|
||||
|
|
|
@ -18,9 +18,9 @@ The default host address for these routes is `https://localhost:52323`. This rou
|
|||
|
||||
| Name | In | Required | Type | Description |
|
||||
|---|---|---|---|---|
|
||||
| `pid` | path | false | int | The ID of the process. |
|
||||
| `uid` | path | false | guid | A value that uniquely identifies a runtime instance within a process. |
|
||||
| `name` | path | false | string | The name of the process. |
|
||||
| `pid` | query | false | int | The ID of the process. |
|
||||
| `uid` | query | false | guid | A value that uniquely identifies a runtime instance within a process. |
|
||||
| `name` | query | false | string | The name of the process. |
|
||||
| `durationSeconds` | query | false | int | The duration of the trace operation in seconds. Default is `30`. Min is `-1` (indefinite duration). Max is `2147483647`. |
|
||||
| `egressProvider` | query | false | string | If specified, uses the named egress provider for egressing the collected trace. When not specified, the trace is written to the HTTP response stream. See [Egress Providers](../egress.md) for more details. |
|
||||
|
||||
|
|
|
@ -18,9 +18,9 @@ The default host address for these routes is `https://localhost:52323`. This rou
|
|||
|
||||
| Name | In | Required | Type | Description |
|
||||
|---|---|---|---|---|
|
||||
| `pid` | path | false | int | The ID of the process. |
|
||||
| `uid` | path | false | guid | A value that uniquely identifies a runtime instance within a process. |
|
||||
| `name` | path | false | string | The name of the process. |
|
||||
| `pid` | query | false | int | The ID of the process. |
|
||||
| `uid` | query | false | guid | A value that uniquely identifies a runtime instance within a process. |
|
||||
| `name` | query | false | string | The name of the process. |
|
||||
| `profile` | query | false | [TraceProfile](definitions.md#TraceProfile) | The name of the profile(s) used to collect events. See [TraceProfile](definitions.md#TraceProfile) for details on the list of event providers, levels, and keywords each profile represents. Multiple profiles may be specified by separating them with commas. Default is `Cpu,Http,Metrics` |
|
||||
| `durationSeconds` | query | false | int | The duration of the trace operation in seconds. Default is `30`. Min is `-1` (indefinite duration). Max is `2147483647`. |
|
||||
| `metricsIntervalSeconds` | query | false | int | The interval (in seconds) at which metrics are collected. Only applicable for the `Metrics` profile. Default is `1`. Min is `1`. Max is `2147483647`. |
|
||||
|
|
|
@ -9,7 +9,7 @@ The recommended configuration for `dotnet monitor` is to use [API Key Authentica
|
|||
## Windows Authentication
|
||||
We only recommend using Windows Authentication if you're running `dotnet monitor` as a local development tool on Windows; for all other environments using an [API Key](#api-key-authentication) is recommended.
|
||||
|
||||
Windows authentication doesn't require explicit configuration and is enabled automatically when running `dotnet monitor` on Windows. When available, dotnet-monitor will authorize any user authenticated as the same user that started the `dotnet monitor` process. It is not possible to disable Windows authentication.
|
||||
Windows authentication doesn't require explicit configuration and is enabled automatically when running `dotnet monitor` on Windows. When available, `dotnet monitor` will authorize any user authenticated as the same user that started the `dotnet monitor` process. It is not possible to disable Windows authentication.
|
||||
|
||||
> **NOTE:** Windows authentication will not be attempted if you are running `dotnet monitor` as an Administrator
|
||||
|
||||
|
@ -23,7 +23,7 @@ An API Key is the recommended authentication mechanism for `dotnet monitor`. To
|
|||
The API Key you use to secure `dotnet monitor` should be a 32-byte cryptographically random secret. You can generate a key either using `dotnet monitor` or via your shell. To generate an API Key with `dotnet monitor`, simply invoke the `generatekey` command:
|
||||
|
||||
```powershell
|
||||
dotnet-monitor generatekey
|
||||
dotnet monitor generatekey
|
||||
```
|
||||
|
||||
The output from this command will display the API Key formatted as an authentication header along with its hash and associated hashing algorithm. You will need to store the `ApiKeyHash` and `ApiKeyHashType` in the configuration for `dotnet monitor` and use the authorization header value when making requests to the `dotnet monitor` HTTPS endpoint.
|
||||
|
@ -147,5 +147,5 @@ Disabling authentication could enable lower privileged processes to exfiltrate s
|
|||
|
||||
Authentication can be turned off by specifying the `--no-auth` option to `dotnet monitor` at startup:
|
||||
```powershell
|
||||
dotnet-monitor collect --no-auth
|
||||
dotnet monitor collect --no-auth
|
||||
```
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# Egress Providers
|
||||
|
||||
Dotnet-monitor supports configuration of [egress providers](./configuration.md#egress-configuration) that can be used to egress artifacts externally, instead of to the client. This is supported for dumps, gcdumps, traces, and logs. Currently supported providers are Azure blob storage and filesystem.
|
||||
`dotnet monitor` supports configuration of [egress providers](./configuration.md#egress-configuration) that can be used to egress artifacts externally, instead of to the client. This is supported for dumps, gcdumps, traces, and logs. Currently supported providers are Azure blob storage and filesystem.
|
||||
|
||||
Egress providers must first be named and configured in dotnet-monitor configuration. They can then be referenced from a request, and will cause an egress based on the provider configuration, rather than directly back to the client.
|
||||
Egress providers must first be named and configured in `dotnet monitor` configuration. They can then be referenced from a request, and will cause an egress based on the provider configuration, rather than directly back to the client.
|
||||
|
||||
> **NOTE:** The filesystem provider can be used to egress to [kubernetes volumes](https://kubernetes.io/docs/concepts/storage/volumes/).
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче