Loading...
Loading...
Query Coralogix infrastructure resources with the `cx infra` CLI — discover monitored resource types, list resources, check per-resource data. Use when the user asks to "show resource types", "list infrastructure resources", "what resources of this kind are monitored", "list resources of this kind", "is this resource healthy", "resource health history", "when did this resource go critical", "get raw resource data", "infrastructure inventory", "find resources by name", "filter resources by service or environment", or wants to explore infrastructure resources and their data.
npx skill4agent add coralogix/cx-cli cx-infra| Command | Purpose | Key flags |
|---|---|---|
| List available resource types (category/type pairs) | - |
| List resources of one category/type | |
| Daily health samples for one resource, oldest first | - |
| Raw resource document as JSON | - |
-o json-o agentstypeslist-p <profile>health-historyraw-data-p--scopeserviceenvironmentteam--scope environment=prod --scope service=checkout--scope service=a --scope service=b--start-row--end-row--end-row--end-row--start-rowliststart-row + rowstotal_count--name-filter--scopelisttotal_countreturned_countresourcestotal_countstart_row + returned_count < total_countlist:=types--category--typelistresource_idweb-server-1cx infra resources types -o jsoncx infra resources list --category Hosts --type EC2_Instances \
--name-filter web --scope environment=prod -o jsonresource_idHealthyCriticalUnmonitoredcx infra resources health-history "1001234:host_id=i-abc123" -o jsonraw-data# Rows live under .resources — `list` returns an envelope
cx infra resources list --category Hosts --type EC2_Instances -o json \
| jq '[.resources[] | {resource_id, name}]'cx infra resources list --category Hosts --type EC2_Instances -o json \
| jq '{total_count, returned_count}'
# Next window, if there is one
cx infra resources list --category Hosts --type EC2_Instances \
--start-row 100 --end-row 200 -o json# health-history returns a bare array, so no .resources here
cx infra resources health-history "1001234:host_id=i-abc123" -o json \
| jq '[.[] | select(.status == "Critical")]'# Source-specific detail: tags, instance metadata, configuration
cx infra resources raw-data "1001234:host_id=i-abc123" -o json--category--typecx infra resources types:|=serviceenvironmentteamraw-data[]json[0]:agentsNo raw data found.no raw data for this resource-o jsonjq-o agentstypeslist-p <profile>listcounts_by_profiletotal_counthealth-historyraw-data-p1001234:host_id=…listprofileHealthyCriticalUnmonitoredresource_idhealth-historyraw-datanameservicecx-telemetry-queryingcx search-fields "<name>" -s valuecx logs "filter $l.subsystemname == '<service>'"Criticalcx-alertscx alerts list --name "<name-or-service>"cx-dashboardscx dashboards search "<name-or-service> ..."cx dashboards query-search --description "..."search-fields -s valuequery-search --field