victoriametrics-query
Skill by VictoriaMetrics
Queries VictoriaMetrics metrics through its HTTP API using curl. It is for engineers who run PromQL or MetricsQL queries, inspect series, alerts and TSDB status, and debug relabeling, downsampling and retention configs.
Install victoriametrics-query
Built from the published package, never by AI.
git clone --depth 1 https://github.com/VictoriaMetrics/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/plugins/query/skills/victoriametrics-query ~/.claude/skills/victoriametrics-queryRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/VictoriaMetrics/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/plugins/query/skills/victoriametrics-query ~/.gemini/antigravity-cli/skills/victoriametrics-queryAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install victoriametrics-query in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill lets an AI assistant query a VictoriaMetrics instance directly with curl and jq. It covers instant and range queries, label and series discovery, metric metadata, alerts and rules, and instance diagnostics such as TSDB stats, active queries and build info. It also covers raw data export, series count, metric usage statistics and non-default flags.
The skill targets cluster and single-node setups. The base URL is read from the VM_METRICS_URL environment variable. Requests load auth from a curl config file set in VM_CURL_CONFIG, or send no auth when it is unset. The source also documents root-level tools for expanding WITH expressions, prettifying MetricsQL and debugging metric relabeling, downsampling and retention filters.
Written from the project's SKILL.md and checked against it.
What it can do
- Instant and range queriesRuns PromQL or MetricsQL queries at a point in time or over a time range.
- Label and series discoveryLists label names, label values and series matching a selector.
- Metric metadataSearches metric metadata by a metric name keyword.
- Alerts and rulesChecks firing or pending alerts and alerting and recording rules.
- Instance diagnosticsReads TSDB status, active queries, top queries and build info.
- Raw data exportExports raw samples as JSON lines for a selector and time range.
- Metric usage statisticsShows how often metric names are queried, including rarely used metrics.
- Config debug toolsTests metric relabeling, downsampling and retention filter rules against a metric.
- Non-default flagsLists runtime flags that differ from defaults as plain text.
What you need
- curl
- jq
- A VictoriaMetrics instance URL set in VM_METRICS_URL
- Optional curl config file with a bearer token for remote access
Try asking
- Show the firing alerts on my VictoriaMetrics instance, grouped by state.
- Find the metrics that were queried at most once so I can spot unused ones.
- Run a MetricsQL query for 5xx error rate by namespace over the last hour.
Good to know
- Series count can be slow on large databases and may return slightly inflated values.
- Export returns JSON lines, not a standard API response.
- Config debug endpoints return HTML by default and are best used through VMUI.
Security check
F- Sends keys or private files to a web addressIn
plugins/query/skills/victoriametrics-query/SKILL.md:CURL_CONFIG="$HOME
Checked automatically: plugins/query/skills/victoriametrics-query/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash(curl:*)Bash(jq:*)Bash(head:*)
Alternatives to victoriametrics-query
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
victoriametrics-query: common questions
What does the victoriametrics-query skill do?
It lets an assistant query VictoriaMetrics over its HTTP API using curl, covering PromQL and MetricsQL queries, discovery, alerts, diagnostics and export.
Does it work with both cluster and single-node VictoriaMetrics?
The source gives URL examples for both cluster and single-node setups, with the base URL set through VM_METRICS_URL.
How does authentication work?
Requests load a curl config file from VM_CURL_CONFIG that holds a bearer token for remote use. When the variable is unset, no auth header is sent.
How do I install victoriametrics-query?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is victoriametrics-query free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is victoriametrics-query safe to use?
It scores 70 of 100. Grades: maintenance A, licence A, quality B. Security check: grade F (sends keys or private files to a web address). Review the code before you install. How grades work.
What are alternatives to victoriametrics-query?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
