组件配置示例 - Amazon CloudWatch
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 Amazon Web Services 服务入门

组件配置示例

以下示例以 JSON 格式显示了相关服务的组件配置。

Amazon EC2 上的 SAP HANA

以下示例演示适用于 Amazon EC2 上 SAP HANA 的 JSON 格式组件配置。

{ "subComponents": [ { "subComponentType": "AWS::EC2::Instance", "alarmMetrics": [ { "alarmMetricName": "hanadb_server_startup_time_variations_seconds", "monitor": true }, { "alarmMetricName": "hanadb_level_5_alerts_count", "monitor": true }, { "alarmMetricName": "hanadb_level_4_alerts_count", "monitor": true }, { "alarmMetricName": "hanadb_out_of_memory_events_count", "monitor": true }, { "alarmMetricName": "hanadb_max_trigger_read_ratio_percent", "monitor": true }, { "alarmMetricName": "hanadb_table_allocation_limit_used_percent", "monitor": true }, { "alarmMetricName": "hanadb_cpu_usage_percent", "monitor": true }, { "alarmMetricName": "hanadb_plan_cache_hit_ratio_percent", "monitor": true }, { "alarmMetricName": "hanadb_last_data_backup_age_days", "monitor": true } ], "logs": [ { "logGroupName": "SAP_HANA_TRACE-my-resourge-group", "logPath": "/usr/sap/HDB/HDB00/*/trace/*.trc", "logType": "SAP_HANA_TRACE", "monitor": true, "encoding": "utf-8" }, { "logGroupName": "SAP_HANA_LOGS-my-resource-group", "logPath": "/usr/sap/HDB/HDB00/*/trace/*.log", "logType": "SAP_HANA_LOGS", "monitor": true, "encoding": "utf-8" } ] } ], "hanaPrometheusExporter": { "hanaSid": "HDB", "hanaPort": "30013", "hanaSecretName": "HANA_DB_CREDS", "prometheusPort": "9668" } }

Amazon EC2 上的 SAP HANA 高可用性

以下示例演示适用于 Amazon EC2 上 SAP HANA 高可用性的 JSON 格式组件配置。

{ "subComponents": [ { "subComponentType": "AWS::EC2::Instance", "alarmMetrics": [ { "alarmMetricName": "hanadb_server_startup_time_variations_seconds", "monitor": true }, { "alarmMetricName": "hanadb_level_5_alerts_count", "monitor": true }, { "alarmMetricName": "hanadb_level_4_alerts_count", "monitor": true }, { "alarmMetricName": "hanadb_out_of_memory_events_count", "monitor": true }, { "alarmMetricName": "ha_cluster_pacemaker_stonith_enabled", "monitor": true } ], "logs": [ { "logGroupName": "SAP_HANA_TRACE-my-resourge-group", "logPath": "/usr/sap/HDB/HDB00/*/trace/*.trc", "logType": "SAP_HANA_TRACE", "monitor": true, "encoding": "utf-8" }, { "logGroupName": "SAP_HANA_HIGH_AVAILABILITY-my-resource-group", "logPath": "/var/log/pacemaker/pacemaker.log", "logType": "SAP_HANA_HIGH_AVAILABILITY", "monitor": true, "encoding": "utf-8" } ] } ], "hanaPrometheusExporter": { "hanaSid": "HDB", "hanaPort": "30013", "hanaSecretName": "HANA_DB_CREDS", "prometheusPort": "9668" }, "haClusterPrometheusExporter": { "prometheusPort": "9664" } }