alibabacloud-lindorm-agent-skill

v2026.09.24

Use this Skill for Alibaba Cloud Lindorm work: instance lifecycle and configuration, networking and access control, monitoring, performance, storage, connection diagnosis, backup, migration, permissions (including Lindorm SQL user management with `CREATE USER` and `GRANT`), slow queries, SQL development, and Search, vector, graph, AI, multimodal, or knowledge-base workflows. Trigger on Lindorm product or CLI terms such as LindormTable, LindormTSDB, LindormSearch, Lindorm AI, HBase/AliHBase, lindormcli, Lindorm CLI, `aliyun lindorm`, or Chinese requests mentioning 宽表引擎、时序引擎、搜索引擎、向量检索、图引擎、白名单、实例创建/扩缩容/释放. Use this Skill's references or official Alibaba Cloud documentation; do not invent Lindorm-specific facts from general training knowledge.

GitHub
安装命令
npx skhub add aliyun/alibabacloud-lindorm-agent-skill
Markdown
SKILL.md

Lindorm Agent Skill

Alibaba Cloud Lindorm cloud native multi-model database Skill. Covers three domains: Operations Management, Developer Guidance, and Reference Materials. Developer guidance includes classic SQL/search usage plus vector retrieval, Lindorm AI engine calls, multimodal image-text search, and private knowledge base search.

Core Capability Matrix

CategorySub-ScenariosReference Docs
01-Dev GuidanceConnection setup, quick start, SQL guide, table design, search engine usage, vector retrieval, graph engine usage, AI engine calls, multimodal search, knowledge searchreferences/01-dev/
02-Ops ManagementInstance mgmt, instance lifecycle (create/scale/release/pay-type), monitoring, error troubleshooting, storage analysis, connection diagnostics, network access control, backup & restore, migration, permissions, slow queryreferences/02-ops/
03-ReferenceAliyun CLI command reference, Lindorm CLI (SQL client) guide, HBase Shell guide, RAM permissions, acceptance criteriareferences/03-ref/

Decision Tree

User Request
├── Connection / DDL / SQL / Code examples → 01-dev
│   ├── Connection address / code → references/01-dev/connection-guide.md
│   ├── DDL / write / query examples → references/01-dev/quick-start-guide.md
│   ├── SQL connection & SQL-based application development → references/01-dev/sql-client-guide.md
│   ├── SQL syntax reference → references/01-dev/sql-operations.md
│   ├── MySQL compatibility → references/01-dev/sql-usage-notes.md
│   ├── Table design guide → references/01-dev/table-design.md
│   ├── Search engine standalone usage → references/01-dev/search-guide.md
│   ├── Vector engine usage through Search / Wide Table → references/01-dev/vector-guide.md
│   ├── Graph engine usage (Gremlin / Schema / query) → references/01-dev/graph-guide.md
│   ├── Lindorm AI engine model calls → references/01-dev/ai-guide.md
│   ├── Multimodal image-text search scene → references/01-dev/multimodal-search-scene.md
│   └── Knowledge base search / private QA scene → references/01-dev/knowledge-search-scene.md
│
├── Instance / Monitoring / Errors / Performance / Storage / Connection / Scaling / Backup / Migration / Permissions / Slow query → 02-ops
│   ├── Instance query (list / details / engines / storage) → references/02-ops/instance-management.md
│   ├── Instance write ops (create / scale / release / pay-type) → references/02-ops/instance-lifecycle.md
│   ├── IP whitelist / ECS security group → references/02-ops/network-access-control.md
│   ├── Monitoring / Alerts → references/02-ops/monitoring-guide.md
│   ├── Error codes → references/02-ops/error-troubleshoot.md
│   ├── Storage analysis → references/02-ops/storage-analysis.md
│   ├── Connection diagnostics → references/02-ops/connection-troubleshoot.md
│   ├── Scale up/down → references/02-ops/instance-lifecycle.md
│   ├── Backup & restore → references/02-ops/backup-restore.md
│   ├── Data migration → references/02-ops/data-migration.md
│   ├── Account & permissions → references/02-ops/user-permission.md
│   └── Slow query analysis → references/02-ops/slow-query-analysis.md
│
└── Command list / Permission reference / CLI tools / SQL execution → 03-ref
    ├── Aliyun CLI command list + region rule + return structures (`aliyun lindorm ...`) → references/03-ref/related-commands.md
    ├── Lindorm CLI — SQL client, executes SQL (`lindorm-cli`) → references/03-ref/lindorm-cli-guide.md
    ├── HBase Shell (alihbase) → references/03-ref/hbase-shell-guide.md
    ├── RAM permission list → references/03-ref/ram-policies.md
    ├── Aliyun CLI setup → references/03-ref/cli-installation-guide.md
    ├── Acceptance criteria → references/03-ref/acceptance-criteria.md
    └── Verification methods → references/03-ref/verification-method.md

Quick Mapping Table

User saysScenarioReference Doc
"how to connect / connection address"Connection setupreferences/01-dev/connection-guide.md
"create table / insert / query examples"Quick startreferences/01-dev/quick-start-guide.md
"how to create a table"Table designreferences/01-dev/table-design.md
"DBA / ops debugging via SQL"SQL ops via CLI → SQL syntaxreferences/03-ref/lindorm-cli-guide.md → references/01-dev/sql-operations.md
"develop SQL app / code connection"SQL client dev → SQL syntaxreferences/01-dev/sql-client-guide.md → references/01-dev/sql-operations.md
"SQL syntax"SQL referencereferences/01-dev/sql-operations.md
"how to use SQL"SQL guidereferences/01-dev/sql-client-guide.md
"MySQL compatibility"SQL notesreferences/01-dev/sql-usage-notes.md
"search engine usage / ES API / 30070"Search engine standalone usagereferences/01-dev/search-guide.md
"vector engine / KNN / RRF / IVFPQ / IVFBQ"Vector retrieval through Search or Wide Tablereferences/01-dev/vector-guide.md
"AI engine / embedding / VL / rerank / 9002"Lindorm AI engine model callsreferences/01-dev/ai-guide.md
"multimodal retrieval / image-text search / image-to-image / text-to-image"Multimodal image-text search scenereferences/01-dev/multimodal-search-scene.md
"knowledge base retrieval / private QA / document chunking"Knowledge base retrieval and QA scenereferences/01-dev/knowledge-search-scene.md
"graph engine / Gremlin / graph query / graph schema / hasVector"Graph engine usage through Gremlinreferences/01-dev/graph-guide.md
"list instances / what instances exist"Instance queryreferences/02-ops/instance-management.md
"create instance / provision Lindorm"Instance creationreferences/02-ops/instance-lifecycle.md
"scale / resize / add nodes / enable engine"Instance scalingreferences/02-ops/instance-lifecycle.md
"release / delete / unsubscribe instance"Instance releasereferences/02-ops/instance-lifecycle.md
"switch billing method / convert to subscription"Pay-type conversionreferences/02-ops/instance-lifecycle.md
"whitelist / add IP / security group"Network access controlreferences/02-ops/network-access-control.md
"CPU / memory / QPS / latency"Monitoring queryreferences/02-ops/monitoring-guide.md
"configure alerts / alert notifications"Monitoring alertsreferences/02-ops/monitoring-guide.md
"got an error / error code"Error troubleshootingreferences/02-ops/error-troubleshoot.md
"slow query / query is slow"Slow query analysisreferences/02-ops/slow-query-analysis.md
"poor performance / high RT"Monitoring queryreferences/02-ops/monitoring-guide.md
"cannot connect / connection timeout"Connection diagnosticsreferences/02-ops/connection-troubleshoot.md
"storage usage"Storage analysisreferences/02-ops/storage-analysis.md
"hot/cold data / tiered storage"Storage analysisreferences/02-ops/storage-analysis.md
"scale up / add nodes"Scalingreferences/02-ops/instance-lifecycle.md
"backup / restore data"Backup & restorereferences/02-ops/backup-restore.md
"data migration / sync"Data migrationreferences/02-ops/data-migration.md
"create account / permissions"Permission managementreferences/02-ops/user-permission.md
"lindorm-cli / lindormcli"Lindorm CLI (SQL client)references/03-ref/lindorm-cli-guide.md
"aliyun lindorm / management CLI / instance lifecycle CLI"Aliyun CLI command referencereferences/03-ref/related-commands.md
"execute SQL / run query"SQL execution via CLIreferences/03-ref/lindorm-cli-guide.md → references/01-dev/sql-operations.md
"SHOW TABLES / DESCRIBE / view table schema / list tables"Schema exploration via CLIreferences/03-ref/lindorm-cli-guide.md
"preview data / check data / query data"Data preview via CLIreferences/03-ref/lindorm-cli-guide.md
"test connection / verify connection"Connection probe via CLIreferences/03-ref/lindorm-cli-guide.md
"HBase Shell / hbase shell "HBase Shellreferences/03-ref/hbase-shell-guide.md

Aliyun CLI

Prerequisites

When CLI invocation is required, the Agent must verify:

  1. CLI installed: aliyun version >= 3.4.1 — the aliyun lindorm subcommand is only available from 3.4.1 onwards. On an older CLI every aliyun lindorm ... call fails as an unknown command, so check the version before assuming a command is broken. If the CLI is missing or too old, see references/03-ref/cli-installation-guide.md. The lindorm plugin itself is pulled in by the AI-Mode step below (aliyun configure set --auto-plugin-install true + aliyun plugin update); confirm with aliyun lindorm --version.
  2. Credentials configured:

    Security Rules:

    • NEVER read, echo, or print AK/SK values
    • NEVER ask the user to input AK/SK directly in the conversation or command line
    • ONLY use aliyun configure list to check credential status

    If no valid profile exists, STOP. Configure credentials outside of this session.

  3. Permissions granted: Minimum AliyunLindormReadOnlyAccess + AliyunCloudMonitorReadOnlyAccess

    [MUST] Permission Failure Handling: When any command or API call fails due to permission errors at any point during execution, follow this process:

    1. Read references/03-ref/ram-policies.md to get the full list of permissions required by this SKILL
    2. If ram-permission-diagnose skill is available, use it to guide the user through requesting permissions. Otherwise, directly output the required RAM policy/action list, the error code, and step-by-step instructions for the user to request permissions from their administrator via RAM Console
    3. Pause and wait until the user confirms that the required permissions have been granted

Observability (MUST follow for every aliyun command)

Upon loading this skill, generate a fresh random session ID (32-char lowercase hex string) once for the entire session, and use it as {session-id} below. The session ID MUST be newly generated for each session: do NOT reuse the example value below or any session ID from a previous session. Read the skill version from the version field of references/manifest.json and use it as {skill-version} below.

Rule: Every aliyun CLI command that calls a cloud API MUST include the --user-agent flag. Local utility commands (e.g. configure, plugin, version) do not support this flag and should be excluded.

--user-agent "AlibabaCloud-Agent-Skills/alibabacloud-lindorm-agent-skill/{session-id} skill-version/{skill-version}"

Example (assuming session-id is a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6 and skill-version is 0.0.3):

aliyun lindorm v1 instance describe ld-xxx --lindorm-region cn-shanghai \
  --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-lindorm-agent-skill/a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6 skill-version/0.0.3"

Do not skip, alter the format, or omit --user-agent on any aliyun API command invocation.

Parameter Confirmation

Before executing any command, all user-configurable parameters (region, instance ID, time range, etc.) must be confirmed with the user.

Version Detection

For instance operations, the Agent must first determine the instance architecture, because V1 and V2 use different subcommands. Prefer aliyun lindorm instance list: it returns every instance in the region with both an arch (v1 / v2) and a service_type column, so one call resolves the architecture without guessing:

aliyun lindorm instance list --lindorm-region cn-shanghai --output json

For a single known instance, aliyun lindorm v1 instance describe <id> also returns service_type for both architectures — the underlying GetLindormInstance action is shared, despite the v1 command path.

service_type maps to the architecture as follows:

service_typeVersionDeployment
lindormV1Single-AZ
lindorm_multizoneV1Multi-AZ (HA)
lindorm_multizone_basicV1Multi-AZ (Basic)
lindorm_v2V2Single-AZ
lindorm_v2_multizoneV2Multi-AZ (Basic)
lindorm_v2_multizone_haV2Multi-AZ (HA)

General Policies

Region Policy

ScenarioCommandRequires region
List supported regionsaliyun lindorm regions list❌ Region-agnostic; falls back to a default endpoint when nothing is configured
Query all-region overviewaliyun lindorm summary❌ Region-agnostic; covers V1 + V2 across every region
Query instance listaliyun lindorm instance list✅ --lindorm-region, default cn-shanghai
Query instance details / engine / storage / whitelistaliyun lindorm v1|v2 instance ...✅ --lindorm-region — the endpoint is resolved from the region, not from the instance ID
Cloud monitoring querycms commands❌ Not needed, region auto-resolved via instanceId

⚠️ [MUST] Under aliyun lindorm, pass the region as --lindorm-region, never --region. --region is a global flag of the parent aliyun CLI, which consumes it before the plugin ever sees it. The command still succeeds but queries the profile's region instead of the one you asked for — a wrong-answer trap, not an error. The plugin does emit a warning to stderr, which the Agent must not ignore:

note: using region cn-shenzhen (from profile/environment). '--region' is consumed by the aliyun CLI
and never reaches this plugin — use '--lindorm-region <region>' to override.

The same applies to --profile, whose plugin-side equivalent is --lindorm-profile. From aliyun lindorm --help:

--lindorm-region string    Same as --region; use this under 'aliyun lindorm', where --region is consumed by the aliyun CLI
--lindorm-profile string   Same as --profile; use this under 'aliyun lindorm', where --profile is consumed by the aliyun CLI

When no --lindorm-region is given the region comes from the active profile. Always pass --lindorm-region explicitly, and verify the region_id in the output before telling the user which region the results describe.

Exception: profile create --region <region> is a command-local flag of that subcommand and works as written.

When a user reports that a region-scoped query silently returned another region's data (no error, wrong region_id), diagnose it as this flag trap — never as a RAM/permissions (Forbidden) problem. State the root cause (--region is consumed by the parent CLI) and the fix (--lindorm-region).

⚠️ summary under-reports — do not use it as an inventory. Observed returning a self-consistent total while individual regions were undercounted or missing entirely (e.g. a region reported as 9 instances while instance list --lindorm-region for that region returned 11). Treat it as a fast overview only; for an accurate count, use regions list then instance list --lindorm-region <region> per region.

Time Format

Cloud Monitor time parameter timezone notes:

  • ✅ 2026-04-14 08:00:00 (local time, parsed as CST Beijing time)
  • ✅ 1773897600000 (Unix millisecond timestamp, no timezone ambiguity)
  • ✅ 2026-04-14T08:00:00Z (ISO 8601 UTC full format, parsed as UTC, i.e. CST+8 = 16:00)
  • ❌ 2026-04-14T08:00Z (ISO 8601 short format, no seconds — unsupported, returns parse param time error)
  • ❌ Never use UTC Z format for user-intended local times (e.g. if user says "14:00", write 2026-04-14 14:00:00, not 2026-04-14T14:00:00Z)
  • ⚠️ Note: local time and ISO 8601 Z format query different time windows — common source of timezone-related issues

Command Reference

Query (read-only, no billing impact)

CommandDescriptionExample
aliyun lindorm regions listList supported regions (DescribeRegions); region-agnosticaliyun lindorm regions list --output json
aliyun lindorm summaryAll-region, all-architecture instance counts (GetInstanceSummary); region-agnosticaliyun lindorm summary --output json
aliyun lindorm instance listList ALL instances in the target region, V1 + V2 mixed (GetLindormInstanceList); arch / service_type columns identify the architecturealiyun lindorm instance list --lindorm-region cn-shanghai --output json
aliyun lindorm v1 instance describeV1 config/version/status (GetLindormInstance); no connection addressaliyun lindorm v1 instance describe ld-xxx --lindorm-region cn-beijing --output json
aliyun lindorm v2 instance describeV2 details incl. engine topology and connect_address_list (GetLindormV2InstanceDetails)aliyun lindorm v2 instance describe ld-xxx --lindorm-region cn-beijing --output json
aliyun lindorm v1 instance engine-listPer-engine connection addresses (GetLindormInstanceEngineList); the only way to get connect addresses on V1aliyun lindorm v1 instance engine-list ld-xxx --lindorm-region cn-beijing --output json
aliyun lindorm v2 instance engine-listSame endpoint, V2 subtreealiyun lindorm v2 instance engine-list ld-xxx --lindorm-region cn-beijing --output json
aliyun lindorm v1 instance storageV1 storage usage: hot/cold, per engine, per disk type (GetLindormFsUsedDetail)aliyun lindorm v1 instance storage ld-xxx --lindorm-region cn-beijing --output json
aliyun lindorm v2 instance storageV2 storage usage by disk category (GetLindormV2StorageUsage)aliyun lindorm v2 instance storage ld-xxx --lindorm-region cn-beijing --output json
aliyun lindorm v1 instance whitelist getGet IP whitelist (GetInstanceIpWhiteList, shared V1/V2)aliyun lindorm v1 instance whitelist get ld-xxx --lindorm-region cn-beijing
aliyun lindorm v1 instance security-group getGet bound ECS security groups (GetInstanceSecurityGroups, shared V1/V2)aliyun lindorm v1 instance security-group get ld-xxx --lindorm-region cn-beijing
aliyun lindorm vpc listList VPCs in the region (DescribeVpcs)aliyun lindorm vpc list --lindorm-region cn-beijing --output json
aliyun lindorm vpc vswitchList VSwitches, filterable by VPC / zone (DescribeVSwitches)aliyun lindorm vpc vswitch --vpc-id vpc-xxx --zone-id cn-beijing-i --lindorm-region cn-beijing --output json

Change (billable / destructive — asks for confirmation unless --yes)

CommandDescriptionExample
aliyun lindorm v2 instance createCreate a V2 instance (CreateLindormV2Instance); supports --dry-runaliyun lindorm v2 instance create --lindorm-region cn-beijing --name demo --zone-id cn-beijing-i --vpc-id vpc-xxx --vswitch-id vsw-xxx --arch-version 1.0 --pay-type POSTPAY --engine TABLE:lindorm.g.2xlarge:2 --cloud-storage-type PerformanceStorage --cloud-storage-size 400 --dry-run
aliyun lindorm v1 instance createCreate a V1 instance (CreateLindormInstance)aliyun lindorm v1 instance create --lindorm-region cn-hangzhou --name demo --zone-id cn-hangzhou-h --vpc-id vpc-xxx --vswitch-id vsw-xxx --lindorm-spec lindorm.g.2xlarge --lindorm-num 2 --instance-storage 480 --pay-type POSTPAY
aliyun lindorm v2 instance modifyScale a V2 instance (UpdateLindormV2Instance); one difference class per callaliyun lindorm v2 instance modify ld-xxx --lindorm-region cn-beijing --cloud-storage-size 800 --dry-run
aliyun lindorm v1 instance modifyScale a V1 instance (UpgradeLindormInstance); UpgradeType inferred from the flags givenaliyun lindorm v1 instance modify ld-xxx --lindorm-region cn-beijing --lindorm-num 4 --cluster-storage 1280 --yes
aliyun lindorm v1 instance modify --tsdb-spec/--tsdb-numEnable or scale the time-series enginealiyun lindorm v1 instance modify ld-xxx --lindorm-region cn-beijing --tsdb-spec lindorm.g.4xlarge --tsdb-num 2 --cluster-storage 2160 --yes
aliyun lindorm v1 instance modify --search-spec/--search-numEnable or scale the search enginealiyun lindorm v1 instance modify ld-xxx --lindorm-region cn-beijing --search-spec lindorm.g.xlarge --search-num 2 --yes
aliyun lindorm v1 instance whitelist updateReplace the IP whitelist of a group (UpdateInstanceIpWhiteList)aliyun lindorm v1 instance whitelist update ld-xxx --lindorm-region cn-beijing --group default --ips 10.0.0.0/8,192.168.1.1
aliyun lindorm v1 instance security-group updateReplace bound ECS security groups (UpdateInstanceSecurityGroups)aliyun lindorm v1 instance security-group update ld-xxx --lindorm-region cn-beijing --groups sg-aaa,sg-bbb
aliyun lindorm v1 instance switch-pay-typeConvert billing method (ModifyInstancePayType, shared V1/V2)aliyun lindorm v1 instance switch-pay-type ld-xxx --lindorm-region cn-beijing --pay-type PREPAY --pricing-cycle Month --duration 1
aliyun lindorm v2 instance releaseRelease a V2 instance (ReleaseLindormV2Instance); POSTPAY onlyaliyun lindorm v2 instance release ld-xxx --lindorm-region cn-beijing --yes
aliyun lindorm v1 instance releaseRelease a V1 instance (ReleaseLindormInstance); POSTPAY onlyaliyun lindorm v1 instance release ld-xxx --lindorm-region cn-beijing --yes --immediate

aliyun lindorm instance ... is an alias of aliyun lindorm v2 instance ....

⚠️ Under aliyun lindorm, use --lindorm-region / --lindorm-profile, never --region / --profile — the latter are global flags of the aliyun CLI, which parses them itself and does not forward them to the plugin, so they are silently ignored (exit code 0, wrong region used). The aliases work on the standalone binary too, so one spelling covers both modes. Requires plugin v0.2.20+.

Other flags available on every subcommand: --aliyun-profile / --output table|json|yaml (-o) / --yes / --non-interactive.

whitelist / security-group / switch-pay-type / engine-list exist identically under both v1 instance and v2 instance; storage is architecture-specific — pointing v1 instance storage at a V2 instance returns HTTP 200 with an empty body (not an error), and the reverse returns 451.

Enums for create / modify

EnumValues
EngineType (--engine)TABLE wide table / TSDB time series / LSEARCH search / LVECTOR vector / LTS stream / LCOLUMN column store
--engine format<EngineType>:<NodeSpec>:<NodeCount>[:<DiskType>:<DiskSizeGB>], repeatable; the disk tail is for arch 3.0 only — on 1.0 / 2.0 prefer instance-level --cloud-storage-*
CloudStorageTypeStandardStorage standard / PerformanceStorage performance / CapacityStorage capacity
ArchVersion1.0 single-zone (--zone-id + --vswitch-id) / 2.0 multi-zone basic / 3.0 multi-zone high availability (2.0 and 3.0 both need --primary-* + --standby-* + --coordinator-*)
PayTypePREPAY subscription (needs --duration) / POSTPAY pay-as-you-go
PricingCycleMonth (--duration 1-9) / Year (--duration 1-3)
V1 --cluster-storage480-1017600 GB, single-AZ instance-level cloud disk; cloud disks only grow
V1 --core-storagePer-core-node disk, multi-AZ only
V1 --cold-storage800-1000000 GB
V1 node counts--lindorm-num 2-90 / --tsdb-num 2-24 / --search-num 2-60

Engine Types

EngineV1 CodeV2 CodeNotes
LindormTablelindormlindormHBase-compatible, supports SQL (recommended)
LindormTable (columnar)—lcolumnV2 only
LindormTSDBtsdbtsdbTime-series data storage
LindormSearchsolrlsearchPort 30070 (ES-compatible); solr is the legacy API code name. Solr API (port 10020) is deprecated/offline
Lindorm Tunnel ServicebdsbdsFormerly BDS, no external connection
Compute EnginecomputecomputeFlink streaming engine, no external connection
Stream EnginestreamlstreamPort 33060 (MySQL protocol)
Message Engine—lmessageKafka-compatible, supports topic management and message production/consumption
Vector Engine—lvectorV2 only; built-in vector retrieval engine accessed through Search 30070 or Wide Table + Search
AI Engine—laiV2 only; AI inference engine (embedding / VL / rerank / chat); port 9002
LindormDFSfilefileOSS-compatible storage (HDFS protocol, port 9000)

Port Quick Reference

EngineProtocolPortNotes
LindormTableMySQL protocol33060✅ Recommended, preferred for SQL connections
LindormTableHBase API30020HBase native API compatible
LindormTableAvatica protocol30060⚠️ Legacy only, migrate to MySQL protocol
LindormTableCassandra CQL9042⚠️ Legacy only, Cassandra protocol compatible
Stream EngineMySQL protocol33060Stream SQL via MySQL protocol
LindormTSDBHTTP SQL8242HTTP SQL API
LindormSearchES-compatible30070Elasticsearch-compatible port, fixed. Solr API (port 10020) is deprecated/offline
Vector EngineBuilt-in service—V2 only; no direct endpoint; use Search 30070 or Wide Table + Search
AI EngineDashScope-compatible HTTP9002V2 only; uses x-ld-ak / x-ld-sk headers
LindormDFSHDFS9000NameNode port

Cloud Monitor API (aliyun cms)

CommandDescriptionExample
aliyun cms describe-metric-meta-listList available monitoring metricsaliyun cms describe-metric-meta-list --namespace acs_lindorm
aliyun cms describe-metric-lastGet latest monitoring data (returns per-node data; Datapoints is a JSON string requiring secondary parsing)aliyun cms describe-metric-last --namespace acs_lindorm --metric-name cpu_idle --dimensions '[{"instanceId":"ld-xxx"}]'
aliyun cms describe-metric-dataGet historical trend data (aggregated by period, no host dimension)aliyun cms describe-metric-data --namespace acs_lindorm --metric-name cpu_idle --dimensions '[{"instanceId":"ld-xxx"}]' --start-time "2026-04-14 08:00:00" --end-time "2026-04-14 09:00:00" --period 60

Metric Mapping

User saysV1 MetricV2 MetricUnit
CPU usage100 - cpu_idle100 - cpu_idle%
Memory usagemem_used_percent1 - mem_free / mem_total%
QPSread_ops + write_opsread_ops + write_opsops/s
Latency / RTread_rt / get_rt_avgread_rt / get_rt_avgms
P99 latencyget_rt_p99 / put_rt_p99— (no data)ms
Hot storage usage ratehot_storage_used_percentv2 instance storage%
Total storage usage ratestorage_used_percentv2 instance storage%
Hot storage byteshot_storage_used_bytesv2 instance storagebytes
Cold storage usage ratecold_storage_used_percentv2 instance storage%
Cold storage bytescold_storage_used_bytesv2 instance storagebytes

Full metric details: references/02-ops/monitoring-guide.md

Interaction Guidelines

Output Format

Monitoring Query:

[Summary] CPU usage 25% (normal)
[Time] <YYYY-MM-DD HH:MM–HH:MM>
[Trend] Stable (variance <10%)
[Details] avg 24.5%, max 32.1%, min 18.3%

Error Troubleshooting:

[Error Code] InvalidParameter.InstanceId
[Meaning] Instance ID is invalid or does not exist
[Possible Causes] 1.xxx 2.xxx 3.xxx
[Resolution Steps] 1.xxx 2.xxx 3.xxx

Instance List:

[Region] cn-shanghai  [Count] 3

| ID | Name | Status | Engines |
|----|------|--------|---------|
| ld-xxx | prod | Running | LindormTable + LindormTSDB |

Answer Language and Terminology (MUST)

  1. Chinese question → answer in Chinese. When the user asks in Chinese, the final answer must be in Chinese (never an all-English reply) and must reuse the user's standard Chinese terms verbatim at least once each — e.g. 云监控 (not only "CloudMonitor"), 全地域 (not only "cross-region"), 全量替换 (not only "full replacement"), 白名单 (not only "whitelist"/"IP whitelist"), 拓扑 (not only "topology"), 连接地址 (not only "connection address"/"endpoint"). Bilingual explanations are fine; an all-English answer or dropping the Chinese term entirely is a failed answer.
  2. Name API response fields exactly. When explaining a query result or a mismatch, cite the exact response field name — e.g. region_id, ServiceType, net_type. Paraphrasing without the field name loses traceability.
  3. Pair every control-plane OpenAPI operation with its CLI form. Any Lindorm control-plane OpenAPI operation mentioned in an answer — not only in blocked scenarios — must be given together with its corresponding aliyun lindorm CLI command (e.g. GetLindormInstance / aliyun lindorm v1 instance describe). This pairing rule does not apply to data-plane SQL, HBase Shell, Elasticsearch-compatible HTTP, or Gremlin operations that have no corresponding Lindorm control-plane OpenAPI operation.

Blocked Execution — Always Deliver the Complete Plan

When a query cannot complete (instance not visible under the current credentials, permission denied, resource not found, empty monitoring data, etc.), do not stop at reporting the blocker. The final answer MUST still deliver, in full:

  1. The complete decision path — name the exact OpenAPI operation AND its CLI command (always paired, never only the CLI form) for every branch, not only the branch attempted. Example: storage analysis requires GetLindormInstance (aliyun lindorm v1 instance describe) → ServiceType first, then GetLindormV2StorageUsage (aliyun lindorm v2 instance storage) or GetLindormFsUsedDetail (aliyun lindorm v1 instance storage); connection diagnosis requires instance status via GetLindormInstance, engine endpoints via GetLindormInstanceEngineList (aliyun lindorm v1 instance engine-list / v2 instance engine-list), topology via GetLindormV2InstanceDetails (aliyun lindorm v2 instance describe, returning engines[] / node_groups[] / connect_address_list[]), and net_type (public vs VPC).
  2. Every item the user asked for — if the user asked for instances and their engines, engines are covered explicitly; if asked to analyze peaks, the peak-analysis result or method is stated explicitly (in the user's own terms, e.g. 峰值).
  3. Exactly what is missing to proceed — instance ID, owning account, region, time window.
  4. The ready-to-run command(s) the user can execute once the missing input is provided.
  5. Instantiated examples, never empty placeholders. Where a real value is unavailable (e.g. zero instances in the account), still show the deliverable's concrete shape: a topology table with its real columns, a full connection-address format with real ports (e.g. ld-xxx-proxy-lindorm.lindorm.rds.aliyuncs.com:30020, MySQL protocol 33060, TSDB HTTP 8242). A bare <待查询> / <TBD> placeholder without the instantiated format is a failed reply.

A reply that only explains why it is blocked is a failed reply.

Code Generation Standards

General Principles

  1. Reference Skill documents first: Lindorm is domain-specific knowledge — information must come from references docs; direct answers from training knowledge are prohibited
  2. Check official docs when Skill doesn't cover it: For scenarios not covered by references docs, consult official Alibaba Cloud documentation

Pre-Generation Checklist

  • □ Connection parameter names are correct (MySQL protocol: jdbc:mysql://host:33060, HBase API: hbase.zookeeper.quorum)
  • □ Port numbers are correct (LindormTable/Stream Engine MySQL 33060, HBase API 30020, LindormTSDB HTTP 8242, LindormSearch 30070)
  • □ Include official documentation link
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

未指定

源路径

skills/database/hitsdb/alibabacloud-lindorm-agent-skill

默认分支

master

最新提交

1ba18b8

Tree SHA

6ed356b