{"id":27113299,"url":"https://github.com/orange-cloudfoundry/mongodb-probe","last_synced_at":"2025-04-07T02:50:52.219Z","repository":{"id":280615147,"uuid":"942560405","full_name":"orange-cloudfoundry/mongodb-probe","owner":"orange-cloudfoundry","description":"sample app to test mongodb service and otel support","archived":false,"fork":false,"pushed_at":"2025-03-29T22:06:35.000Z","size":90,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T22:25:53.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orange-cloudfoundry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-04T09:49:27.000Z","updated_at":"2025-03-29T22:06:39.000Z","dependencies_parsed_at":"2025-03-29T22:32:44.932Z","dependency_job_id":null,"html_url":"https://github.com/orange-cloudfoundry/mongodb-probe","commit_stats":null,"previous_names":["poblin-orange/mongodb-probe","orange-cloudfoundry/mongodb-probe"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orange-cloudfoundry%2Fmongodb-probe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orange-cloudfoundry%2Fmongodb-probe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orange-cloudfoundry%2Fmongodb-probe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orange-cloudfoundry%2Fmongodb-probe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orange-cloudfoundry","download_url":"https://codeload.github.com/orange-cloudfoundry/mongodb-probe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247584054,"owners_count":20962071,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-07T02:50:51.226Z","updated_at":"2025-04-07T02:50:52.212Z","avatar_url":"https://github.com/orange-cloudfoundry.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MongoDb probe app\n![Build Status](https://github.com/orange-cloudfoundry/mongodb-probe/actions/workflows/maven.yml/badge.svg)\n\n## Description\n\n\nSample mongodb app.\nBased on spring boot + mongodb starter + opentelemetry starter.\nPackaged as:\n- a cloudfoundry compatible jar\n- an OCI image\n- a helm chart for convenient k8s deployment of the image with adapter config (mongodb uri, otel endpoint)\n\n\n\n## references:\n- https://github.com/kokuwaio/helm-maven-plugin\n- https://opentelemetry.io/blog/2024/spring-starter-stable/\n- https://opentelemetry.io/docs/languages/java/configuration/\n\n## basic tests\n\nchart values.yaml:\n\n```\nmongodb:\n  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\n  tlsSecretName: mysecret\n  tlsSecretCaKey: ca.crt\n  \notlp:\n  serviceName: probe-for-mongodb\n  tracing:\n    endpoint: http://jaeger-collector-303ada4c-4478-49dd-b427-8c482bfc17b8.zzzz:443\n    sampling:\n      probability: 1.0\n\n```\n\n\ninstall OCI chart:\n\n```\n\nhelm install mongodb-probe  oci://ghcr.io/orange-cloudfoundry/mongodb-probe/mongodb-probe -f ./mongodb-probe-values.yaml\n\n``` \n\ntesting probe REST API:\n```\n\ncurl -X POST http://localhost:8080/api/persons -H 'Content-type:application/json' -d '{\"name\": \"titi\", \"age\": \"30\"}'\ncurl -X POST http://localhost:8080/api/persons -H 'Content-type:application/json' -d '{\"name\": \"toto\", \"age\": \"35\"}'\ncurl http://localhost:8080/api/persons | jq .\n\n\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forange-cloudfoundry%2Fmongodb-probe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forange-cloudfoundry%2Fmongodb-probe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forange-cloudfoundry%2Fmongodb-probe/lists"}