palantir-observability

Featured

Set up observability for Palantir Foundry integrations with metrics, logging, and alerts. Use when implementing monitoring for Foundry API calls, setting up dashboards, or configuring alerting for Foundry integration health. Trigger with phrases like "palantir monitoring", "foundry metrics", "palantir observability", "monitor foundry", "foundry alerts".

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

# Palantir Observability ## Overview Set up comprehensive observability for Foundry integrations: structured logging with request IDs, Prometheus metrics for API latency/errors, health check endpoints, and alert rules. ## Prerequisites - Working Foundry integration - Prometheus + Grafana (or equivalent monitoring stack) - Familiarity with `palantir-prod-checklist` ## Instructions ### Step 1: Structured Logging ```python import logging, json, time, uuid class FoundryLogger: def __init__(self): self.logger = logging.getLogger("foundry") handler = logging.StreamHandler() handler.setFormatter(logging.Formatter("%(message)s")) self.logger.addHandler(handler) self.logger.setLevel(logging.INFO) def log_api_call(self, method: str, endpoint: str, status: int, duration_ms: float): self.logger.info(json.dumps({ "timestamp": time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime()), "request_id": str(uuid.uuid4())[:8], "service": "foundry", "method": method, "endpoint": endpoint, "status": status, "duration_ms": round(duration_ms, 2), "level": "error" if status >= 400 else "info", })) ``` ### Step 2: Prometheus Metrics ```python from prometheus_client import Counter, Histogram, Gauge foundry_requests = Counter( "foundry_api_requests_total", "Total Foundry API requests", ["method", "endpoint", "status"], ) foundry_late...

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