Monitoring Datomic in CloudWatch without CloudFormation

165 views Asked by At

I'm trying to monitor the Datomic transactor in CloudWatch. According to the documentation (section "Using S3 log storage and CloudWatch metrics with other storages") I should be able to do it simply by setting a couple config variables and making sure the instance is launched with an appropriate IAM policy.

I set up the appropriate configs in the transactor.properties file I pass to the transactor when it starts:

aws-cloudwatch-region=us-east-1
aws-cloudwatch-dimension-value=transactor-staging

and set the instance into an IAM role called datomic with a policy that contains:

{
  "Version": "2012-10-17",
  "Statement":
    [{"Resource":"*",
      "Effect":"Allow",
      "Action": ["cloudwatch:PutMetricData", "cloudwatch:PutMetricDataBatch"],
      "Condition":{"Bool":{"aws:SecureTransport":"true"}}}]}

But when I look in CloudWatch I can't find any metrics associated with Datomic or my transactor. When I run the transactor I don't see any error messages in the logs.

Is there something else I need to do? I should also note I'm not using CloudFormation, so I haven't run through any of the CloudFormation Datomic init stuff if that's relevant here.

Thanks!

0

There are 0 answers