bdwyertech / go-aws-cloudwatch-uptime

Reports an EC2's uptime to AWS CloudWatch as custom metric

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS CloudWatch Uptime

Build Status

This is a tool to report an EC2 instances uptime to CloudWatch as a custom metric. By default, it reports every 15 minutes.

CloudWatch Metric Parameters

  • Namespace: Custom
  • MetricName: Uptime
  • Unit: Seconds
  • Dimension: InstanceId

Installing & Running as a Service

Linux

[Unit]
Description=CloudWatch - System Uptime Daemon
Requires=amazon-cloudwatch-agent.service
After=amazon-cloudwatch-agent.service

[Service]
ExecStart=/usr/local/bin/aws-cloudwatch-uptime

Windows

aws-cloudwatch-uptime.exe -service install
aws-cloudwatch-uptime.exe -service start

About

Reports an EC2's uptime to AWS CloudWatch as custom metric


Languages

Language:Go 100.0%