oraclecloud-cost-tuning

Featured

Track OCI spend with the Usage API and set up budget alerts. Use when monitoring Oracle Cloud costs, creating budgets, analyzing spend by compartment or service, or optimizing Universal Credits consumption. Trigger with "oraclecloud cost", "oci budget", "oci usage api", "oci spending", "oracle cloud cost tuning".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Oracle Cloud Cost Tuning ## Overview Track OCI spending programmatically using the Usage API and set up budget alerts before Universal Credits run out unexpectedly. OCI pricing varies by shape, region, and commitment level, and the Cost Analysis tool in the Console is buried and confusing. This skill uses the Usage API to query spend by compartment, service, and shape, creates budgets with alert rules, and covers optimization strategies including Always Free tier resources, preemptible instances, and reserved capacity. **Purpose:** Get visibility into OCI spending through code, set proactive budget alerts, and identify cost optimization opportunities. ## Prerequisites - **OCI tenancy** with an API signing key in `~/.oci/config` - **Python 3.8+** with `pip install oci` - **Tenancy OCID** (root compartment) for tenancy-wide cost queries - **IAM policy** granting `read usage-reports` in the tenancy - **Notification topic OCID** for budget alert delivery (see `oraclecloud-observability`) ## Instructions ### Step 1: Query Usage with the Usage API The Usage API returns cost and usage data broken down by configurable dimensions: ```python import oci from datetime import datetime, timedelta config = oci.config.from_file("~/.oci/config") usage_api = oci.usage_api.UsageapiClient(config) # Query last 30 days of spend by service response = usage_api.request_summarized_usages( oci.usage_api.models.RequestSummarizedUsagesDetails( tenant_id=config["tenancy"], ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

DevOps & Infrastructure Featured

oraclecloud-observability

Set up programmatic monitoring, logging, and alarms for OCI resources. Use when configuring OCI Monitoring metrics, creating alarm rules, publishing custom metrics, or searching logs via the Logging service. Trigger with "oraclecloud observability", "oci monitoring", "oci alarms", "oci logging", "oracle cloud observability".

2,266 Updated today
jeremylongshore
AI & Automation Featured

oraclecloud-query-transform

Query OCI metrics with MQL and create monitoring alarms via the Python SDK. Use when building dashboards, querying CPU/memory/network metrics, or creating alarms. Trigger with "oci monitoring", "mql query", "oci metrics", "oci alarm", "cpu utilization oci".

2,266 Updated today
jeremylongshore
AI & Automation Featured

attio-cost-tuning

Optimize Attio API usage costs -- reduce request volume, select the right plan, monitor usage, and implement budget alerts. Trigger: "attio cost", "attio billing", "reduce attio costs", "attio pricing", "attio expensive", "attio budget", "attio usage".

2,266 Updated today
jeremylongshore
AI & Automation Featured

oraclecloud-rate-limits

Handle OCI API rate limits with defensive retry patterns and known limits by service. Use when automating bulk OCI operations, hitting 429 TooManyRequests errors, or building resilient API clients. Trigger with "oraclecloud rate limits", "oci 429 error", "oci throttling", "oci backoff".

2,266 Updated today
jeremylongshore
DevOps & Infrastructure Solid

database-cloud-optimization-cost-optimize

You are a cloud cost optimization expert specializing in reducing infrastructure expenses while maintaining performance and reliability. Analyze cloud spending, identify savings opportunities, and implement cost-effective architectures across AWS, Azure, and GCP.

39,227 Updated today
sickn33