Logo de Vmanomaly Sizing

Vmanomaly Sizing

Organização
VictoriaMetrics
vmanomaly-sizing

Estimate vmanomaly deployment CPU, RAM and disk for a known workload, or approximate inference capacity for fixed resources. Use for deployment sizing, maximum active time-series questions, RAM-versus-disk comparisons, or suspected OOM during fitting. Not for forecasting a monitored metric's capacity or selecting anomaly models.

Add to TypingMind

Visão geral

Publicado porVictoriaMetrics
Repositórioskills
Nome da habilidadevmanomaly-sizing
Estrelas
62
Forks
9
Arquivos incluídos
Somente instruções
LicençaApache-2.0
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por VictoriaMetrics no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Vmanomaly Sizing no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/VictoriaMetrics/skills/tree/main/plugins/vmanomaly/skills/vmanomaly-sizing
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/VictoriaMetrics/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/plugins/vmanomaly/skills/vmanomaly-sizing .claude/skills/vmanomaly-sizing
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Vmanomaly Sizing em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Vmanomaly Sizing automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Vmanomaly Sizing não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Deployment sizing

Currently experimental as of v1.31.0. Use the connected server's deployment-sizing API (v1.31.0+) or the corresponding MCP tools. Estimate vmanomaly resources without changing its configuration. No exact query, data fetch or autotune is needed when the model and workload shape are already known.

Choose the unknown

User knowsEstimateMCP toolHTTP route
Model, series count, inference cadenceRequired resourcesvmanomaly_estimate_deployment_resourcesPOST /api/v1/deployment-sizing/estimate
Model, CPUs, cadence; optionally RAMActive models served per intervalvmanomaly_estimate_inference_capacityPOST /api/v1/deployment-sizing/throughput
Wants supported model configurationsAvailable sizing profilesvmanomaly_get_deployment_sizing_profilesGET /api/v1/deployment-sizing/profiles

For reverse sizing, cardinality is the output: do not ask for a series count. Clarify missing history, sampling or model parameters when needed, or disclose defaults. Preserve an explicitly supplied version. Check model schemas or available profiles before supplying required parameters. Unsupported versions/configurations are not permission to substitute another model or seasonality.

Preserve workload meaning

  • One univariate model usually serves one series; multivariate counts refer to groups and also need channels per group. For peer-group models, use the pool-count semantics below on supporting servers. Size a tuned result using its concrete selected model and parameters, retaining its grouping. The estimate excludes the auto wrapper's optimization search; do not present it as the wrapper's total resource requirement.
  • Keep history depth, sampling step, inference window and inference cadence separate. For non-overlapping cycles, new points follow cadence/step; an explicit window or overlapping batch needs an explicit point count. Verify the resolved request.
  • Online models default to bootstrap-only fitting. Omit fit_every_seconds unless periodic refits were explicitly requested; never copy fit_window into it. Bare MAD/Z-score names resolve to their online equivalents. A long bootstrap is advisory, but its RAM/disk requirements still count in forward sizing. Reverse sizing excludes bootstrap, refits and churn work.
  • For equal query shards of the same model, pass total entity_count, query_count, and explicit deployment membership with split_by: queries. If only the query count is proposed, disclose any one-member-per-query assumption. More instances do not automatically subdivide fixed queries. Preserve explicit placement after an infeasible result.
  • Compare CPU candidates in one forward call. Keep RAM/disk comparisons otherwise identical. storage_mode accepts memory or disk; it is a sizing option, not a deployment YAML field. Persistent state restoration has separate storage requirements.

Peer-group sizing

On servers supporting experimental peer_outlier sizing, use topology: wide and channels_per_entity for peers per pool. Forward entity_count counts pools, not individual peers; model state is per pool and outputs are per peer. Reverse sizing takes a pool width, CPUs and cadence (optionally RAM), not a pool count or workloads; report the returned pool-model capacity and input_series separately. Separate reverse scenarios for different widths are not additive capacities on the same hardware.

Keep the full requested pool width: the 64-peer calibration sample is not a workload cap. The current estimator accepts equal-size fixed pools of 3–10,000 peers, complete observations and no churn retention. model_params.min_peer_count defaults to 5; for a 3- or 4-peer pool, explicitly set it to 3 or 4 respectively. This parameter must not exceed the pool width and is limited to 3–64 by the current estimator; higher minimums require offline calibration. A 10,000-peer pool can use the default minimum of 5. For forward sizing, use one query per workload and separate workloads for different queries or pool sizes; do not average unequal pools. Omit model_params.groupby: the declared pools are already grouped. A missing shipped peer profile does not itself mean unsupported; the installed server version can use bounded live calibration. An older server's rejection is not permission to substitute univariate models or fewer peers.

For example, 100 pools of 100 peers means 100 model states and 10,000 input series. This forward HTTP body preserves one-minute inference and sampling, one week of initial training and disk storage; omit fit_every_seconds for bootstrap-only fitting:

json
{"workloads":[{"model_class":"peer_outlier","topology":"wide","entity_count":100,"channels_per_entity":100,"infer_every_seconds":60,"infer_points_per_cycle":1,"fit":{"window_seconds":604800,"step_seconds":60}}],"policy":{"storage_mode":"disk"}}

Use the server's estimate rather than calculating resource numbers locally. Peer estimates are less calibrated than regular profiles: show the returned estimate_notice once, or “Rough peer-group estimate; allow extra headroom and validate with your workload.” Keep operational limits and omitted costs visible without explaining calibration formulas.

Direct API examples

Requires Bash, jq and curl 7.84.0+ for selective response-header write-out and --fail-with-body. Check curl --version; use an available MCP tool or a compatible curl installation if the client is older.

Use the user's configured server and authentication. VM_ANOMALY_URL must include any path prefix. VM_CURL_CONFIG points to an existing protected curl configuration, or /dev/null for an unauthenticated instance. Do not print credentials or create a credential file. Do not use automatic retries. The examples keep the JSON body on stdout, expose only HTTP status and Retry-After on stderr, and preserve a nonzero exit status on failure. Do not enable verbose tracing or dump all headers: responses can contain session cookies.

Forward example: 100,000 MAD series, one week of one-minute history, two-minute inference with two new points, disk storage:

bash
set -o pipefail
curl -q --config "${VM_CURL_CONFIG:-/dev/null}" -sS --max-time 30 --fail-with-body \
  --write-out '%{stderr}HTTP status: %{http_code}\nRetry-After: %header{retry-after}\n' \
  -H 'Content-Type: application/json' \
  "$VM_ANOMALY_URL/api/v1/deployment-sizing/estimate" \
  --data '{"workloads":[{"model_class":"mad_online","entity_count":100000,"infer_every_seconds":120,"infer_points_per_cycle":2,"fit":{"window_seconds":604800,"step_seconds":60}}],"policy":{"storage_mode":"disk"}}' | jq .

Reverse example: the same history/cadence, eight CPUs and a six-GiB RAM limit:

bash
set -o pipefail
curl -q --config "${VM_CURL_CONFIG:-/dev/null}" -sS --max-time 30 --fail-with-body \
  --write-out '%{stderr}HTTP status: %{http_code}\nRetry-After: %header{retry-after}\n' \
  -H 'Content-Type: application/json' \
  "$VM_ANOMALY_URL/api/v1/deployment-sizing/throughput" \
  --data '{"model_class":"mad_online","cpus":8,"ram_limit_bytes":6442450944,"infer_every_seconds":120,"infer_points_per_cycle":2,"history":{"window_seconds":604800,"step_seconds":60},"storage_mode":"disk"}' | jq .

MCP wraps optional fields differently: forward workload fit/query_count/topology/channels_per_entity belong in each workload's options, while policy/deployment belong in top-level options. Reverse history/storage_mode/topology/channels_per_entity belong in top-level options; ram_limit_bytes stays a named argument. Follow the discovered tool schema rather than sending an HTTP body unchanged to MCP.

Interpret and recover

Report per-instance versus fleet totals, planned RAM/disk, inference time against cadence, limiting constraints, bootstrap duration and omitted costs. Keep nominal time distinct from time with headroom. Storage includes both input data and model state; do not call the whole disk estimate model dumps. search_limit_reached: true is a lower bound at the search ceiling, not a demonstrated maximum. The estimate is not a measured guarantee or an OOM bound. Use the returned estimate_notice once; without one use the peer caveat above for peer models, otherwise “Experimental estimate; validate with a representative workload.” Omit calibration coefficients, benchmark dimensions, extrapolation factors and implementation details from user-facing prose.

On 422, report actionable missing/invalid fields or binding constraints. Correct a configuration error only when the intended value is known; ask for missing choices. Unsupported seasonal configurations need a matching profile or offline calibration, not a smaller fleet. Do not silently change a fixed topology, deadline or workload to obtain a feasible answer. On overload, stop immediate retries and respect Retry-After when supplied. On 404, verify the configured base URL (including its path prefix) and server version before concluding that the sizing API is unavailable. Correct a confirmed URL error; if the intended base URL is unknown, ask rather than probing guessed paths.

For suspected OOM, check container termination reasons and memory events; CrashLoopBackOff alone is not proof. If resource pressure is confirmed, compare disk-backed storage, shorter justified history or fewer input series, then worker/batch limits and sharding. Distinguish bootstrap peaks from steady inference and active models from retained inactive state. Present proposed changes for review; estimates do not deploy them.

Perguntas frequentes

O que a habilidade de IA Vmanomaly Sizing faz?

Estimate vmanomaly deployment CPU, RAM and disk for a known workload, or approximate inference capacity for fixed resources. Use for deployment sizing, maximum active time-series questions, RAM-versus-disk comparisons, or suspected OOM during fitting. Not for forecasting a monitored metric's capacity or selecting anomaly models.

Por que usar Vmanomaly Sizing no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Vmanomaly Sizing é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Vmanomaly Sizing no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/VictoriaMetrics/skills/tree/main/plugins/vmanomaly/skills/vmanomaly-sizing. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Vmanomaly Sizing?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Vmanomaly Sizing?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Vmanomaly Sizing com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Vmanomaly Sizing é gratuita?

Sim. A habilidade é publicada no GitHub por VictoriaMetrics sob a licença Apache-2.0. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇