Code Monkey home page Code Monkey logo

monitor-iot-device-health-with-amazon-managed-grafana's Introduction

monitor-iot-device-health-with-amazon-managed-grafana

This CDK constructs provides sample serverless solution for monitoring your IoT devices with Amazon Managed Grafana.

Prerequisites

To get started, make sure you have the following prerequisites:

Deploying AWS CDK constructs

To deploy your AWS CDK stack, run the following commands in the location where you cloned the repository

The command may be “python” instead of “python3” depending on your path configurations. If using python you will need to edit the file cdk.json and change the first line from "app": "python3 app.py" to "app": "python app.py"

Create a virtual environment.

  • For macOS/Linux, use python3 -m venv .venv
  • For Windows, use python3 -m venv .venv

Activate the virtual environment.

  • For macOS/Linux, use source .venv/bin/activate
  • For Windows, use .venv\Scripts\activate.bat
  • For Powershell, use .venv\Scripts\activate.ps1

Install the required dependencies.

  • pip install -r requirements.txt

At this point you can optionally synthesize the CloudFormation template for this code:

cdk synth

Deploy the solution

  • cdk bootstrap
  • cdk deploy

Clean up

Delete the AWS CDK stack

When you’re done with the resources you created, you can destroy your AWS CDK stack by running the following command in the location where you cloned the repository:

  • cdk destroy

When asked to confirm the deletion of the stack, enter yes.

You can also delete the stack on the AWS CloudFormation console with the following steps:

  1. Open the AWS CloudFormation console, choose Stacks in the navigation pane.
  2. Choose the stack that you want to delete.
  3. In the stack details pane, choose Delete.
  4. Choose Delete stack when prompted.

If you run into any errors you may have to manually delete some resources depending on your account configuration.

monitor-iot-device-health-with-amazon-managed-grafana's People

Contributors

awscordsen avatar amazon-auto avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.