Skip to content

Commit 1f1382c

Browse files
ian28223claude
andauthored
[windows_certificate] Document certificate_store_regex configuration (Agent v7.80.0) (DataDog#23616)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 560b68f commit 1f1382c

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

windows_certificate/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,25 @@ instances:
6868
```
6969
The `policy_validation_flags` [suppress specific validation errors][12] that may not be relevant for your use case. See the [`sample windows_certificate.d/conf.yaml`][4] for a list of all the flags available for use.
7070

71+
Beginning with Agent v7.80.0, the integration supports `certificate_store_regex`, a list of [Go `regexp`][13] patterns matched against store names enumerated from `HKEY_LOCAL_MACHINE\Software\Microsoft\SystemCertificates`. Either `certificate_store`, `certificate_store_regex`, or both must be configured.
72+
73+
This example configuration monitors all certificates in the `ROOT` store as well as any stores whose names start with `Trusted`:
74+
75+
```yaml
76+
instances:
77+
- certificate_store: ROOT
78+
certificate_store_regex:
79+
- ^Trusted
80+
```
81+
82+
This example configuration monitors all certificates across all stores:
83+
84+
```yaml
85+
instances:
86+
- certificate_store_regex:
87+
- .*
88+
```
89+
7190
### Tags
7291

7392
The integration automatically tags all metrics and service checks with the name of the store in the `certificate_store:<STORE>` tag. Certificate metrics and service checks are tagged with the certificate's subjects, thumbprints and serial numbers. CRL metrics and service checks are tagged with the CRL's issuer and thumbprint.
@@ -135,3 +154,4 @@ Need additional help? Contact [Datadog support][9].
135154
[10]: https://docs.datadoghq.com/agent/guide/agent-configuration-files/#agent-configuration-directory
136155
[11]: https://learn.microsoft.com/en-us/windows-server/networking/technologies/nps/network-policy-server-certificate-revocation-list-overview
137156
[12]: https://learn.microsoft.com/en-us/windows/win32/api/wincrypt/ns-wincrypt-cert_chain_policy_para
157+
[13]: https://pkg.go.dev/regexp/syntax

0 commit comments

Comments
 (0)