Add monitoring stack with Grafana/Prometheus/OTel and control endpoints - #5
Open
Uvais81 wants to merge 4 commits into
Open
Add monitoring stack with Grafana/Prometheus/OTel and control endpoints#5Uvais81 wants to merge 4 commits into
Uvais81 wants to merge 4 commits into
Conversation
…el and control endpoints - add optional monitoring profile services (prometheus, grafana, cadvisor, node-exporter, postgres-exporter, kafka-exporter, otel-collector) - add grafana-controller service for monitoring/AI-agent control - add Grafana provisioning and dashboard assets - add otel collector and prometheus scrape configs - update owgw-ui nginx and env for grafana/ai-agent/control API proxy paths
…pose to avoid mount/path failures. Add ai-agent control env wiring and mcp-server/mcp-client services in compose. Switch Grafana datasource to internal Prometheus URL (http://prometheus:9090). Update .env note to reflect new controller compose path behavior. Signed-off-by: Uvais <mohammad12.uvais@routerarchitects.com>
- switch mcp-server URL to HTTPS - mount shared certs into mcp-server and mcp-client - update owgw-ui AI proxy to use HTTPS - add SSL cert env vars for the AI agent - add alerting and SMTP placeholder settings - update default OpenAI model to gpt-4o-mini
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds an optional observability stack and introduces service-control APIs so the UI can manage monitoring and AI-agent services through same-origin endpoints.
Changes
docker-compose.yml:prometheus,grafana,cadvisor,node-exporter,postgres-exporter,kafka-exporter,otel-collectorgrafana-controller(FastAPI) to control containers and expose health/status endpoints.prometheus.yaml)dashboards.yaml)prometheus.ymlotel-config.yamlowgw-ui/default.confwith reverse proxies for:/grafana//ai/chat/api/v1/grafana/control/api/v1/monitoring/control/api/v1/ai-agent/control/api/v1/service-control/healthz.env(HOST_PROJECT_PATH)owgw-ui.env(Grafana + control path variables)grafana.envpostgres-exporter.envValidation
docker compose up -ddocker compose --profile monitoring up -d prometheus grafana cadvisor node-exporter postgres-exporter kafka-exporter otel-collectorhttps://<host>/grafana/loads.GET https://<host>/api/v1/service-control/healthzreturns service states.POST https://<host>/api/v1/monitoring/controltoggles monitoring services.POST https://<host>/api/v1/ai-agent/controltoggles AI-agent container.Impact