|
| 1 | +.. _aws-ts-ms-aws: |
| 2 | + |
| 3 | +****************************************************** |
| 4 | +Troubleshoot AWS-managed Metric Streams |
| 5 | +****************************************************** |
| 6 | + |
| 7 | +.. meta:: |
| 8 | + :description: Troubleshoot AWS-managed Metric Streams related issues. |
| 9 | + |
| 10 | +See the following topics when experiencing AWS-managed Metric Streams related issues. |
| 11 | + |
| 12 | +.. note:: See also :ref:`aws-troubleshooting` and :ref:`aws-ts-metric-streams`. |
| 13 | + |
| 14 | +I've enabled AWS-managed Metric Streams in my AWS integration but I do not see any metrics streaming in |
| 15 | +========================================================================================================== |
| 16 | + |
| 17 | +Log in to your AWS console and review the following: |
| 18 | + |
| 19 | +Check the Metric Stream integration settings |
| 20 | +---------------------------------------------------------------------- |
| 21 | + |
| 22 | +In your CloudWatch console check the following: |
| 23 | + |
| 24 | +* The :strong:`Errors` chart must show zero errors. |
| 25 | + |
| 26 | +* The destination and output format must look similar to what is visible on the screenshot below. Note that your destination URL might use a different realm, for example https://ingest.us0.signalfx.com/v1/cloudwatch_metric_stream. |
| 27 | + |
| 28 | +.. image:: /_images/gdi/aws-ts-awsmanaged1.png |
| 29 | + :width: 70% |
| 30 | + :alt: Metric Stream settings |
| 31 | + |
| 32 | +Check the associated Firehose stream configuration |
| 33 | +---------------------------------------------------------------------- |
| 34 | + |
| 35 | +Go to your AWS console and check your Firehose stream configuration: |
| 36 | + |
| 37 | +.. image:: /_images/gdi/aws-ts-awsmanaged2.png |
| 38 | + :width: 70% |
| 39 | + :alt: Firehose configuration |
| 40 | + |
| 41 | +Check the associated Firehose stream metrics |
| 42 | +---------------------------------------------------------------------- |
| 43 | + |
| 44 | +Make sure that: |
| 45 | + |
| 46 | +* :strong:`Incoming records` must have non-zero values. |
| 47 | + |
| 48 | + * Note that if there's a low volume of traffic going through the stream, the value of ``IncomingRecords (per second average)`` can be significantly lower than ``RecordsPerSecondLimit``, and therefore it might look like there are no incoming records. |
| 49 | + |
| 50 | +* :strong:`HTTP endpoint delivery success` must be 100%. |
| 51 | + |
| 52 | +.. image:: /_images/gdi/aws-ts-awsmanaged3.png |
| 53 | + :width: 70% |
| 54 | + :alt: Firehose stream metrics |
| 55 | + |
| 56 | +If there are any errors visible on the HTTP endpoint delivery success chart, update the Firehose stream destination settings to ensure that the HTTP endpoint is correct and use a new access token with INGEST scope. |
| 57 | + |
| 58 | + * Note that your destination URL might use a different realm, for example https://ingest.us0.signalfx.com/v1/cloudwatch_metric_stream. |
| 59 | + |
| 60 | +.. image:: /_images/gdi/aws-ts-awsmanaged4.png |
| 61 | + :width: 70% |
| 62 | + :alt: Destination settings |
| 63 | + |
| 64 | +Review roles and permissions |
| 65 | +----------------------------------- |
| 66 | + |
| 67 | +Check the following: |
| 68 | + |
| 69 | +* Review the AWS role used by the Metric Streams. |
| 70 | + |
| 71 | +* Make sure all required permissions are included, and that the CloudWatch metric stream region and the region listed in the AWS policy are the same. |
| 72 | + |
| 73 | + * To find the AWS role used by the Metric Stream, go to the Stream overview page under the :strong:`Service Role to write to Amazon Data Firehose` label. |
| 74 | + |
| 75 | +This is a sample AWS policy: |
| 76 | + |
| 77 | +.. code-block:: none |
| 78 | +
|
| 79 | + { |
| 80 | + "Version": "2012-10-17", |
| 81 | + "Statement": [ |
| 82 | + { |
| 83 | + "Effect": "Allow", |
| 84 | + "Action": [ |
| 85 | + "firehose:PutRecord", |
| 86 | + "firehose:PutRecordBatch" |
| 87 | + ], |
| 88 | + "Resource": [ |
| 89 | + "arn:aws:firehose:eu-west-2:906383545488:deliverystream/PUT-HTP-7pH7O" |
| 90 | + ] |
| 91 | + } |
| 92 | + ] |
| 93 | + } |
| 94 | +
|
| 95 | +These are the trust relationships: |
| 96 | + |
| 97 | +.. code-block:: none |
| 98 | +
|
| 99 | + { |
| 100 | + "Version": "2012-10-17", |
| 101 | + "Statement": [ |
| 102 | + { |
| 103 | + "Effect": "Allow", |
| 104 | + "Principal": { |
| 105 | + "Service": "streams.metrics.cloudwatch.amazonaws.com" |
| 106 | + }, |
| 107 | + "Action": "sts:AssumeRole" |
| 108 | + } |
| 109 | + ] |
| 110 | + } |
| 111 | +
|
| 112 | +
|
| 113 | +
|
0 commit comments