Bobcares

How to resolve Metric unavailable issue in the CloudWatch console?

PDF Header PDF Footer

Our Customers who use AWS services frequently ask, “Why is the metric unavailable in CloudWatch console?”

At Bobcares, we help our customers with similar AWS issues as a part of our AWS Support Services.

Today let’s see how our Support Engineers help our customers with this metric unavailable issue.

Event-driven and schedule-based metrics

 

Metrics are grouped first by namespace, and then by the various dimension combinations within each namespace. For example, we can see all EC2 metrics, EC2 metrics grouped by instance, or EC2 metrics grouped by Auto Scaling group.

The metrics can be event-driven or schedule-based:

Event-driven metrics: Here the source sends data points only when there’s something to report. That is, a data point is sent to the HTTTP_CODE_ELB_5XX_COUNT metric from the Elastic Load Balancing service only when there are errors.

Schedule-based metrics: Here irrespective of the value of the data points, the source sends data to CloudWatch periodically.
For example, the Amazon EC2 service pushes data periodically for the CPUUtilization metric.

 

Metric unavailable in CloudWatch console

 

Before discussing how to fix the issue, let’s have a look at the issue.

If a metric is newly created, it might take up to fifteen minutes to appear the metric name in the console.

The CloudWatch console limits the search of metrics to two weeks if it has not had any new data points, so metrics do not appear in the console.

They also do not appear when we type their metric name or dimension names in the search box in the All metrics tab in the console.

The best way we follow to retrieve these metrics is with the get-metric-data or get-metric-statistics commands in the AWS CLI.

 

How to retrieve metrics

 

If a metric is not available in the Amazon CloudWatch console, Our Support Techs follow some methods to retrieve the data points.

Let’s have a look at the procedures.

 

Methods to resolve ‘metric unavailable in CloudWatch console’

 

    •  The best way that we follow to retrieve the metric is by using AWS CLI or AWS SDK to make a GetMetricData or GetMetricStatistics API call for the metric. Also make sure to specify the correct namespace, metric name, dimensions, and timeframe.
    • We can also resolve this issue by selecting any currently available metric on the Metric list of the CloudWatch console. Then, edit the browser URL to include the namespace, metric name, and dimension of the unavailable metric in the console.
    •  If the old metric we want to view has a current metric with similar dimensions, we can view that current similar metric and then choose the Source tab, and change the metric name and dimension fields to the ones that we want. Finally, choose Update to view the metric that’s not listed in the console.

Also, specify the “period” or time range to retrieve the metric.

CloudWatch applies the following retention settings on its data points:


Data points with a period of fewer than 60 seconds are available for 3 hours. These data points are high-resolution custom metrics.
Data points with a period of 60 seconds (1 minute) are available for 15 days.
Data points with a period of 300 seconds (5 minutes) are available for 63 days.
Data points with a period of 3,600 seconds (1 hour) are available for 455 days (15 months).

We can also create alarms on unavailable metrics in the CloudWatch console using either of the following methods:

  •  With AWS CLI or AWS SDK, we can make a PutMetricAlarm API call. Also make sure to use the correct namespace, metric name, and dimensions for the metric.
  •  At the first step (“Specify metric and conditions”) of creating a CloudWatch alarm in the console, we can edit the Metric Name and Dimension values. But we cannot edit the key names for the dimension and namespace using this method.
    To edit the namespace, choose Edit, and then choose the Source tab. Update the namespace, and finally choose Update.

[Need any further assistance in fixing AWS errors? – We’re available 24*7]

 

Conclusion

 

To conclude, today we saw the steps that our Support Techs follow to resolve the ‘metric unavailable in CloudWatch console’ issue.

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

var google_conversion_label = "owonCMyG5nEQ0aD71QM";
0 Comments

Submit a Comment

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

server management

Spend time on your business, not on your servers.

TALK TO US

Or click here to learn more.

Speed issues driving customers away?
We’ve got your back!

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