This is a simple Flask app that logs messages directly to OpenObserve using its HTTP API. Designed to run on Google Cloud Run.
Get the following from your OpenObserve dashboard:
OPENOBSERVE_URL
OPENOBSERVE_ORG
OPENOBSERVE_STREAM
- a name of your choiceOPENOBSERVE_API_KEY
gcloud run deploy cloudrun-log-demo \
--source . \
--region us-central1 \
--platform managed \
--allow-unauthenticated \
--set-env-vars OPENOBSERVE_URL=https://api.openobserve.ai,\
OPENOBSERVE_ORG=your-org,\
OPENOBSERVE_STREAM=cloudrun-logs,\
OPENOBSERVE_API_KEY=your-api-key