Skip to content

orange-cloudfoundry/mongodb-probe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDb probe app

Build Status

Description

Sample mongodb app. Based on spring boot + mongodb starter + opentelemetry starter. Packaged as:

  • a cloudfoundry compatible jar
  • an OCI image
  • a helm chart for convenient k8s deployment of the image with adapter config (mongodb uri, otel endpoint)

references:

basic tests

chart values.yaml:

mongodb:
  uri: mongodb://databaseAdmin:yyyy.zzzz:27017,rs0-1-2e385b67-a1c9-4aa0-910d-b25dc99e9c5d.zzzz:27017,rs0-2-2e385b67-a1c9-4aa0-910d-b25dc99e9c5d.zzzz:27017/admin?replicaSet=rs0

otlp:
  serviceName: probe-for-mongodb
  tracing:
    endpoint: http://jaeger-collector-303ada4c-4478-49dd-b427-8c482bfc17b8.zzzz:443
    sampling:
      probability: 1.0

install OCI chart:


helm install mongodb-probe  oci://ghcr.io/orange-cloudfoundry/mongodb-probe/mongodb-probe -f ./mongodb-probe-values.yaml

testing probe REST API:


curl -X POST http://localhost:8080/api/persons -H 'Content-type:application/json' -d '{"name": "titi", "role": "xx"}'
curl -X POST http://localhost:8080/api/persons -H 'Content-type:application/json' -d '{"name": "toto", "role": "xx"}'
curl http://localhost:8080/api/persons | jq .



About

sample app to test mongodb service and otel support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages