A hello-world microservice to demonstrate monitoring capabilities with python
- Python3 is installed
- Docker is installed
- zip is installed
- Cumulocity IoT Tenant with Microservice feature enabled
In a shell of your choice run:
docker build . -t hello-world
docker save hello-world > image.tar
zip hello-world-metrics.zip image.tar cumulocity.json
- Login to your Cumulocity IoT Tenant
- Go to "Administration" -> "Ecosystem" -> "Microservices" -> "Add microservice" -> Select "hello-world-metrics.zip"
After successful installation the following endpoints will be exposed:
https://{yourC8YTenantURL}/service/hello-world-metrics/prometheus
- Used for prometheus to collect metrics for this microservice
https://{yourC8YTenantURL}/service/hello-world-metric
- Simulating a device creation and custom metric