Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Tutorials
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • DataMiner Insights
      • Security
      • Integration Studio
      • System Architecture
      • DataMiner Releases & Updates
      • DataMiner Apps
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

AWS EC2 driver

Solved1.39K views23rd April 2021AWS EC2
1
Sergio Abreu [SLC] [DevOps Advocate]150 22nd April 2021 0 Comments

Hello DataMiners,

Need to monitor AWS EC2 instance (mainly uptime) where CloudWatch driver is not an option.

So far the possibilities are:

• Using AWS SDK for .NET V3 API.
• Rest Call, using instance metadata endpoint  "http://<aws>/latest/dynamic/instance-identity/document".

Uptime must be computed based on the time instances started.

Is there any early development or experiences using any of above approaches?

Thanks.

Sergio Abreu [SLC] [DevOps Advocate] Selected answer as best 23rd April 2021

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Srikanth Mandava [SLC] [DevOps Member]912 Posted 23rd April 2021 4 Comments

Sergio

Not aware of anything directly through the DataMiner for this at the moment.

Cloudwatch is best suited for the monitoring aspects of the AWS services, and you can also send the custom metrics of the EC2 instances (or other AWS services) to the CloudWatch as well. In your example, you need to define a custom metric for uptime as AWS doesn't provide this and get that metric integrated with the CloudWatch driver. New EC2 driver better suited if there is custom configuration and control you want to perform on the EC2 instances, rather than the monitoring.

I have used boto3 (python SDK) to calculate something similar. EC2 only publishes the launch time and this is the last restart time for the EC2 instance. So you have to calculate the uptime by using the current time and launch time.

DescribeInstance is the API method for this, DescribeInstances - Amazon Elastic Compute Cloud . Boto documentation for the same method is available at EC2 — Boto3 Docs 1.17.56 documentation (amazonaws.com) .

Hope that helps.

Srikanth Mandava [SLC] [DevOps Member] Posted new comment 13th October 2021
Sergio Abreu [SLC] [DevOps Advocate] commented 23rd April 2021

Thanks Srikanth.

Thinking long term resonates more developing a driver using the .NET SDK.
We now only need to compute uptime, but other use case might need extra EC2 control as you mention.

Alberto De Luca commented 13th October 2021

What would have been the drawback of polling an SNMP agent at OS layer?
E.g. through the Linux protocol? Or through a bespoke protocol, polling just one OID = Uptime ?

Srikanth Mandava [SLC] [DevOps Member] commented 13th October 2021

OS level metrics and host level metrics are different in the AWS services. CPU is shared between the EC2 instances when it comes to the physical resource, so the data available through the OS will not be accurate. However disk space used is only available through the OS, so you can pull that metric through OS or as a custom metric using the cloudwatch.

Please see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/viewing_metrics_with_cloudwatch.html for the list of metrics available through the cloudwatch.

Alberto De Luca commented 16th October 2021

I see, but what would make the actual difference when monitoring just the uptime? (Not CPU and other KPIs) – is that going to be different?

You are viewing 1 out of 1 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas

Recent questions

Web Applications exception in Cube due to invalid certificate 0 Answers | 0 Votes
Redundancy Groups and Alarming – Duplicate Alarms 0 Answers | 0 Votes
Correlation Engine: “Test rule” doesn’t result in a hit, despite functional rule 1 Answer | 3 Votes

Question Tags

adl2099 (115) alarm (62) Alarm Console (82) alarms (100) alarm template (83) Automation (223) automation scipt (111) Automation script (167) backup (71) Cassandra (180) Connector (109) Correlation (69) Correlation rule (52) Cube (151) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (140) driver (65) DVE (56) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (152) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) SNMP (86) SRM (337) table (54) trending (87) upgrade (62) Visio (539) Visual Overview (345)
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin