EV

evernote-observability

Set up Prometheus metrics, structured logging, and health checks for Evernote API integrations.

Install

mkdir -p .claude/skills/evernote-observability && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/7448" && unzip -o skill.zip -d .claude/skills/evernote-observability && rm skill.zip

Installs to .claude/skills/evernote-observability

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Implement observability for Evernote integrations.
50 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Track API metrics using Prometheus counters and histograms
  • Implement structured JSON logging with token redaction
  • Configure health and readiness endpoints
  • Define Prometheus alert rules for rate limits and latency
  • Wrap NoteStore with a Proxy for automatic metric recording

How it works

The skill instruments the Evernote NoteStore client using a Proxy to capture API call data, which is then recorded as Prometheus metrics and structured JSON logs.

Inputs & outputs

You give it
Evernote API calls
You get back
Prometheus metrics and JSON logs

When to use evernote-observability

  • Setup Prometheus metrics
  • Configure API logging
  • Implement health checks

About this skill

Evernote Observability

Overview

Comprehensive observability setup for Evernote integrations: Prometheus metrics for API call tracking, structured JSON logging, OpenTelemetry tracing, health check endpoints, and alerting rules.

Prerequisites

  • Monitoring infrastructure (Prometheus, Datadog, or CloudWatch)
  • Log aggregation (ELK, Loki, or CloudWatch Logs)
  • Alerting system (PagerDuty, Opsgenie, or Slack webhooks)

Instructions

Step 1: Metrics Collection

Track key metrics with Prometheus counters and histograms: evernote_api_calls_total (by method and status), evernote_api_duration_seconds (latency histogram), evernote_rate_limits_total (rate limit hits), evernote_quota_usage_bytes (upload quota consumption).

const { Counter, Histogram } = require('prom-client');

const apiCalls = new Counter({
  name: 'evernote_api_calls_total',
  help: 'Total Evernote API calls',
  labelNames: ['method', 'status']
});

const apiDuration = new Histogram({
  name: 'evernote_api_duration_seconds',
  help: 'Evernote API call duration',
  labelNames: ['method'],
  buckets: [0.1, 0.5, 1, 2, 5, 10]
});

Step 2: Instrumented Client

Wrap the NoteStore with a Proxy that automatically records metrics for every API call. Increment counters on success/failure, observe latency in histograms, and count rate limit events.

Step 3: Structured Logging

Use JSON-formatted logs with consistent fields: timestamp, level, method, duration, userId (hashed), noteGuid. Redact access tokens from all log output.

function logApiCall(method, duration, error) {
  const entry = {
    timestamp: new Date().toISOString(),
    service: 'evernote-integration',
    method,
    duration_ms: duration,
    status: error ? 'error' : 'success',
    error_code: error?.errorCode
  };
  console.log(JSON.stringify(entry));
}

Step 4: Health and Readiness Endpoints

Implement /health (liveness: is the process running?) and /ready (readiness: can we reach Evernote API?). Include cache connectivity check.

Step 5: Alert Rules

Configure Prometheus alerts: rate limit hits > 5 in 10 minutes, API error rate > 10%, p95 latency > 5 seconds, quota usage > 90%.

# prometheus-alerts.yml
groups:
  - name: evernote
    rules:
      - alert: EvernoteRateLimited
        expr: rate(evernote_rate_limits_total[10m]) > 0.5
        for: 5m
        labels: { severity: warning }
        annotations:
          summary: "Evernote rate limits detected"

For the complete metrics setup, Grafana dashboard JSON, tracing configuration, and alert rules, see Implementation Guide.

Output

  • Prometheus metrics: API calls, latency histogram, rate limits, quota usage
  • Instrumented NoteStore client with automatic metric recording
  • Structured JSON logging with token redaction
  • Health and readiness endpoints
  • Prometheus alert rules for rate limits, errors, and latency

Error Handling

ErrorCauseSolution
Metrics endpoint not scrapedPrometheus target missingAdd service to Prometheus scrape config
Missing trace contextOpenTelemetry not initializedInitialize tracer before creating Evernote client
Log volume too highLogging every API callSample debug logs, always log errors and rate limits
Alert fatigueThresholds too lowTune alert thresholds based on baseline metrics

Resources

Next Steps

For incident handling, see evernote-incident-runbook.

Examples

Grafana dashboard: Display API call rate, p50/p95/p99 latency, error rate, rate limit frequency, and quota usage on a single dashboard. Set time range to last 24 hours.

Rate limit alerting: Alert on-call when rate limit hits exceed 5 per 10-minute window. Include runbook link to evernote-rate-limits in the alert annotation.

When not to use it

  • When logging raw access tokens
  • When ignoring rate limit monitoring

Prerequisites

Monitoring infrastructureLog aggregationAlerting system

Limitations

  • Metrics endpoint requires manual scrape configuration
  • OpenTelemetry must be initialized before the Evernote client

How it compares

Unlike manual logging, this approach provides automated, standardized observability including latency histograms and rate limit tracking.

Compared to similar skills

evernote-observability side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
evernote-observability (this skill)127dReviewIntermediate
langfuse76moNo flagsIntermediate
appinsights-instrumentation67moReviewBeginner
instantly-observability227dCautionIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jeremylongshore

View all by jeremylongshore

analyzing-logs

jeremylongshore

Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.

14123

ollama-setup

jeremylongshore

Configure auto-configure Ollama when user needs local LLM deployment, free AI alternatives, or wants to eliminate hosted API costs. Trigger phrases: "install ollama", "local AI", "free LLM", "self-hosted AI", "replace OpenAI", "no API costs". Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

1167

backtesting-trading-strategies

jeremylongshore

Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".

1071

generating-database-seed-data

jeremylongshore

Process this skill enables AI assistant to generate realistic test data and database seed scripts for development and testing environments. it uses faker libraries to create realistic data, maintains relational integrity, and allows configurable data volumes. u... Use when working with databases or data models. Trigger with phrases like 'database', 'query', or 'schema'.

1033

cursor-codebase-indexing

jeremylongshore

Execute set up and optimize Cursor codebase indexing. Triggers on "cursor index setup", "codebase indexing", "index codebase", "cursor semantic search". Use when working with cursor codebase indexing functionality. Trigger with phrases like "cursor codebase indexing", "cursor indexing", "cursor".

885

testing-mobile-apps

jeremylongshore

Execute mobile app testing on iOS and Android devices/simulators. Use when performing specialized testing. Trigger with phrases like "test mobile app", "run iOS tests", or "validate Android functionality".

810

You might also like

langfuse

davila7

Expert in Langfuse - the open-source LLM observability platform. Covers tracing, prompt management, evaluation, datasets, and integration with LangChain, LlamaIndex, and OpenAI. Essential for debugging, monitoring, and improving LLM applications in production. Use when: langfuse, llm observability, llm tracing, prompt management, llm evaluation.

743

appinsights-instrumentation

github

Instrument a webapp to send useful telemetry data to Azure App Insights

66

instantly-observability

jeremylongshore

Set up comprehensive observability for Instantly integrations with metrics, traces, and alerts. Use when implementing monitoring for Instantly operations, setting up dashboards, or configuring alerting for Instantly integration health. Trigger with phrases like "instantly monitoring", "instantly metrics", "instantly observability", "monitor instantly", "instantly alerts", "instantly tracing".

26

apollo-observability

jeremylongshore

Set up Apollo.io monitoring and observability. Use when implementing logging, metrics, tracing, and alerting for Apollo integrations. Trigger with phrases like "apollo monitoring", "apollo metrics", "apollo observability", "apollo logging", "apollo alerts".

12

fireflies-observability

jeremylongshore

Set up comprehensive observability for Fireflies.ai integrations with metrics, traces, and alerts. Use when implementing monitoring for Fireflies.ai operations, setting up dashboards, or configuring alerting for Fireflies.ai integration health. Trigger with phrases like "fireflies monitoring", "fireflies metrics", "fireflies observability", "monitor fireflies", "fireflies alerts", "fireflies tracing".

02

linear-observability

jeremylongshore

Implement monitoring, logging, and alerting for Linear integrations. Use when setting up metrics collection, creating dashboards, or configuring alerts for Linear API usage. Trigger with phrases like "linear monitoring", "linear observability", "linear metrics", "linear logging", "monitor linear integration".

10

Search skills

Search the agent skills registry