MonitorDataCollectionRule is the Schema for the MonitorDataCollectionRules API. Manages a Data Collection Rule.
Type
CRD
Group
insights.azure.upbound.io
Version
v1beta1
apiVersion: insights.azure.upbound.io/v1beta1
kind: MonitorDataCollectionRule
MonitorDataCollectionRuleSpec defines the desired state of MonitorDataCollectionRule
No description provided.
One or more data_flow blocks as defined below.
Specifies a list of destination names. A azure_monitor_metrics data source only allows for stream of kind Microsoft-InsightsMetrics.
Specifies a list of streams. Possible values include but not limited to Microsoft-Event, Microsoft-InsightsMetrics, Microsoft-Perf, Microsoft-Syslog,and Microsoft-WindowsEvent.
A data_sources block as defined below. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
One or more extension blocks as defined below.
Specifies a list of data sources this extension needs data from. An item should be a name of a supported data source which produces only one stream. Supported data sources type: performance_counter, windows_event_log,and syslog.
Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Event,and Microsoft-WindowsEvent, Microsoft-RomeDetectionEvent, and Microsoft-SecurityEvent.
One or more performance_counter blocks as defined below.
Specifies a list of specifier names of the performance counters you want to collect. To get a list of performance counters on Windows, run the command typeperf. Please see this document for more information.
Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Event,and Microsoft-WindowsEvent, Microsoft-RomeDetectionEvent, and Microsoft-SecurityEvent.
One or more syslog blocks as defined below.
Specifies a list of facility names. Use a wildcard * to collect logs for all facility names. Possible values are auth, authpriv, cron, daemon, kern, lpr, mail, mark, news, syslog, user, uucp, local0, local1, local2, local3, local4, local5, local6, local7,and *.
Specifies a list of log levels. Use a wildcard * to collect logs for all log levels. Possible values are Debug, Info, Notice, Warning, Error, Critical, Alert, Emergency,and *.
Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Event,and Microsoft-WindowsEvent, Microsoft-RomeDetectionEvent, and Microsoft-SecurityEvent.
One or more windows_event_log blocks as defined below.
Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to Microsoft-Event,and Microsoft-WindowsEvent, Microsoft-RomeDetectionEvent, and Microsoft-SecurityEvent.
Specifies a list of Windows Event Log queries in XPath expression. Please see this document for more information.
A destinations block as defined below.
A azure_monitor_metrics block as defined above.
One or more log_analytics blocks as defined below.
Reference to a Workspace in operationalinsights to populate workspaceResourceId.
Policies for referencing.
Selector for a Workspace in operationalinsights to populate workspaceResourceId.
Policies for selection.
Reference to a ResourceGroup in azure to populate resourceGroupName.
Policies for referencing.
Selector for a ResourceGroup in azure to populate resourceGroupName.
Policies for selection.
ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.
Policies for referencing.
ProviderReference specifies the provider that will be used to create, observe, update, and delete this managed resource. Deprecated: Please use ProviderConfigReference, i.e. providerConfigRef
Policies for referencing.
PublishConnectionDetailsTo specifies the connection secret config which contains a name, metadata and a reference to secret store config to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource.
WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource. This field is planned to be replaced in a future release in favor of PublishConnectionDetailsTo. Currently, both could be set independently and connection details would be published to both without affecting each other.
MonitorDataCollectionRuleStatus defines the observed state of MonitorDataCollectionRule.
No description provided.
Conditions of the resource.
mdcraexample
apiVersion: insights.azure.upbound.io/v1beta1
kind: MonitorDataCollectionRule
metadata:
annotations:
meta.upbound.io/example-id: insights/v1beta1/monitordatacollectionruleassociation
labels:
testing.upbound.io/example-name: example
name: mdcraexample
spec:
forProvider:
dataFlow:
- destinations:
- example-destination-metrics
streams:
- Microsoft-InsightsMetrics
destinations:
- azureMonitorMetrics:
- name: example-destination-metrics
location: West Europe
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
mdcrexample
apiVersion: insights.azure.upbound.io/v1beta1
kind: MonitorDataCollectionRule
metadata:
annotations:
meta.upbound.io/example-id: insights/v1beta1/monitordatacollectionrule
labels:
testing.upbound.io/example-name: example
name: mdcrexample
spec:
forProvider:
dataFlow:
- destinations:
- test-destination-metrics
streams:
- Microsoft-InsightsMetrics
- destinations:
- test-destination-log
streams:
- Microsoft-InsightsMetrics
- Microsoft-Syslog
- Microsoft-Perf
dataSources:
- extension:
- extensionJson: |-
${jsonencode({
a = 1
b = "hello"
})}
extensionName: test-extension-name
inputDataSources:
- test-datasource-wineventlog
name: test-datasource-extension
streams:
- Microsoft-WindowsEvent
syslog:
- facilityNames:
- "*"
logLevels:
- "*"
name: test-datasource-syslog
windowsEventLog:
- name: test-datasource-wineventlog
streams:
- Microsoft-WindowsEvent
xPathQueries:
- "*[System!Level=1]"
description: data collection rule example
destinations:
- azureMonitorMetrics:
- name: test-destination-metrics
logAnalytics:
- name: test-destination-log
workspaceResourceIdSelector:
matchLabels:
testing.upbound.io/example-name: example
location: West Europe
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
tags:
foo: bar
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.