coralogix avatar

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-code

Installs 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

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)

Sponsors

Details

Repository
github.com/coralogix/cx-cli
Categories
DevOps & CI/CD, Productivity & Planning, CLI & Terminal
First seen
Jun 3, 2026

More from coralogix/cx-cli

All 14
1coralogix avatarcx-dashboardscoralogix/cx-cliBuild and deploy a Coralogix dashboard for a given service from its logs, spans, metrics, and service specs. Discovers telemetry via cx CLI commands, emits impo4Kskills.sh installs
2starchild-ai-agent avatarpreview-devstarchild-ai-agent/official-skillsFrontend & fullstack development with live preview. Use when the user wants to build a web page, frontend app, fullstack project, or any web UI — including Reac4Kskills.sh installs
3dotnet avatarmigrate-vstest-to-mtpdotnet/skillsMigrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Tes3.9Kskills.sh installs
4giuseppe-trisciuoglio avatarnextjs-deploymentgiuseppe-trisciuoglio/developer-kitProvides comprehensive patterns for deploying Next.js applications to production. Use when configuring Docker containers, setting up GitHub Actions CI/CD pipeli3.8Kskills.sh installs
5forcedotcom avatardeveloping-agentforceforcedotcom/sf-skillsBuild, modify, debug, and deploy agents with Agentforce Agent Script. TRIGGER when: user creates, modifies, or asks about .agent files or aiAuthoringBundle meta3.8Kskills.sh installs
6yaklang avatarcontainer-escape-techniquesyaklang/hack-skillsContainer escape playbook. Use when operating inside a Docker container, LXC, or Kubernetes pod and need to escape to the host via privileged mode, capabilities3.8Kskills.sh installs