Skip to content

About

sample app to test mongodb service and otel support

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

93 Commits

Folders and files

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
  tlsSecretName: mysecret
  tlsSecretCaKey: ca.crt
  
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", "age": "30"}'
curl -X POST http://localhost:8080/api/persons -H 'Content-type:application/json' -d '{"name": "toto", "age": "35"}'
curl http://localhost:8080/api/persons | jq .



About

sample app to test mongodb service and otel support

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages