Data Source: oci_stack_monitoring_metric_extension
This data source provides details about a specific Metric Extension resource in Oracle Cloud Infrastructure Stack Monitoring service.
Gets a Metric Extension by identifier
Example Usage
data "oci_stack_monitoring_metric_extension" "test_metric_extension" {
	#Required
	metric_extension_id = oci_stack_monitoring_metric_extension.test_metric_extension.id
}
Argument Reference
The following arguments are supported:
- metric_extension_id- (Required) The OCID of the metric extension resource.
Attributes Reference
The following attributes are exported:
- collection_method- Collection Method Metric Extension applies
- collection_recurrences- Schedule of metric extension should use RFC 5545 format -> recur-rule-part = “FREQ”;“INTERVAL” where FREQ rule part identifies the type of recurrence rule. Valid values are “MINUTELY”,“HOURLY”,“DAILY” to specify repeating events based on an interval of a minute, an hour and a day or more. Example- FREQ=DAILY;INTERVAL=1
- compartment_id- Compartment Identifier OCID
- created_by- Created by user
- description- Description of the metric extension.
- display_name- Metric Extension resource display name
- enabled_on_resources- List of resource details objects having resourceIds on which this metric extension is enabled.- resource_id- The OCID of the resource on which Metric Extension is enabled
 
- enabled_on_resources_count- Count of resources on which this metric extension is enabled.
- id- The OCID of Metric Extension resource
- last_updated_by- Last updated by user
- metric_list- List of metrics which are part of this metric extension- compute_expression- Compute Expression to calculate the value of this metric
- data_type- Data type of value of this metric
- display_name- Display name of the metric.
- is_dimension- Current metric need to be included as dimension or not
- is_hidden- Flag to marks whether a metric has to be uploaded or not. When isHidden = false -> Metric is uploaded, isHidden = true -> Metric is NOT uploaded
- metric_category- Metric category
- name- Name of the metric.
- unit- Unit of metric value
 
- name- Metric Extension resource name
- query_properties- Collection method and query properties details of metric extension- arguments- Arguments required by either command or script
- auto_row_prefix- Prefix for an auto generated metric, in case multiple rows with non unique key values are returned
- collection_method- Type of possible collection methods.
- command- OS command to execute without arguments
- delimiter- Character used to delimit multiple metric values in single line of output
- identity_metric- Semi-colon separated list of key properties from Managed Bean ObjectName to be used as key metrics
- in_param_details- List of values and position of PL/SQL procedure IN parameters- in_param_position- Position of IN parameter
- in_param_value- Value of IN parameter
 
- is_metric_service_enabled- Indicates if Metric Service is enabled on server domain
- jmx_attributes- List of JMX attributes or Metric Service Table columns separated by semi-colon
- managed_bean_query- JMX Managed Bean Query or Metric Service Table name
- out_param_details- Position and SQL Type of PL/SQL OUT parameter- out_param_name- Name of the Out Parameter
- out_param_position- Position of PL/SQL procedure OUT parameter. The value of this property is ignored during update, if “outParamType” is set to NO_OUT_PARAM value.
- out_param_type- SQL Type of PL/SQL procedure OUT parameter. During the update, to completely remove the out parameter, use the value NO_OUT_PARAM. In that case, the value of “outParamPosition” will be ignored.
 
- protocol_type- Supported protocol of resources to be associated with this metric extension. This is optional and defaults to HTTPS, which uses secure connection to the URL
- response_content_type- Type of content response given by the http(s) URL
- script_details- Script details applicable to any OS Command/HTTP based Metric Extension which needs to run a script to collect data. For removing it during OS Command based Metric Extension update, set its “content” property to an empty string. In that case, “name” property value is ignored.- content- Content of the script/JavaScript file as base64 encoded string
- name- Name of the script file
 
- sql_details- Details of Sql content which needs to execute to collect Metric Extension data- content- Sql statement or script file content as base64 encoded string
- script_file_name- If a script needs to be executed, then provide file name of the script
 
- sql_type- Type of SQL data collection method i.e. either a Statement or SQL Script File
- starts_with- String prefix used to identify metric output of the OS Command
- url- Http(s) end point URL
 
- resource_type- Resource type to which Metric Extension applies
- resource_uri- The URI path that the user can do a GET on to access the metric extension metadata
- state- The current lifecycle state of the metric extension
- status- The current status of the metric extension i.e. whether it is Draft or Published
- tenant_id- Tenant Identifier OCID
- time_created- Metric Extension creation time. An RFC3339 formatted datetime string.
- time_updated- Metric Extension update time. An RFC3339 formatted datetime string.