【问题标题】:Performance counters not showing up in AWS CloudWatchAWS CloudWatch 中未显示性能计数器
【发布时间】:2018-03-15 16:33:19
【问题描述】:

我在让性能计数器显示在 Aws CloudWatch 中时遇到问题。我遵循了in this post 的步骤,下面是 CloudWatch json 文件。 谁能指出我做错了什么?

谢谢

{
  "IsEnabled": true,
  "EngineConfiguration": {
    "Components": [
      {
        "FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
        "Id": "PerformanceCounterMemory",
        "Parameters": {
          "CategoryName": "Memory",
          "CounterName": "Available MBytes",
          "DimensionName": "",
          "DimensionValue": "",
          "InstanceName": "",
          "MetricName": "Memory",
          "Unit": "Megabytes"
        }
      },
      {
        "FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
        "Id": "PerformanceCounterDisk",
        "Parameters": {
          "CategoryName": "LogicalDisk",
          "CounterName": "% Free Space",
          "DimensionName": "InstanceId",
          "DimensionValue": "{instance_id}",
          "InstanceName": "C:",
          "MetricName": "FreeDiskPercentage",
          "Unit": "Percent"
        }
      },
      {
		"FullName": "AWS.EC2.Windows.CloudWatch.CloudWatch.CloudWatchOutputComponent,AWS.EC2.Windows.CloudWatch",
		"Id": "CloudWatch",
		"Parameters": {
			"AccessKey": "",
			"NameSpace": "PerformanceMonitor",
			"Region": "us-west-2a",
			"SecretKey": ""
		}
      }
    ],
    "Flows": {
      "Flows": [
       "(PerformanceCounterMemory,PerformanceCounterDisk),CloudWatch"
      ]
    },
    "PollInterval": "00:00:15"
  }
}

【问题讨论】:

    标签: amazon-web-services amazon-cloudwatch


    【解决方案1】:

    您的 CloudWatchLogs 组件上似乎缺少 NameSpace 参数。

    这是我的样子:

    {
        "FullName": "AWS.EC2.Windows.CloudWatch.CloudWatch.CloudWatchOutputComponent,AWS.EC2.Windows.CloudWatch",
        "Id": "CloudWatchLogs",
        "Parameters": {
            "NameSpace": "PerformanceMonitor",
            "Region": "eu-west-1"
        }
    }
    

    【讨论】:

    • 史密斯先生,我尝试了你的建议,但没有奏效。
    • @kennyT - 命名空间行是我在您的配置和我的配置之间看到的唯一区别。可能是权限问题?
    猜你喜欢
    • 2021-11-22
    • 1970-01-01
    • 1970-01-01
    • 2012-03-26
    • 2022-10-20
    • 1970-01-01
    • 1970-01-01
    • 2022-12-04
    • 2020-04-15
    相关资源
    最近更新 更多