LogoAwesome Skills
  • Search
  • Category
  • Tag
  • Blog
LogoAwesome Skills
LogoAwesome Skills

Discover Open-Source Agent Skills for AI Coding Assistants

Product

  • Search
  • Category
  • Tag
  • Blog

Resources

  • Claude Skill Docs
  • Antigravity Skills Docs

Tools

  • Claude Code
  • OpenCode
  • Cursor
  • Codex
  • Antigravity

Company

  • Privacy Policy
  • Terms of Service
  • Sitemap

©2026 Awesome Skills. All rights reserved.

Privacy PolicyTerms
Back to Skills

cx-cost-optimization

Use this skill when the user asks to "check data usage", "list TCO policies", "reduce Coralogix costs", "optimize observability spend", "lower our logging bill", "data budget exceeded", "TCO policy", "retention tier", "archive storage", "ingestion costs", "frequent search vs archive", "why is our bill so high", "spending too much on logs", "data retention settings", "cost analysis", "usage breakdown", "optimize log volume", "control data ingestion", "archive cold data", "billing units", "plan co

114stars10forksUpdated 8/17/2026
Developer Tools#logging#observability#finops#cli#cost-optimization#coralogix

Security Assessment

Safe(93/100)
Security Score93/100

About cx-cost-optimization

This skill guides an agent through investigating and reducing Coralogix observability spend using the `cx` command-line tool. It addresses the recurring problem of runaway logging and telemetry bills by covering the full cost-management lifecycle: measuring current data consumption, reviewing TCO (Total Cost of Ownership) policies that route logs between expensive Frequent Search and cheap Archive tiers, adjusting retention periods, and configuring archive storage for cold data. The emphasis is on grounding any billing answer in authoritative, tenant-specific data rather than guesswork.

The workflow centers on a mandatory two-step usage pattern: first run `cx usage capabilities` to discover the labels, measurements, units, and request limits the Data Usage Query API supports for the current tenant, then build a `cx usage query` request derived only from that response. Beyond usage measurement, it documents commands for TCO policy management (`list`, `get`, `create`, `update`, `delete`, `reorder`), retention control (`cx retentions`), logs and metrics archive configuration, and PromQL-based metrics queries. Most steps are read-only diagnostics; write operations such as enabling archive are explicitly gated behind user approval and `--from-file` inputs. A companion reference file documents the query API schemas and limits.

The target users are DevOps engineers, SREs, platform teams, and FinOps practitioners running Coralogix who need to diagnose why a bill is high and act on it. Typical use cases include answering "why is our logging bill so high", identifying high-volume low-value logs to move to archive, trimming over-long retention on cold data, and spotting usage anomalies or overage against a daily plan.

FAQ

What does this skill actually do?

It provides a structured workflow and command reference for investigating and lowering Coralogix data costs via the `cx` CLI — measuring usage, reviewing TCO policies, adjusting retention, and configuring archive storage.

How are authoritative billing numbers obtained?

Through a mandatory two-step flow: run `cx usage capabilities` to get the tenant's currently valid dimensions and limits, then build and run `cx usage query` using only that response, rather than guessing labels or intervals.

What are the prerequisites?

The Coralogix `cx` CLI installed and configured with a profile (commands support `-p <profile>`), plus `jq` for sorting JSON output in some examples. All commands support `-o json` for structured output.

Does it make changes that could affect my environment?

Most steps are read-only diagnostics. Write actions such as creating TCO policies, updating retention, or enabling archive use `--from-file` inputs and are called out to require user approval before execution.

What kinds of cost problems does it target?

High-volume low-value logs on the expensive Frequent Search tier, unnecessarily long retention on cold data, missing archive configuration, and usage anomalies or overages against a plan.

All Files

2 files
SKILL.md13.3 KB
View
references/data-usage-query-api.md3.5 KB
View

Install cx-cost-optimization

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

coralogix/cx-cli

Related Skills

short-form-video

14

multi-asset-morning-briefing

7,907

content-strategy

2,901

doherty-threshold

2,901