Skip to content

Commit 9e11056

Browse files
sync non-code with origin/main (#8025)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 9836e33 commit 9e11056

15 files changed

+153
-360
lines changed

.github/learning-path-sha.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1091b7405ce8707714bc0a8a43d0c6c924d1112d
1+
414fc673021e3f7723ecb1b8aa24ca55ed59e547

.github/workflows/scan-for-to-do-comments.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
COMMENT_AUTHOR: ${{ github.event.comment.user.login }}
2828

2929
- name: Upload artifacts
30-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1
30+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
3131
with:
3232
name: issue-todo
3333
path: issue/

.github/workflows/spellcheck.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ jobs:
1717
with:
1818
persist-credentials: false
1919

20-
- uses: streetsidesoftware/cspell-action@ef95dc49d631fc2a9e9ea089ae2b2127b7c4588e
20+
- uses: streetsidesoftware/cspell-action@8485bb4b688c68384c2f6db7ad931f5e3e63f21c
2121
name: Documentation spellcheck
2222
if: ${{ !cancelled() }}
2323
with:
2424
files: '**/*.md'
2525
inline: error
2626
incremental_files_only: true
2727

28-
- uses: streetsidesoftware/cspell-action@ef95dc49d631fc2a9e9ea089ae2b2127b7c4588e
28+
- uses: streetsidesoftware/cspell-action@8485bb4b688c68384c2f6db7ad931f5e3e63f21c
2929
name: Resx spellcheck
3030
if: ${{ !cancelled() }}
3131
with:
3232
files: 'src/**/*.resx'
3333
inline: error
3434
incremental_files_only: true
3535

36-
- uses: streetsidesoftware/cspell-action@ef95dc49d631fc2a9e9ea089ae2b2127b7c4588e
36+
- uses: streetsidesoftware/cspell-action@8485bb4b688c68384c2f6db7ad931f5e3e63f21c
3737
name: Source code spellcheck
3838
if: ${{ !cancelled() }}
3939
with:

.github/workflows/sync-branches.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
if: github.repository == 'dotnet/dotnet-monitor'
1515
strategy:
1616
matrix:
17-
branch: ["release/8.0", "release/8.x", "release/9.x"]
17+
branch: ["release/8.x", "release/9.0", "release/9.x"]
1818
name: 'Sync non-code to ${{ matrix.branch }}'
1919
runs-on: ubuntu-latest
2020
permissions:
@@ -52,12 +52,10 @@ jobs:
5252
auth_token: ${{ secrets.GITHUB_TOKEN }}
5353

5454
sync-code:
55-
# Disable code sync
56-
if: false
57-
#if: github.repository == 'dotnet/dotnet-monitor'
55+
if: github.repository == 'dotnet/dotnet-monitor'
5856
strategy:
5957
matrix:
60-
branch: ["feature/9.x"]
58+
branch: ["feature/10.0"]
6159
name: 'Sync branch with ${{ matrix.branch }}'
6260
runs-on: ubuntu-latest
6361
permissions:

documentation/api/definitions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ Some properties will have non-null values for processes that are running on .NET
530530
| `commandLine` | string | The command line of the process (includes process path and arguments) |
531531
| `operatingSystem` | string | `.NET 5+` The operating system on which the process is running (e.g. `windows`, `linux`, `macos`).<br/>`.NET Core 3.1` A value of `null`. |
532532
| `processArchitecture` | string | `.NET 5+` The architecture of the process (e.g. `x64`, `x86`).<br/>`.NET Core 3.1` A value of `null`. |
533+
| `managedEntryPointAssemblyName` | string | `9.1+` The name of the managed entry point assembly. The entry point assembly is typically the assembly that contains the `Program` class for the application. |
533534

534535
The `uid` property is useful for uniquely identifying a process when it is running in an environment where the process ID may not be unique (e.g. multiple containers within a Kubernetes pod will have entrypoint processes with process ID 1).
535536

documentation/api/process-get.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ Content-Type: application/json
7373
"name": "dotnet",
7474
"commandLine": "\"C:\\Program Files\\dotnet\\dotnet.exe\" ConsoleApp1.dll",
7575
"operatingSystem": "Windows",
76-
"processArchitecture": "x64"
76+
"processArchitecture": "x64",
77+
"managedEntryPointAssemblyName": "ConsoleApp1"
7778
}
7879
```
7980

documentation/configuration/default-process-configuration.md

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Default process configuration is used to determine which process is used for met
44

55
| Name | Type | Description |
66
|---|---|---|
7-
| Key | string | Specifies which criteria to match on the process. Can be `ProcessId`, `ProcessName`, `CommandLine`. |
7+
| Key | string | Specifies which criteria to match on the process. Can be `ProcessId`, `ProcessName`, `CommandLine`, `ManagedEntryPointAssemblyName`. |
88
| Value | string | The value to match against the process. |
99
| MatchType | string | The type of match to perform. Can be `Exact` or `Contains` for sub-string matching. Both are case-insensitive.|
1010

@@ -16,6 +16,7 @@ Optionally, a shorthand format allows you to omit the `Key` and `Value` terms an
1616
| ProcessId | string | Specifies that the corresponding value is the expected `ProcessId`. |
1717
| ProcessName | string | Specifies that the corresponding value is the expected `ProcessName`. |
1818
| CommandLine | string | Specifies that the corresponding value is the expected `CommandLine`.|
19+
| ManagedEntryPointAssemblyName | string | Specifies that the corresponding value is the expected `ManagedEntryPointAssemblyName`. |
1920

2021
## Examples
2122

@@ -158,3 +159,73 @@ Optionally, a shorthand format allows you to omit the `Key` and `Value` terms an
158159
value: "1"
159160
```
160161
</details>
162+
163+
### Match MyApp.dll Entry Point
164+
165+
<details>
166+
<summary>JSON</summary>
167+
168+
```json
169+
{
170+
"DefaultProcess": {
171+
"Filters": [{
172+
"Key": "ManagedEntryPointAssemblyName",
173+
"Value": "MyApp"
174+
}]
175+
},
176+
}
177+
```
178+
</details>
179+
180+
<details>
181+
<summary>Kubernetes ConfigMap</summary>
182+
183+
```yaml
184+
DefaultProcess__Filters__0__Key: "ManagedEntryPointAssemblyName"
185+
DefaultProcess__Filters__0__Value: "MyApp"
186+
```
187+
</details>
188+
189+
<details>
190+
<summary>Kubernetes Environment Variables</summary>
191+
192+
```yaml
193+
- name: DotnetMonitor_DefaultProcess__Filters__0__Key
194+
value: "ManagedEntryPointAssemblyName"
195+
- name: DotnetMonitor_DefaultProcess__Filters__0__Value
196+
value: "MyApp"
197+
```
198+
</details>
199+
200+
### Match MyApp.dll Entry Point (Shorthand)
201+
202+
<details>
203+
<summary>JSON</summary>
204+
205+
```json
206+
{
207+
"DefaultProcess": {
208+
"Filters": [{
209+
"ManagedEntryPointAssemblyName": "MyApp"
210+
}]
211+
},
212+
}
213+
```
214+
</details>
215+
216+
<details>
217+
<summary>Kubernetes ConfigMap</summary>
218+
219+
```yaml
220+
DefaultProcess__Filters__0__ManagedEntryPointAssemblyName: "MyApp"
221+
```
222+
</details>
223+
224+
<details>
225+
<summary>Kubernetes Environment Variables</summary>
226+
227+
```yaml
228+
- name: DotnetMonitor_DefaultProcess__Filters__0__ManagedEntryPointAssemblyName
229+
value: "MyApp"
230+
```
231+
</details>

documentation/docker-compose.md

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -12,65 +12,7 @@ Starting with .NET 8.0, both the sample ASP.NET application and dotnet-monitor r
1212

1313
## Example Deployment
1414

15-
The following examples demonstrate a deployment of the dotnet-monitor container image monitoring an application container as services.
16-
17-
<details>
18-
<summary>.NET Monitor 8+</summary>
19-
20-
```yaml
21-
# Tell us about your experience using dotnet monitor: https://aka.ms/dotnet-monitor-survey
22-
services:
23-
app:
24-
image: mcr.microsoft.com/dotnet/samples:aspnetapp-chiseled
25-
ports:
26-
- "8080:8080"
27-
environment:
28-
- DOTNET_DiagnosticPorts=/diag/dotnet-monitor.sock
29-
volumes:
30-
- diagvol:/diag
31-
deploy:
32-
resources:
33-
limits:
34-
cpus: '0.250'
35-
memory: 512M
36-
37-
monitor:
38-
image: mcr.microsoft.com/dotnet/monitor:8
39-
# DO NOT use the --no-auth argument for deployments in production; this argument is used for demonstration
40-
# purposes only in this example. Please continue reading after this example for further details.
41-
command: ["collect", "--no-auth"]
42-
ports:
43-
- "52323:52323"
44-
- "52325:52325"
45-
environment:
46-
- DOTNETMONITOR_DiagnosticPort__ConnectionMode=Listen
47-
- DOTNETMONITOR_Storage__DefaultSharedPath=/diag
48-
# ALWAYS use the HTTPS form of the URL for deployments in production; the removal of HTTPS is done for
49-
# demonstration purposes only in this example. Please continue reading after this example for further details.
50-
- DOTNETMONITOR_Urls=http://+:52323
51-
# The metrics URL is set in the CMD instruction of the image by default. However, this deployment overrides that with the args setting; manually set the URL to the same value using configuration.
52-
- DOTNETMONITOR_Metrics__Endpoints=http://+:52325
53-
# The image will output logging in a json format by default, which is great for ingestion by tools such as Azure Monitor Log Analytics.
54-
# Switch the logging format to simple for this sample for easier reading.
55-
- Logging__Console__FormatterName=simple
56-
volumes:
57-
- diagvol:/diag
58-
deploy:
59-
resources:
60-
reservations:
61-
cpus: '0.050'
62-
memory: 50M
63-
limits:
64-
cpus: '0.250'
65-
memory: 256M
66-
67-
volumes:
68-
diagvol:
69-
driver_opts:
70-
type: tmpfs
71-
device: tmpfs
72-
```
73-
</details>
15+
The [Docker Compose](../samples/Docker/compose.yaml) example demonstrates a deployment of the .NET Monitor 8 container image monitoring an application container as services.
7416

7517
## Example Details
7618

0 commit comments

Comments
 (0)