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
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Agility
      • Kanban workshop
      • Agile Fundamentals
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • 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
    • 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
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • Support
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

AWS EC2 driver

Solved1.44K 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 Advocate]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 Advocate] 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 Advocate] 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?

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
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