Skip to content

A hello-world microservice to demonstrate monitoring capabilities with python

License

Notifications You must be signed in to change notification settings

switschel/cumulocity-hello-world-metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

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

About

A hello-world microservice to demonstrate monitoring capabilities with python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published