https://github.com/switschel/cumulocity-hello-world-metrics
A hello-world microservice to demonstrate monitoring capabilities with python
https://github.com/switschel/cumulocity-hello-world-metrics
cumulocity cumulocity-iot cumulocity-microservice microservice-monitoring python
Last synced: about 1 month ago
JSON representation
A hello-world microservice to demonstrate monitoring capabilities with python
- Host: GitHub
- URL: https://github.com/switschel/cumulocity-hello-world-metrics
- Owner: switschel
- License: apache-2.0
- Created: 2023-03-28T13:37:47.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-04T10:14:35.000Z (about 2 years ago)
- Last Synced: 2025-02-13T09:55:31.045Z (3 months ago)
- Topics: cumulocity, cumulocity-iot, cumulocity-microservice, microservice-monitoring, python
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python Hello-World Metrics Microservice
A hello-world microservice to demonstrate monitoring capabilities with python# Requirements
* Python3 is installed
* Docker is installed
* zip is installed
* Cumulocity IoT Tenant with Microservice feature enabled# Build
In a shell of your choice run:
```console
docker build . -t hello-world
docker save hello-world > image.tar
zip hello-world-metrics.zip image.tar cumulocity.json
```# Deploy
1. Login to your Cumulocity IoT Tenant
2. Go to "Administration" -> "Ecosystem" -> "Microservices" -> "Add microservice" -> Select "hello-world-metrics.zip"# Usage
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