
Cx Cost Optimization
This one's for teams staring at a Coralogix bill wondering where the money went. It walks through the full cost audit: measuring data usage by type, reviewing TCO policies to see what's hitting expensive frequent search vs. cheap archive, checking retention periods, and configuring cold storage. The workflow is methodical, measuring first with usage summaries and log counts, then diagnosing policy misconfigurations, then recommending fixes in priority order. Nice touch that it enforces read-only mode by default and requires explicit approval before any write operations. If you're spending serious money on observability and need to trim it without flying blind, this gives you the investigation playbook and all the CLI commands with jq recipes to slice the data.
- skills.sh installs
- 4K
- GitHub stars
- 242
- last updated
- Aug 21, 2026
Install
$ npx -y skills add coralogix/cx-cli --skill cx-cost-optimization --agent claude-codeInstalls into .claude/skills of the current project.
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
| Command | Subcommands | Purpose |
|---|---|---|
cx usage | summary, daily, logs-count, spans-count, export-status, capabilities, query | Measure current data consumption and billable usage |
cx tco | list, get, create, update, delete, reorder, test, settings, settings-update | Manage TCO (Total Cost of Ownership) policies |
cx retentions | list, update, activate, status | Manage data retention periods |
cx archive logs | get, set | Configure logs archive target |
cx archive metrics | get, create, update, enable, disable, validate | Configure metrics archive storage |
cx metrics query | <promql> (positional), --time | Query billing and usage metrics via PromQL (instant) |
cx metrics query-range | <promql> (positional), --start/--end | Query billing and usage metrics via PromQL (range) |
Sponsors
Details
- Repository
- github.com/coralogix/cx-cli
- Categories
- DevOps & CI/CD, Productivity & Planning, CLI & Terminal
- First seen
- Jun 3, 2026