Bobcares

CloudWatch alarm in INSUFFICIENT_DATA state | Resolved

by | Nov 9, 2021

Is your CloudWatch alarm in INSUFFICIENT_DATA state giving you trouble? Our Support Techs offer different ways to change the state of your CloudWatch alarm.

At Bobcares, we deal with similar queries as a part of our Server Management Services. Find out how our experts change the CloudWatch alarm state with a variety of troubleshooting tips.

What does CloudWatch alarm in INSUFFICIENT_DATA state mean?

If your CloudWatch alarm is in the INSUFFICIENT_DATA, it can indicate any one of the following reasons:

  1. An Amazon CloudWatch alarm has just started.
  2. The metric is not available.
  3. There is insufficient data for the metric to establish the alarm state.

In order to resolve the alarm state, our Support Engineers have come up with a couple of troubleshooting tips. Let’s take a look at each one of them in detail.

Troubleshooting Tips for CloudWatch alarm in INSUFFICIENT_DATA state

A CloudWatch alarm in INSUFFICIENT_DATA state may be reflecting the normal behavior of the metric. Metrics are classified into two groups based on how they are pushed, namely event-driven and period-driven. Interestingly, while certain services send periodic data to the metrics, they may have certain periods without data points. In such cases, data points will be sent by the service only in case of an error. Otherwise, an empty data set is sent.

Hence, the INSUFFICIENT_DATA state is set when no data points are available for a particular time period by design. You can overcome this by forcing the alarm to be in OK or ALARM state in these instances by configuring the alarm.

CloudWatch alarm: Incorrect CloudWatch alarm settings

Every metric has a specific name, namespace and up to ten dimensions. During data point retrieval, a timestamp is specified. If any of these parameters have an incorrect value, CloudWatch will wind up attempting to retrieve a metric that does not exist. The empty data set leads to INSUFFICIENT_DATA state.

Our Support Engineers would like to point out that the unit of the data points is usually not specified when creating an alarm. However, in case there are multiple units in the metric, it is always a good idea to use the correct unit.

You can check the parameter by using the DescribeAlarms API for the monitored metrics. Then, compare this to the ListMetrics output. Our Support Engineers recommend checking your parameters for the following commonly seen inaccuracies:

  • Improper usage of uppercase and lower cases as well as misspellings.
  • Incorrectly specified units or dimensions.

CloudWatch alarm: Incorrectly configured alarm periods

You have the option of configuring the alarm to retrieve data points according to your preferred frequency. However, if you use shorter time periods than required by the service to send accurate data points to the metric, you will wind up with undesired states.

Fortunately, this can be avoided by configuring the alarm’s period to be the same as the period in which the metric’s data points are pushed. You can also do this via the M out of N settings.

Resolving CloudWatch alarm in INSUFFICIENT_DATA state

If you have been getting the INSUFFICIENT_DATA state as a result of delayed delivery of data points, you are in the right place.

If a standard alarm is in place, it evaluates the metrics every minute. This involves retrieving the latest data points from the configured metric. However, the alarm continues to evaluate the metric during periods without connectivity as well. Since the data points are not sent, the metric is unable to retrieve any data points. This leads to INSUFFICIENT_DATA state.

Once the connectivity is recovered, the application will send the data point backlogs with timestamps in place. Since there is a delay, the alarm will retrieve recent data points according to the period and evaluation period as specifies in it. By then, there will be no more blank spaces in the metric, and alarm history will have a message as seen below:

   [...] 
   "stateValue": "INSUFFICIENT_DATA",
   "stateReason": "Insufficient Data: 2 datapoints were unknown.",
   [...]

You can configure the alarm to treat the missing data differently to avoid the INSUFFICIENT_DATA state.

[Need a hand with Server Management? Give us a call today.]

Conclusion

To sum up, we learned why the CloudAlarm alarm is in the INSUFFICIENT_DATA state and how to change it back depending on the root cause behind the issue. The skilled Support Engineers at Bobcares took us through different scenarios that may cause the INSUFFICIENT_DATA state.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF