A simple python application to send heartbeat metrics for a Raspberry Pi to AWS CloudWatch.
When a commit is merged into the master branch a new docker image is built and
pushed to the docker registry. This can be found at:
public.ecr.aws/ssolkhon/pimonitor:latest
If you'd like to build the image yourself, follow the steps below:
- To build the docker image run:
$ docker build . \
-t <your-docker-registry>/pimonitor:latest \
--platform linux/arm64
- Push the image to your docker registry:
$ docker push <your-docker-registry>/pimonitor:latest
- Create the namespace
$ kubectl create namespace monitoring
- Create the secret
$ kubectl create secret generic cloudwatch \
--from-literal=aws_access_key_id=<your-aws-access-key-id> \
--from-literal=aws_secret_access_key=<your-aws-secret-access-key> \
--namespace=monitoring
- Create the deployment
$ kubectl apply -f k8s/deployment.yml \
--namespace monitoring
The supplied deployment file is also compatible with ArgoCD.