Skip to content

IoT Agent for system metrics collection and exporting. Runs as a Docker Container and uses the AWS IoT Device SDK to publish results to AWS IoT Cloud.

License

Notifications You must be signed in to change notification settings

multa-metrics/multa-metrics-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multa-metrics-agent

  • Includes agent code that will deploy in devices. Initially as a Docker container that can be deployed in any Unix-like OS, needs to provide:

Usage

Dockerfile

  • Allows to build your own custom agent with the commands:

export VERSION=### && make build && make tag

docker run

  • Allows to run Multa Metrics Agent using docker CLI using the command:

docker run -e DEVICE_NAME=${DEVICE_NAME} -e DEVICE_CONFIGURATION_URL=https://cvm-agent.dev.multa.io/multa-agent/ --net=host --restart always --privileged -d --name multa-agent 112646120612.dkr.ecr.us-east-1.amazonaws.com/multa-agent:0.0.1

docker-compose.yml file

  • Allows to run Multa Metrics Agent using docker-compose command: docker-compose up

Other deployment methods

Development

  • If the container has not been run:
    make build && make tag && {RUN COMMAND}

  • After adding some code, for local testing execute if the container is running:
    docker container stop multa-agent && docker container rm multa-agent && make build && make tag && {RUN COMMAND}

  • To debug code running in the container:
    docker logs --tail 100 multa-agent

  • To cleanup container completely run:
    docker container stop multa-agent && docker container rm multa-agent && docker volume rm device-data

Next features

  • Will be updated later to include AWS IoT Device Defender
  • Can be later updated ot include AWS Greengrass and make it a truly reporting agent/gateway

About

IoT Agent for system metrics collection and exporting. Runs as a Docker Container and uses the AWS IoT Device SDK to publish results to AWS IoT Cloud.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published