Skip to content
coralogix avatar

Cx Cost Optimization

Coralogix cost-reduction skill covering usage measurement, TCO policy review, retention tuning, and archive configuration.

CCM score
70 of 100
skills.sh installs
5.3K
GitHub stars
243
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the cost lifecycle: measuring billable usage, reviewing TCO policies, checking retention periods, and configuring archive storage
  • Requires cx usage capabilities before any cx usage query, so billing answers rely on tenant-specific labels and units rather than guessed ones
  • Provides jq recipes for ranking top consumers, daily trends, logs and spans counts, and filtering low-priority TCO policies
  • Designed for teams investigating why observability spend is high and deciding which logs to move to archive tiers

Install

$ npx -y skills add coralogix/cx-cli --skill cx-cost-optimization -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Cost Optimization Skill

Use this skill when investigating or reducing Coralogix data costs. It covers the full cost management lifecycle: measuring current spend, reviewing TCO policies, adjusting retention periods, and configuring archive storage for cold data.


CLI Commands

CommandSubcommandsPurpose
cx usagesummary, daily, logs-count, spans-count, export-status, capabilities, queryMeasure current data consumption and billable usage
cx tcolist, get, create, update, delete, reorder, test, settings, settings-updateManage TCO (Total Cost of Ownership) policies
cx retentionslist, update, activate, statusManage data retention periods
cx archive logsget, setConfigure logs archive target
cx archive metricsget, create, update, enable, disable, validateConfigure metrics archive storage
cx metrics query<promql> (positional), --timeQuery billing and usage metrics via PromQL (instant)
cx metrics query-range<promql> (positional), --start/--endQuery billing and usage metrics via PromQL (range)

Details

Repository
github.com/coralogix/cx-cli
Categories
DevOps & Cloud, Data Science & Analytics
First seen
Jun 3, 2026

Questions

What does the cx-cost-optimization skill do?

cx-cost-optimization helps an agent investigate and reduce Coralogix data costs. It covers measuring current spend with cx usage, reviewing TCO policies, adjusting retention periods, and configuring archive storage for cold data.

How do I install the cx-cost-optimization skill?

Run npx -y skills add coralogix/cx-cli --skill cx-cost-optimization -y in a project to install cx-cost-optimization. Once installed, the agent can answer questions such as why the Coralogix bill is high or how to lower the logging bill.

Which category is cx-cost-optimization in, and what sets it apart?

cx-cost-optimization is listed in the DevOps & Cloud category on Claude Marketplaces, next to azure-diagnostics, azure-prepare, azure-deploy, azure-validate and azure-storage. Unlike those Azure skills, cx-cost-optimization targets Coralogix billable usage, TCO policies and retention settings.

Does cx-cost-optimization require the cx CLI?

Yes, cx-cost-optimization works through the cx CLI from the coralogix/cx-cli repository, using commands such as cx usage capabilities, cx tco list and cx retentions list. The skill's metadata shows version 0.1.0.

More from coralogix/cx-cli

All 12

Similar to Cx Cost Optimization

More DevOps & Cloud