You need to enable JavaScript to run this app.
Observability Platform

Observability Platform

Copy page
Download PDF
Intelligent Operations Assistant
VeOps CLI observability troubleshooting assistant
Copy page
Download PDF
VeOps CLI observability troubleshooting assistant
VeOps CLI is an observability troubleshooting tool designed for AI agents. It wraps the capabilities of Server-side Monitoring, VMP, Cloud Monitor, TLS, and VKE, as well as local log and metric analysis, into commands that general-purpose agents can reliably call. After installation, lots of repetitive queries and evidence organization involved in troubleshooting can be directly handed off to AI, improving troubleshooting efficiency. For example, you can use agents such as Claude Code, Codex, Cursor, Trae, OpenClaw, and Hermes to query metrics, logs, and traces, as well as troubleshoot alerts and inspect clusters, all through natural conversation.​
Background​
Supported data sources​
VeOps CLI currently supports the most commonly used data sources in observability troubleshooting, including Server-side Monitoring, VMP, Cloud Monitor, TLS, VKE, and local log/metric data for anomaly detection.​
​
Data source​
Capability coverage​
Issues addressed​
Server-side Monitoring​
Services, metrics, traces, Spans, logs, alerts, notification groups, and GenAI sessions​
Increased service error rates, slow API responses, downstream dependency anomalies, and AI application call chain analysis​
Volcengine Managed Service for Prometheus​
Instant queries, range queries, metric names, labels, series, alerts, and workspaces​
PromQL queries, custom metric analysis, and Prometheus alert troubleshooting​
Cloud Monitor​
Namespace, metric, resource, alarm, event​
ECS, CLB, RDS, and other cloud resource metrics and Cloud Monitor alert troubleshooting​
Torch Log Service (TLS)​
Project, topic, index, log search, and log histogram​
Error log search, log trend analysis, and high-frequency error classification​
Volcengine Kubernetes Engine (VKE)​
Cluster, NodePool, Node, Add-on, Kubeconfig, Namespace, Pod, Deployment, StatefulSet, Service, Event, Pod logs​
Cluster inspection, Pod anomalies, scheduling failures, image pull failures, and container log viewing​
​
Tool value​
VeOps CLI improves productivity across different roles:​
​
Role​
Previous pain point​
After VeOps CLI is used​
On-call engineers​
After an alert is triggered, they have to switch between multiple systems and piece together evidence manually.​
Describe the alert or symptom directly, and let AI output a timeline, evidence, and recommended actions.​
Application developers​
Locating slow requests and error traces requires sifting through metrics, logs, and traces.​
AI automatically correlates metrics, logs, Spans, and topology to shorten the troubleshooting path.​
SRE/O&M​
Inspecting clusters, cloud resources, and alerts requires a large number of repetitive queries.​
Trigger an inspection with natural language and generate a structured report with risk items.​
Platform teams​
Users are unfamiliar with the query entry points of each product, and troubleshooting efficiency depends on experience.​
Observability capabilities are exposed to general-purpose agents in a unified manner, lowering the barrier to use.​
New members​
Not knowing which product to query first or what filter conditions to use.​
Learn troubleshooting methods through the query path of the agent, reducing the learning curve.​
​
Comparison between VeOps CLI and basic AI tools: Rather than simply connecting AI to an observability backend, its value lies in resolving real engineering issues in agent-based troubleshooting, such as how to reliably fetch data, how to handle results that exceed expectations, how to correlate data across products, and how to audit conclusions.​
​
Comparison dimension​
Screenshot or copy-paste to AI​
VeOps CLI​
Data retrieval​
Relying on screenshots and web text, with fields and formats beyond control.​
Structured JSON envelope with a schema that guarantees stable field names and types.​
Large-scale results​
Context window overflow, causing information to be truncated or missed.​
Use --save-as to persist results to disk, and then extract specific fields with jq or Python, so critical evidence is not lost due to context overflow.​
Cross-product correlation​
Manually switching between Server-side Monitoring, TLS, VMP, and other pages, with evidence scattered.​
A unified operation ID interface spanning 5+ products, with results linked along a timeline.​
Security​
Agents may accidentally perform unintended operations or modify cloud resource configurations.​
Read-only mode. Agents can only query and cannot modify any cloud resources.​
Troubleshooting quality​
Reliance on individual experience and agent inconsistency.​
A fixed schema constrains query paths, making results predictable and reproducible.​
​
Usage guide​
Installation and configuration​
We recommend that you quickly install, update, or uninstall VeOps CLI through a conversation with an agent.​
​
Install VeOps CLI
Update VeOps CLI
Uninstall VeOps CLI
​
Send the following content to the agent.​
​
Help me install veops-cli:https://veops-cli.tos-cn-beijing.volces.com/public/install.md​
​
Upon receiving the promt, the agent completes the following steps and finishes the VeOps CLI installation.​
​
Configuration procedure​
Agent action​
  1. Download the binary file​
Automatically detect the operating system and architecture, and download the binary file to a writable directory in PATH, such as /usr/local/bin or ~/.local/bin.​
  1. Install the skill​
Detect locally installed agents and write the veops-cli skill into each skills directory.​
  1. Guide authentication​
Prompt you to log in with veops-cli login or configure AK/SK environment variables. Specific operations are as follows:​
  • Log in with veops-cli login:​
  • If a browser is available locally, use veops-cli login (console OAuth; requests 6-hour temporary credentials via STS by default).​
  • For SSH, remote machines, containers, or other headless environments, use veops-cli login --remote, and then paste the entire authorization response shown on the browser page into the terminal as-is.​
  • Configure AK/SK environment variables: To use static AK/SK, set the VOLCENGINE_ACCESS_KEY, VOLCENGINE_SECRET_KEY, and VOLCENGINE_REGION environment variables.​
tip​
Credentials are stored in ~/.volcengine/config.json. ~/.veops-cli/config.yaml stores operational preferences.​
  1. Verify the availability​
Automatically execute veops-cli version, veops-cli schema, and veops-cli doctor to confirm the installation result.​
​
​
​
Usage method​
Once VeOps CLI is installed, you can query metrics, logs, and traces, troubleshoot alerts, and inspect clusters directly through a conversation with an agent. When using VeOps CLI, you do not need to memorize any commands. Simply describe the issue in natural language, and the agent will call the appropriate commands on your behalf to complete the fault analysis. ​
warning​
  • VeOps CLI currently supports querying only and does not make any modifications to cloud resources.​
  • Permissions follow the Volcano Engine account, and no data outside your authorized scope is accessible.​
  • VeOps CLI is designed for agents. If you encounter any issues, simply describe the symptoms and let AI troubleshoot the issues.​
The following is a usage example. For more typical scenarios, see Typical scenarios.​
​
Please help me figure out why the error rate of order-api has risen over the past hour.​
​
Upon receiving the issue, AI does not simply execute a single command. Instead, it first determines which data sources to query and then systematically collects evidence along a troubleshooting path. For example:​
  1. It starts by checking Server-side Monitoring metrics to confirm whether the error rate has actually increased.​
  1. It then looks for slow Spans and error Spans, queries error logs to identify specific errors, and determines whether the errors are concentrated in a particular downstream service.​
  1. Finally, it combines the service topology to confirm dependencies. If the service is running in VKE, it also checks Pod restarts, events, and container logs.​
Command list​
veops-cli currently supports the following commands. This command list is intended to help you understand the capability boundaries of veops-cli.​
tip​
  • You do not need to memorize these veops-cli commands. The agents will call them on your behalf.​
  • After a version upgrade, the supported commands may change. Always refer to the output of schema --index and schema <product> at runtime for the definitive command list.​
​
Volcengine Managed Service for Prometheus
Server-side Monitoring
Cloud Monitor
Torch Log Service (TLS)
Volcengine Kubernetes Engine (VKE)
Other platforms and auxiliary commands
​
The following commands are provided for VMP:​
​
Command​
Feature​
vmp.query​
Perform instant PromQL queries.​
vmp.query-range​
Perform range PromQL queries.​
vmp.metric-names​
Query metric names.​
vmp.metric-labels​
Query metric labels.​
vmp.series​
Query time series.​
vmp.alert.rule-list​
Query the alert rule list.​
vmp.alert.rule-get​
Query alert rule details.​
vmp.alert.history-list​
Query alert history.​
vmp.workspace.list​
Query the workspace list.​
vmp.workspace.get​
Query workspace details.​
vmp.workspace.instance-types​
Query workspace specifications.​
​
​
​
Capability description​
The following describes commonly used capability dimensions in troubleshooting. Each capability can work across multiple data sources.​
​
Metric
Logs
Alert
Traces and service topology
VKE cluster resources
​
Agents can query metrics from VMP, Server-side Monitoring, and Cloud Monitor through veops-cli.​
  • VMP and Server-side Monitoring are suitable for custom business and infrastructure metrics. An agent can first list workspaces, and then construct PromQL statements using metric names and labels for instant or range queries.​
  • Cloud Monitor is suitable for correlating application-layer anomalies with metrics of cloud resources such as ECS, CLB, RDS, and networks. For example, a maxed-out ECS CPU usage, disk I/O fluctuations, or unhealthy CLB backends can all manifest as slow API responses.​
​
Objective​
What you can see​
Determine whether a service is abnormal​
Error rates, latency, throughput, and availability​
Analyze resource bottlenecks​
CPU, memory, disk, network, and instance dimension metrics​
Compare metrics before and after the release​
whether the metric has spiked, dropped suddenly, or shows a deteriorating trend​
Locate the time of an anomaly​
The exact time when the anomaly starts (down to the minute), and whether it has recovered​
​
Sample prompts:​
​
Could you check if the P99 latency of service-a has risen significantly over the past hour.​
Please check the growth rate of request_error_total for service-a in workspace xxx in the last hour.​
Could you check whether the CPU, memory and network metrics of ECS instance i-xxx are abnormal over the past two hours.​
​
​
​
​
Typical scenarios​
VeOps CLI is not meant to query a single API and return a JSON response. Instead, it organizes multiple queries around a troubleshooting task. The following are typical scenarios:​
Scenario 1: Alert troubleshooting​
When an alert is triggered, the most important thing is to quickly answer three questions: why it is triggered, how much impact it has caused, and whether it has already recovered.​
With VeOps CLI, simply provide AI with the alert rule ID, alert name, or approximate time. AI will query the alert rules, alert history, related metrics, logs, and service information to reconstruct a complete timeline.​
tip​
Troubleshooting path comparison:​
  • Before: Open the alert page to check the rule, open the metric page to view the curve, go to the log platform to find errors, and finally write the conclusion manually.​
  • After: AI directly outputs the trigger cause, metric changes, log samples, affected objects, and recommended actions.​
​
Please troubleshoot this alert rule-xxx with the following parameters:​
Time range: 10:00 to 11:00 today​
Related service: order-api​
Please provide the root cause, impact scope, current recovery status, and recommended next steps.​
​
Scenario 2: Slow API response​
A slow API response is rarely an isolated issue. It may stem from slow service code, a slow downstream dependency, a slow database, insufficient resources, or new logic introduced in a recent release. Looking at metrics alone can tell you that something is slow, but not where the slowdown is.​
With VeOps CLI, AI can simultaneously use Server-side Monitoring metrics, traces, Spans, service topology, and logs to first confirm the time window when latency increases, then identify slow traces, sort by Span duration, and finally determine whether the slowdown is concentrated in a particular downstream dependency.​
​
The P99 latency of checkout-api has increased significantly over the past two hours.​
Please help me locate which layer introduces the latency and check whether it is related to downstream services or the recent release.​
​
Scenario 3: Post-release validation​
The most common concern after a release is "there are no obvious errors, but has anything gotten worse?" When validating manually, engineers typically compare error rates, latency, QPS, resource metrics, and logs before and after the release.​
With VeOps CLI, AI can bring together key metrics before and after the release for comparison. If an increased error rate or degraded latency is detected, it will drill down further into logs and traces. The final output is not just "something changed," but specifically which metrics are degraded, by how much, whether there are representative errors, and whether you should continue observing or roll back.​
​
Please conduct a post-release review for me with the information below:​
Service: payment-api​
Release time: 20:00​
Comparison window: 30 minutes before and after the release​
Focus metrics: error rate, P99 latency, QPS, CPU usage, error logs​
Determine whether performance degradation occurred after the release.​
​
Scenario 4: Cloud resource anomaly diagnosis​
Many application issues ultimately trace back to the resource layer. A sudden CPU usage spike, insufficient disk space, abnormal network packet volume, or unhealthy CLB backends can all manifest as service API timeouts.​
With VeOps CLI, you can query cloud resource metrics and Cloud Monitor alerts and events through Cloud Monitor, and then combine them with service anomalies detected by Server-side Monitoring for a unified analysis.​
​
Timeouts for order-api have been on the rise since 14:00.​
Please check the APMPlus metrics, error logs, as well as the CPU, memory and network metrics of the associated ECS instances simultaneously.​
​
Scenario 5: VKE cluster inspection​
Cluster inspection typically covers many objects, such as clusters, node pools, nodes, add-ons, namespaces, Pods, Deployments, Events, and Pod logs. Checking them one by one manually is time-consuming and prone to oversights.​
With VeOps CLI, you can generate a structured inspection report that identifies which nodes are NotReady, which Pods are in CrashLoopBackOff, which events are concentrated around image pull failures, and which Deployments have fewer replicas than expected.​
​
Please perform an inspection of the ccvke-xxx cluster as follows:​
Check the status of node pools, nodes and plugins​
Identify abnormal Pods and Pods that have restarted recently​
Summarize Warning Events across all namespaces​
Provide handling recommendations for all abnormal items​
​
Scenario 6: AI application observability troubleshooting​
If your business has integrated large models or agent capabilities, the troubleshooting scope extends beyond standard HTTP APIs to include model calls, tool calls, long-chain sessions, and multi-turn conversations. The GenAI session capability in Server-side Monitoring helps analyze AI application traces, making VeOps CLI suitable not only for traditional microservices but also for business systems that are integrating AI capabilities.​
​
Please retrieve all failed sessions of the AI assistant over the past hour.​
Analyze whether the failures are caused by model invocation failures, tool invocation failures, or abnormal responses from business services.​
​
​
Last updated: 2026.07.15 15:23:59