-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
winregistry
module to the check subcommand (#23303)
* Add `winregistry` and `agentcrashdetect` modules to the check subcommand * [skip-ci] Add release note * Remove the crash detect module * Update release notes * Renamed release note * Update command_not_windows.go * Update command_not_windows.go * Rename not_windows into notwindows * Ensure unit test pass by creating the config
- Loading branch information
1 parent
c2739c9
commit 295a14b
Showing
5 changed files
with
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Unless explicitly stated otherwise all files in this repository are licensed | ||
// under the Apache License Version 2.0. | ||
// This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
// Copyright 2016-present Datadog, Inc. | ||
|
||
//go:build !windows | ||
|
||
package check | ||
|
||
import "go.uber.org/fx" | ||
|
||
func getPlatformModules() fx.Option { | ||
return fx.Options() | ||
} |
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,21 @@ | ||
// Unless explicitly stated otherwise all files in this repository are licensed | ||
// under the Apache License Version 2.0. | ||
// This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
// Copyright 2016-present Datadog, Inc. | ||
|
||
//go:build windows | ||
|
||
package check | ||
|
||
import ( | ||
"github.com/DataDog/datadog-agent/comp/checks/winregistry" | ||
winregistryimpl "github.com/DataDog/datadog-agent/comp/checks/winregistry/impl" | ||
"go.uber.org/fx" | ||
) | ||
|
||
func getPlatformModules() fx.Option { | ||
return fx.Options( | ||
winregistryimpl.Module(), | ||
fx.Invoke(func(_ winregistry.Component) {}), | ||
) | ||
} |
4 changes: 4 additions & 0 deletions
4
releasenotes/notes/add-winregistry-module-to-the-check-subcommand-45abb1b101f11316.yaml
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,4 @@ | ||
--- | ||
fixes: | ||
- | | ||
The `windows_registry` check can be run with the `check` sub-command. |