Create Custom Metrics in CloudWatch
========Sample script====== #!/bin/bash USEDMEMORY=$(free -m | awk 'NR==2{printf "%.2f\t", $3*100/$2 }') TCP_CONN=$(netstat -an | wc -l) TCP_CONN_PORT_80=$(netstat -an | grep 80 | wc -l) USERS=$(uptime |awk '{ print $6 }') IO_WAIT=$(iostat | awk 'NR==4 {print $5}') aws cloudwatch put-metric-data --metric-name memory-usage --dimensions Instance=i-0c51f9f1213e63159 --namespace "Custom" --value $USEDMEMORY aws cloudwatch put-metric-data --metric-name Tcp_connections --dimensions Instance=i-0c51f9f1213e63159 --namespace "Custom" --value $TCP_CONN aws cloudwatch put-metric-data --metric-name TCP_connection_on_port_80 --dimensions Instance=i-0c51f9f1213e63159 --namespace "Custom" --value $TCP_CONN_PORT_80 aws cloudwatch put-metric-data --metric-name No_of_users --dimensions Instance=i-0c51f9f1213e63159 --namespace "Custom" --value $USERS aws cloudwatch put-metric-data --metric-name IO_WAIT --dimensions Instance=i-0c51f9f1213e63159 --namespace "Custom" --value $IO_WAIT ===============================================
相關推薦
Create Custom Metrics in CloudWatch
========Sample script====== #!/bin/bash USEDMEMORY=$(free -m | awk 'NR==2{printf "%.2f\t", $3*100/$2 }') TCP_CONN=$(netstat -an | wc -l) TCP_CON
How To Create Custom Dialog In Android With Validation
Let’s learn how to create custom dialog in android and while we are at it, let us also do simple validation of the data the user entered before clicking
[Tailwind] Create Custom Utility Classes in Tailwind
config fix paths AR XA asc check tom task In this lesson, we learn how to generate custom utility classes in tailwind. We add new propert
Generate and Automate Custom Metrics From Filtered RDS Enhanced Monitoring CloudWatch Logs
Note: Be sure to update 0.00 to the value that you want to measure. 5. Select the Log Data to test, and then choose Test Pattern.
New – Custom Metrics for Amazon CloudWatch
You can now store your business and application metrics in Amazon CloudWatch. You can view graphs, set alarms, and initiate automated actions bas
Cannot create __weak reference in file using manual reference counting
解決 msu prop nsobject -s xcod pos create mod Xcode更新到7.3後會出現NSObject+MJProperty.h報Cannot create __weak reference in file using m
java中如何創建自定義異常Create Custom Exception
公司 最好 static content turn 而且 否則 系統 tms 9.創建自定義異常 Create Custom Exception (視頻下載) (全部書籍) 馬克-to-win:我們可以創建自己的異常:checked或unchecked異常都可以, 規則如
Creating Filtered Dropdown Lists in a Custom Field in NetSuite
This blog post will show you how to filter dropdown list results in custom fields in Netsuite. This can be extremely useful in a host of different rec
K8s 多自定義計量(custom metrics)
這裡介紹下如何在K8s設定多個自定義計量。K8s 預設的可用於PHA(Pod Horizon Autoscaling)只有CPU,自定義的計量feature一直處於alpha 測試階段,而且不
Vue : Custom elements in iteration require 'v-bind:key' directives.
使用 element-ui 去遍歷路由做側邊欄,eslint 檢測出現一個錯誤 ⚠️ Vue : Custom elements in iteration require ‘v-bind:key’ directives. <template v-for="(i
[iOS] How to sort an NSMutableArray with custom objects in it?
範例1: I think this will do it: brandDescriptor = [[NSSortDescriptor alloc] initWithKey:@"brand" ascending:YES]; sortDescriptors = [NSArray arrayWithObject
How do you create a dictionary in Java?
用習慣python的 dictionary, 到其他程式語言也會想要用一下。 You’ll want a Map<String, String>. Classes that implement the Map interface include (but are not limited to)
How would I create a UIAlertView in Swift?
let Msg:String = "Hello" let alert = UIAlertController(title: "Alert", message: Msg, preferredStyle: UIAlertControllerStyle.alert) alert.addActi
How to perform custom validation in your Express.js app (Part
How to perform custom validation in your Express.js app (Part-2)In the previous post, I showed how to get started with input validation in an express.js ap
How to Create Custom HTML Markers on Google Maps
The default method of creating markers on a Google Map (when using the Google Map’s JavaScript API) is to use an image or SVG path, which limits developmen
Create CRUD Application in Express JS
Create Data Access Object file :In the Data Access Object (DOA) layer, we can define the function which is directly connected to the database and fetch dat
Create Custom Machine Learning Models With Google Cloud ML Wimoxez
Google Cloud Machine Learning (ML) motors can be really just controlled services that make it possible for programmers and info boffins to successfully con
Creating custom errors in Golang
In the last tutorial we learnt how errors are represented in Go and how to handle errors from the standard library. We also learnt how to ex
Tutorial: Write a Finite State Machine to parse a custom language in pure Python
1. Analyze the structureFirst a couple simple examples of the POSH Syntax one per line (3 examples):VB(noise+3)NNS(acoustics) & RB(not)(NNS(acoustics)
Troubleshoot Failing Custom Origins in CloudFront
Try the following troubleshooting steps: Identify the error response Determine the HTTP response headers returned by Amaz