Skip to content

Conversation

JaredforReal
Copy link
Contributor

@JaredforReal JaredforReal commented Oct 5, 2025

What type of PR is this?
feat: refactor observability configs for Compose and add for Local

What this PR does / why we need it:

  • Use Docker to set up Grafana and Prometheus for Local Installation, which is mostly the same as Docker Compose Deployment, so this PR merges them together like:
tools/observability/   # unified for local and compose
├── prometheus.yaml              
├── grafana-datasource.yaml
├── grafana-dashboard.yaml
├── llm-router-dashboard.json
├── README.md
└── scripts/
    ├── start-observability.sh
    └── stop-observability.sh

docker-compose.obs.yml           # Local
docker-compose.yml               # Compose(updated to use configs in tools/observability/)
  • Original configs for Grafana and Prometheus in config/ are no longer needed.
  • Update docs/tutorials/observability/observability.md.
  • Introduce new make commands for easy access.

Copy link

netlify bot commented Oct 5, 2025

Deploy Preview for vllm-semantic-router ready!

Name Link
🔨 Latest commit 8438044
🔍 Latest deploy log https://app.netlify.com/projects/vllm-semantic-router/deploys/68e673f5a3c8a00007c81a97
😎 Deploy Preview https://deploy-preview-351--vllm-semantic-router.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

github-actions bot commented Oct 5, 2025

👥 vLLM Semantic Team Notification

The following members have been identified for the changed files in this PR and have been automatically assigned:

📁 Root Directory

Owners: @rootfs, @Xunzhuo
Files changed:

  • docker-compose.obs.yml
  • Makefile
  • docker-compose.yml

📁 tools

Owners: @yuluo-yx, @rootfs, @Xunzhuo
Files changed:

  • tools/make/observability.mk
  • tools/observability/README.md
  • tools/observability/grafana-dashboard.yaml
  • tools/observability/grafana-datasource.yaml
  • tools/observability/llm-router-dashboard.json
  • tools/observability/prometheus.yaml
  • tools/observability/scripts/start-observability.sh
  • tools/observability/scripts/stop-observability.sh
  • tools/make/common.mk

📁 website

Owners: @Xunzhuo
Files changed:

  • website/docs/tutorials/observability/observability.md

vLLM

🎉 Thanks for your contributions!

This comment was automatically generated based on the OWNER files in the repository.

@JaredforReal
Copy link
Contributor Author

Need further test, leave it as a draft.

@JaredforReal JaredforReal changed the title feat: refactored observability configs for Compose and added for Local feat: refactor observability configs for Compose and add for Local Oct 5, 2025
@JaredforReal JaredforReal marked this pull request as ready for review October 8, 2025 13:11
@JaredforReal
Copy link
Contributor Author

It's ready for review now! @Xunzhuo @rootfs

else
log_info " - Check status: docker compose ps"
log_info " - View logs: docker compose logs prometheus grafana -f"
fi
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it be possible to add open-webui in a followup PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, all of these will be consolidated in the Modern Dashboard. Working on it

PROJECT_ROOT="$(git -C "$SCRIPT_DIR" rev-parse --show-toplevel)"
else
# Fallback: three levels up from scripts -> repo root
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../../../" && pwd)"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you validate if the PROJECT_ROOT contains the tools directory?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checked, and it's good

@echo ""
@echo " Observability targets:"
@echo " run-observability - Start observability (alias for obs-local)"
@echo " obs-local - Start observability in LOCAL mode"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: obs-> o11y (obs could be confused with something else)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@rootfs rootfs requested a review from Copilot October 8, 2025 13:31
@rootfs
Copy link
Collaborator

rootfs commented Oct 8, 2025

@JaredforReal this is really helpful! Would you please record a demo and add the demo link to the docs too?

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors observability configurations to unify Docker Compose and Local deployment modes, consolidating Prometheus and Grafana configurations into a shared tools/observability/ directory.

  • Consolidates observability configs from config/ to unified tools/observability/ directory
  • Adds new local mode support with docker-compose.obs.yml for running router natively while observability runs in Docker
  • Introduces convenient make commands for easy observability stack management

Reviewed Changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tools/observability/ New unified config directory with Prometheus, Grafana configs, dashboard JSON, and management scripts
docker-compose.yml Updated to use new observability configs and added persistent volumes
docker-compose.obs.yml New compose file for local mode (router on host, observability in Docker)
tools/make/observability.mk New makefile with observability management targets
website/docs/tutorials/observability/observability.md Comprehensive rewrite to document the new unified approach
config/prometheus.yaml, config/grafana/ Removed old config files replaced by unified structure

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

rootfs
rootfs previously approved these changes Oct 8, 2025
@rootfs
Copy link
Collaborator

rootfs commented Oct 8, 2025

@JaredforReal this is cool! looking forward to open-webui integration and demo links

@JaredforReal
Copy link
Contributor Author

I think it's ready to be merged now! Thanks for your time! @rootfs

@rootfs rootfs merged commit 565c7ab into vllm-project:main Oct 8, 2025
9 checks passed
@JaredforReal JaredforReal deleted the local-obs branch October 8, 2025 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants