TopPano / verpix.me

0 stars 0 forks source link

make logstash_input_script.js to Crawler more performance data from AWS CloudWatch #60

Open uniray7 opened 8 years ago

uniray7 commented 8 years ago

EC2:

ELB:

S3:

uniray7 commented 8 years ago

目前只先做EC2的部分 ELB 和S3之後再補

目前規劃的aws-performance schema如下: (另外還會用針對我們各種app的schema)

_index: aws-{YYYY.MM}

"_index": "aws-2016.07"

_type: [ec2, elb, s3]

"_type": "ec2"

_id:AVXd6w7U07peuaRbsSDy

target: {instanceId, name, component}:

"target": {
    "instanceId": "i-0cf8e93907cfc63fc", 
    "name": "verpix-production-mongodb-secondary1", 
    "component": "mongodb"
}

metric: {Timestamp, Statistic, Value, Unit, type}

"metric": {
    "Timestamp": "July 12th 2016, 14:57:00.000",
    "Statistic": "Average",
    "Value": 25.486,
    "Unit": "Percent",
    "Type": "MemoryUtilization"
}

host: ip-172-31-17-129

Summary:

所以整體下來json長得像這樣:

{
    "_index": "aws-2016.07",
    "_type": "ec2",
    "_id":"AVXd6w7U07peuaRbsSDy",
    "target": {
        "instanceId": "i-0cf8e93907cfc63fc", 
        "name": "verpix-production-mongodb-secondary1", 
        "component": "mongodb"
    },
    "metric": {
        "Timestamp": "July 12th 2016, 14:57:00.000",
        "Statistic": "Average",
        "Value": 25.486,
        "Unit": "Percent",
        "Type": "MemoryUtilization"
    },
    "host": "ip-172-31-17-129" 
}