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.
Reference to a MonitorDataCollectionEndpoint in insights to populate dataCollectionEndpointId.
Policies for referencing.
Selector for a MonitorDataCollectionEndpoint in insights to populate dataCollectionEndpointId.
Policies for selection.
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.
A data_import block as defined above.
An event_hub_data_source block as defined below.
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.
One or more iis_log blocks as defined below.
Specifies a list of absolute paths where the log files are located.
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.
One or more log_file blocks as defined below.
Specifies a list of file patterns where the log files are located. For example, C:\JavaLogs\*.log.
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.
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.
One or more prometheus_forwarder 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.
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.
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.
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 event_hub blocks as defined below.
Reference to a EventHub in eventhub to populate eventHubId.
Policies for referencing.
Selector for a EventHub in eventhub to populate eventHubId.
Policies for selection.
One or more event_hub blocks as defined below.
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.
One or more monitor_account blocks as defined below.
One or more storage_blob blocks as defined below.
Reference to a Container in storage to populate containerName.
Policies for referencing.
Selector for a Container in storage to populate containerName.
Policies for selection.
Reference to a Account in storage to populate storageAccountId.
Policies for referencing.
Selector for a Account in storage to populate storageAccountId.
Policies for selection.
One or more storage_blob_direct blocks as defined below.
One or more storage_table_direct blocks as defined below.
An identity block as defined below.
A list of User Assigned Managed Identity IDs to be assigned to this Data Collection Rule. Currently, up to 1 identity is supported.
Reference to a ResourceGroup in azure to populate resourceGroupName.
Policies for referencing.
Selector for a ResourceGroup in azure to populate resourceGroupName.
Policies for selection.
A stream_declaration block as defined below.
THIS IS AN ALPHA FIELD. Do not use it in production. It is not honored unless the relevant Crossplane feature flag is enabled, and may be changed or removed without notice. InitProvider holds the same fields as ForProvider, with the exception of Identifier and other resource reference fields. The fields that are in InitProvider are merged into ForProvider when the resource is created. The same fields are also added to the terraform ignore_changes hook, to avoid updating them after creation. This is useful for fields that are required on creation, but we do not desire to update them after creation, for example because of an external controller is managing them, like an autoscaler.
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.
A data_import block as defined above.
An event_hub_data_source block as defined below.
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.
One or more iis_log blocks as defined below.
Specifies a list of absolute paths where the log files are located.
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.
One or more log_file blocks as defined below.
Specifies a list of file patterns where the log files are located. For example, C:\JavaLogs\*.log.
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.
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.
One or more prometheus_forwarder 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.
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.
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.
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 event_hub blocks as defined below.
One or more log_analytics blocks as defined below.
One or more monitor_account blocks as defined below.
One or more storage_blob blocks as defined below.
One or more storage_blob_direct blocks as defined below.
One or more storage_table_direct blocks as defined below.
An identity block as defined below.
A list of User Assigned Managed Identity IDs to be assigned to this Data Collection Rule. Currently, up to 1 identity is supported.
A stream_declaration block as defined below.
THIS IS AN ALPHA FIELD. Do not use it in production. It is not honored unless the relevant Crossplane feature flag is enabled, and may be changed or removed without notice. ManagementPolicies specify the array of actions Crossplane is allowed to take on the managed and external resources. This field is planned to replace the DeletionPolicy field in a future release. Currently, both could be set independently and non-default values would be honored if the feature flag is enabled. If both are custom, the DeletionPolicy field will be ignored. See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md
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.
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.
A data_import block as defined above.
An event_hub_data_source block as defined below.
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.
One or more iis_log blocks as defined below.
Specifies a list of absolute paths where the log files are located.
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.
One or more log_file blocks as defined below.
Specifies a list of file patterns where the log files are located. For example, C:\JavaLogs\*.log.
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.
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.
One or more prometheus_forwarder 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.
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.
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.
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 event_hub blocks as defined below.
One or more event_hub blocks as defined below.
One or more log_analytics blocks as defined below.
One or more monitor_account blocks as defined below.
One or more storage_blob blocks as defined below.
One or more storage_blob_direct blocks as defined below.
One or more storage_table_direct blocks as defined below.
An identity block as defined below.
A list of User Assigned Managed Identity IDs to be assigned to this Data Collection Rule. Currently, up to 1 identity is supported.
A stream_declaration block as defined below.
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.