salesforce-observability

Featured

Set up observability for Salesforce integrations with API limit monitoring, error tracking, and alerting. Use when implementing monitoring for Salesforce operations, tracking API consumption, or configuring alerting for Salesforce integration health. Trigger with phrases like "salesforce monitoring", "salesforce metrics", "salesforce observability", "monitor salesforce", "salesforce alerts", "salesforce API usage dashboard".

AI & Automation 2,926 stars 433 forks Updated yesterday 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

# Salesforce Observability ## Overview Instrument Salesforce integrations with API limit monitoring, SOQL performance tracking, error classification, and alerting. Uses Salesforce's built-in Limits API and EventLogFile for deep visibility. ## Prerequisites - jsforce connection configured - Prometheus or compatible metrics backend (optional) - Grafana or similar dashboarding tool (optional) - Salesforce Enterprise+ for EventLogFile access ## Instructions ### Step 1: API Limit Monitoring (Core Metric) ```typescript import { getConnection } from './salesforce/connection'; import { Registry, Gauge, Counter, Histogram } from 'prom-client'; const registry = new Registry(); // The single most important Salesforce metric const apiLimitGauge = new Gauge({ name: 'salesforce_api_limit_remaining', help: 'Remaining daily API calls', registers: [registry], }); const apiLimitMaxGauge = new Gauge({ name: 'salesforce_api_limit_max', help: 'Maximum daily API calls', registers: [registry], }); const apiUsagePercent = new Gauge({ name: 'salesforce_api_usage_percent', help: 'Percentage of daily API calls used', registers: [registry], }); // Poll limits every 5 minutes (each poll = 1 API call) setInterval(async () => { try { const conn = await getConnection(); const limits = await conn.request('/services/data/v59.0/limits/'); apiLimitGauge.set(limits.DailyApiRequests.Remaining); apiLimitMaxGauge.set(limits.DailyApiRequests.Max); const used = limi...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category