You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regionstring`json:"region" jsonschema:"required,description=AWS region (e.g. us-east-1)"`
39
+
AccountIdstring`json:"accountId,omitempty" jsonschema:"description=AWS account ID for cross-account monitoring. Specify an account ID to query metrics from a specific source account\\, or 'all' to query all accounts the monitoring account is permitted to query. Only relevant when using a CloudWatch monitoring account datasource."`
39
40
}
40
41
41
42
// CloudWatchQueryResult represents the result of a CloudWatch query
Common namespaces: AWS/EC2, AWS/ECS, AWS/RDS, AWS/Lambda, ECS/ContainerInsights
377
382
378
-
Example dimensions: ECS: {ClusterName, ServiceName}, EC2: {InstanceId}`,
383
+
Example dimensions: ECS: {ClusterName, ServiceName}, EC2: {InstanceId}
384
+
385
+
Cross-account monitoring: Use accountId to query metrics from a specific source account (e.g. '123456789012') or 'all' to query all linked accounts. Only applicable when using a CloudWatch monitoring account datasource.`,
DatasourceUIDstring`json:"datasourceUid" jsonschema:"required,description=The UID of the CloudWatch datasource"`
388
395
Regionstring`json:"region" jsonschema:"required,description=AWS region (e.g. us-east-1)"`
396
+
AccountIdstring`json:"accountId,omitempty" jsonschema:"description=AWS account ID for cross-account monitoring. Specify an account ID to filter namespaces from a specific source account\\, or 'all' for all linked accounts."`
389
397
}
390
398
391
399
// cloudWatchResourceItem represents an item returned by CloudWatch resource APIs
// ListCloudWatchNamespaces is a tool for listing CloudWatch namespaces
478
489
varListCloudWatchNamespaces=mcpgrafana.MustTool(
479
490
"list_cloudwatch_namespaces",
480
-
"START HERE for CloudWatch: List available namespaces (AWS/EC2, AWS/ECS, AWS/RDS, etc.). Requires region. NEXT: Use list_cloudwatch_metrics with a namespace.",
491
+
"START HERE for CloudWatch: List available namespaces (AWS/EC2, AWS/ECS, AWS/RDS, etc.). Requires region. Supports cross-account monitoring via optional accountId parameter. NEXT: Use list_cloudwatch_metrics with a namespace.",
Regionstring`json:"region" jsonschema:"required,description=AWS region (e.g. us-east-1)"`
503
+
AccountIdstring`json:"accountId,omitempty" jsonschema:"description=AWS account ID for cross-account monitoring. Specify an account ID to filter metrics from a specific source account\\, or 'all' for all linked accounts."`
492
504
}
493
505
494
506
// listCloudWatchMetrics lists available metrics for a CloudWatch namespace
// ListCloudWatchMetrics is a tool for listing CloudWatch metrics
535
550
varListCloudWatchMetrics=mcpgrafana.MustTool(
536
551
"list_cloudwatch_metrics",
537
-
"List metrics for a CloudWatch namespace. Requires region. Use after list_cloudwatch_namespaces. NEXT: Use list_cloudwatch_dimensions\\, then query_cloudwatch.",
552
+
"List metrics for a CloudWatch namespace. Requires region. Supports cross-account monitoring via optional accountId parameter. Use after list_cloudwatch_namespaces. NEXT: Use list_cloudwatch_dimensions\\, then query_cloudwatch.",
MetricNamestring`json:"metricName" jsonschema:"required,description=Metric name (e.g. CPUUtilization)"`
549
564
Regionstring`json:"region" jsonschema:"required,description=AWS region (e.g. us-east-1)"`
565
+
AccountIdstring`json:"accountId,omitempty" jsonschema:"description=AWS account ID for cross-account monitoring. Specify an account ID to filter dimensions from a specific source account\\, or 'all' for all linked accounts."`
550
566
}
551
567
552
568
// listCloudWatchDimensions lists available dimension keys for a CloudWatch metric
// ListCloudWatchDimensions is a tool for listing CloudWatch dimension keys
594
613
varListCloudWatchDimensions=mcpgrafana.MustTool(
595
614
"list_cloudwatch_dimensions",
596
-
"List dimension keys for a CloudWatch metric. Requires region. Use after list_cloudwatch_metrics. NEXT: Use query_cloudwatch with discovered dimensions.",
615
+
"List dimension keys for a CloudWatch metric. Requires region. Supports cross-account monitoring via optional accountId parameter. Use after list_cloudwatch_metrics. NEXT: Use query_cloudwatch with discovered dimensions.",
0 commit comments