Skip to content

Commit

Permalink
Merge pull request #66 from claranet/feat/support_aws_provider_v5
Browse files Browse the repository at this point in the history
fix(aws)!: filtering metrics on tags is not compatible with AWS Cloudwatch Metric Streams
  • Loading branch information
pdecat authored Aug 23, 2023
2 parents df93be8 + 19a0ec0 commit 68b8c93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions cloud/aws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ provider "aws" {
- then change `create_metric_streams_iam` from `true` to `false` and run `terraform apply` to destroy the IAM role.
If you do not follow that process, the AWS integration will end up in `CANCELATION_FAILED` status.

Note: filtering metrics on tags does not work with Metric Streams, so the default filter on the `aws_tag_sfx_monitored` tag is not used. This can increase your SignalFX licensing costs when switching from pull based ingestion to push if not all EC2 hosts have to be monitored in an AWS account.

### CloudWatch Logs sync (BETA)

- When enabling AWS Cloudwatch Logs sync with `enable_logs_sync = true`, you also need to set `create_logs_iam` to `true`.
Expand Down
7 changes: 3 additions & 4 deletions cloud/aws/integrations-aws.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ resource "signalfx_aws_integration" "aws_integration" {


namespace_sync_rule {
default_action = var.ec2_namespace_sync_rule.default_action
filter_action = var.ec2_namespace_sync_rule.filter_action
filter_source = var.ec2_namespace_sync_rule.filter_source
default_action = var.use_metric_streams_sync ? null : var.ec2_namespace_sync_rule.default_action
filter_action = var.use_metric_streams_sync ? null : var.ec2_namespace_sync_rule.filter_action
filter_source = var.use_metric_streams_sync ? null : var.ec2_namespace_sync_rule.filter_source
namespace = var.ec2_namespace_sync_rule.namespace
}

Expand Down Expand Up @@ -83,4 +83,3 @@ resource "signalfx_aws_integration" "aws_integration" {
time_sleep.logs_policy_availability,
]
}

0 comments on commit 68b8c93

Please sign in to comment.