Skip to content

Conversation

nitboss
Copy link
Contributor

@nitboss nitboss commented Sep 30, 2025

Summary

  • Updates get_k8s_debugging_info.sh to filter results for only LangChain-related resources
  • Allows customers to embed other resources in the same cluster without polluting debug output
  • Removes jq dependency by using jsonpath for restart count check

Changes

  • Resource filtering: Added grep filters for langsmith-*, lg-*, and toolbox* prefixes to:
    • Resource summary output
    • Resource details YAML
    • Pod resource usage
    • Pod log collection
  • Simplified restart count check: Changed from jq to jsonpath for better portability
  • Improved output messages: Updated echo statements for clarity

Test Plan

  • Test script on namespace with mixed LangChain and non-LangChain resources
  • Verify only LangChain resources appear in output files
  • Test with pods that have restart counts > 0
  • Confirm no jq dependency required

Updates get_k8s_debugging_info.sh to filter results for only LangChain-related
resources (langsmith-*, lg-*, toolbox*), allowing customers to embed other
resources in the same cluster without polluting debug output.

Changes:
- Filter resource summary, details, and pod usage to LangChain prefixes
- Filter pod log collection to only LangChain-related pods
- Simplify restart count check to remove jq dependency
- Update output messages for clarity
@nitboss nitboss enabled auto-merge (squash) September 30, 2025 21:43
Copy link
Contributor

@langchain-infra langchain-infra left a comment

Choose a reason for hiding this comment

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

can we just add an option to this chart to filter by regex or label which is moer common in k8s? people deploy Ls under different names (e.g LG platform etc).

- Add --filter-regex option for custom name pattern matching
- Add --filter-labels option for Kubernetes label selectors (recommended)
- Maintains backward compatibility with default regex filter
- Addresses PR feedback to support different deployment names (LG platform, etc.)

Examples:
  --filter-regex '^(lc-|langgraph-)'
  --filter-labels 'app.kubernetes.io/instance=lg-platform'
@nitboss
Copy link
Contributor Author

nitboss commented Oct 1, 2025

can we just add an option to this chart to filter by regex or label which is moer common in k8s? people deploy Ls under different names (e.g LG platform etc).

@langchain-infra Please review now

@nitboss nitboss merged commit b20ddd6 into main Oct 1, 2025
4 checks passed
@nitboss nitboss deleted the filter-k8s-debugging-langchain-resources branch October 1, 2025 10:35
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.

2 participants