Repository navigation
feat(landing): Windows server monitoring tools guide #1581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
30b7250
feat(landing): Windows server monitoring guide
JeremyFunk 9c581e5
fix(landing): note the EU ingest endpoint in the Windows guide config
JeremyFunk 1486ade
feat(landing): revise the Windows server monitoring guide
JeremyFunk 9bc539a
fix(landing): note that Current Bandwidth counts bits in the Windows …
JeremyFunk c9c3532
fix(landing): one group prop for guide tabs that aren't languages
JeremyFunk e8c9b5b
feat(landing): add the Windows server monitoring guide screenshots
JeremyFunk 868577e
fix(landing): use the alert form's current labels in the Windows guide
JeremyFunk 4937f3c
Merge remote-tracking branch 'origin/main' into feat/guide-windows-se…
JeremyFunk 9d6b62e
feat(landing): rewrite the Windows server monitoring guide around wha…
JeremyFunk 0b5f143
Merge remote-tracking branch 'origin/main' into feat/guide-windows-se…
JeremyFunk e8d6165
feat(landing): key takeaways and why-it-matters line for the Windows …
JeremyFunk cbee450
fix(landing): windows guide links Datadog pricing, frames Maple as th…
JeremyFunk e3af2e9
fix(landing): windows guide pages on missing data instead of an outsi…
JeremyFunk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file added
BIN
+57 KB
...ding/public/screenshots/guides/windows-server-monitoring-02-service-status.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+56.9 KB
.../landing/public/screenshots/guides/windows-server-monitoring-03-event-logs.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
76 changes: 76 additions & 0 deletions
76
apps/landing/src/pages/guides/_windows-server-monitoring/config.yaml
This file contains hidden or 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,76 @@ | ||
| extensions: | ||
| file_storage: | ||
| directory: C:\ProgramData\OpenTelemetry Collector\storage | ||
| create_directory: true | ||
|
|
||
| receivers: | ||
| host_metrics: | ||
| collection_interval: 30s | ||
| scrapers: | ||
| cpu: | ||
| metrics: | ||
| system.cpu.utilization: | ||
| enabled: true | ||
| memory: | ||
| metrics: | ||
| system.memory.utilization: | ||
| enabled: true | ||
| filesystem: | ||
| exclude_fs_types: | ||
| fs_types: [CDFS, UDF] # CD and DVD drives always read 100% full | ||
| match_type: strict | ||
| metrics: | ||
| system.filesystem.utilization: | ||
| enabled: true | ||
| load: {} | ||
| network: {} | ||
|
|
||
| windows_service: | ||
| include_services: [W3SVC, MSSQLSERVER] # the services this server must keep running | ||
|
|
||
| windows_event_log/errors: | ||
| storage: file_storage | ||
| query: | | ||
| <QueryList> | ||
| <Query Id="0"> | ||
| <Select Path="System">*[System[(Level=1 or Level=2 or Level=3)]]</Select> | ||
| <Select Path="Application">*[System[(Level=1 or Level=2 or Level=3)]]</Select> | ||
| </Query> | ||
| </QueryList> | ||
| resource: | ||
| service.name: windows-eventlog | ||
|
|
||
| windows_event_log/security: | ||
| storage: file_storage | ||
| query: | | ||
| <QueryList> | ||
| <Query Id="0"> | ||
| <Select Path="Security">*[System[(EventID=4625 or EventID=4740)]]</Select> | ||
| </Query> | ||
| </QueryList> | ||
| resource: | ||
| service.name: windows-security | ||
|
|
||
| processors: | ||
| resource_detection: | ||
| detectors: [system] | ||
| batch: {} | ||
|
|
||
| exporters: | ||
| otlp_http/maple: | ||
| endpoint: https://ingest.maple.dev | ||
| compression: gzip | ||
| headers: | ||
| x-maple-ingest-key: ${env:MAPLE_INGEST_KEY} | ||
|
|
||
| service: | ||
| extensions: [file_storage] | ||
| pipelines: | ||
| metrics: | ||
| receivers: [host_metrics, windows_service] | ||
| processors: [resource_detection, batch] | ||
| exporters: [otlp_http/maple] | ||
| logs: | ||
| receivers: [windows_event_log/errors, windows_event_log/security] | ||
| processors: [resource_detection, batch] | ||
| exporters: [otlp_http/maple] |
5 changes: 5 additions & 0 deletions
5
apps/landing/src/pages/guides/_windows-server-monitoring/install.ps1
This file contains hidden or 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,5 @@ | ||
| $v = '0.164.0' | ||
| $msi = "$env:TEMP\otelcol-contrib.msi" | ||
| Invoke-WebRequest -OutFile $msi -Uri "https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v$v/otelcol-contrib_${v}_windows_x64.msi" | ||
| Start-Process msiexec.exe -ArgumentList "/i `"$msi`" /qn" -Wait | ||
| Get-Service otelcol-contrib | ||
6 changes: 6 additions & 0 deletions
6
apps/landing/src/pages/guides/_windows-server-monitoring/start.ps1
This file contains hidden or 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,6 @@ | ||
| $dir = 'C:\Program Files\OpenTelemetry Collector' | ||
| New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\otelcol-contrib' ` | ||
| -Name Environment -PropertyType MultiString -Value 'MAPLE_INGEST_KEY=YOUR_INGEST_KEY' -Force | ||
|
|
||
| & "$dir\otelcol-contrib.exe" validate --config "$dir\config.yaml" | ||
| Restart-Service otelcol-contrib |
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Warning
Install script downloads a
windows_x64MSI the releases do not publishF3 · Warning · correctness
The collector releases name their MSI after Go's arch,
otelcol-contrib_<version>_windows_amd64.msi; there is nowindows_x64asset.Invoke-WebRequeston a reader's server ends the first setup step with a 404, so nothing is installed and the rest of the guide cannot be followed.🤖 Prompt to fix with an AI agent