Skip to main content
Glama

CodeGraph CLI MCP Server

by Jakedismo
grafana-dashboard.json22.3 kB
{ "annotations": { "list": [ { "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" }, { "datasource": "prometheus", "enable": true, "expr": "changes(codegraph_version_info[1h]) > 0", "iconColor": "green", "name": "Deployments", "titleFormat": "New version deployed: {{version}}" } ] }, "editable": true, "gnetId": null, "graphTooltip": 1, "id": null, "links": [ { "icon": "external link", "tags": [], "targetBlank": true, "title": "CodeGraph Runbooks", "tooltip": "Operational runbooks", "type": "link", "url": "https://docs.codegraph.example.com/runbooks" } ], "panels": [ { "datasource": "prometheus", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "vis": false }, "lineInterpolation": "linear", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "line" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 0.05 } ] }, "unit": "s" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, "id": 1, "options": { "legend": { "calcs": [ "lastNotNull", "max" ], "displayMode": "table", "placement": "right" }, "tooltip": { "mode": "multi" } }, "targets": [ { "expr": "histogram_quantile(0.50, rate(http_request_duration_seconds_bucket{job=\"codegraph-api\"}[5m]))", "interval": "", "legendFormat": "P50", "refId": "A" }, { "expr": "histogram_quantile(0.95, rate(http_request_duration_seconds_bucket{job=\"codegraph-api\"}[5m]))", "interval": "", "legendFormat": "P95", "refId": "B" }, { "expr": "histogram_quantile(0.99, rate(http_request_duration_seconds_bucket{job=\"codegraph-api\"}[5m]))", "interval": "", "legendFormat": "P99", "refId": "C" } ], "title": "Request Latency (Architecture Target: <50ms P95)", "type": "timeseries" }, { "datasource": "prometheus", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "vis": false }, "lineInterpolation": "linear", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "reqps" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, "id": 2, "options": { "legend": { "calcs": [ "lastNotNull", "max" ], "displayMode": "table", "placement": "right" }, "tooltip": { "mode": "multi" } }, "targets": [ { "expr": "rate(http_requests_total{job=\"codegraph-api\"}[5m])", "interval": "", "legendFormat": "Total RPS", "refId": "A" }, { "expr": "rate(http_requests_total{job=\"codegraph-api\",status=~\"2..\"}[5m])", "interval": "", "legendFormat": "Success (2xx)", "refId": "B" }, { "expr": "rate(http_requests_total{job=\"codegraph-api\",status=~\"4..\"}[5m])", "interval": "", "legendFormat": "Client Errors (4xx)", "refId": "C" }, { "expr": "rate(http_requests_total{job=\"codegraph-api\",status=~\"5..\"}[5m])", "interval": "", "legendFormat": "Server Errors (5xx)", "refId": "D" } ], "title": "Request Rate & Status Codes (Architecture Target: >10,000 QPS)", "type": "timeseries" }, { "datasource": "prometheus", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "yellow", "value": 85 }, { "color": "green", "value": 95 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 0, "y": 8 }, "id": 3, "options": { "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "8.0.0", "targets": [ { "expr": "(rate(graph_cache_hits_total{job=\"codegraph-api\"}[5m]) / (rate(graph_cache_hits_total{job=\"codegraph-api\"}[5m]) + rate(graph_cache_misses_total{job=\"codegraph-api\"}[5m]))) * 100", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "Cache Hit Rate (Target: >92%)", "type": "gauge" }, { "datasource": "prometheus", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 500 }, { "color": "red", "value": 1000 } ] }, "unit": "decbytes" }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 6, "y": 8 }, "id": 4, "options": { "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "8.0.0", "targets": [ { "expr": "process_resident_memory_bytes{job=\"codegraph-api\"}", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "Memory Usage (Target: <500MB/100k LOC)", "type": "gauge" }, { "datasource": "prometheus", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 70 }, { "color": "red", "value": 90 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 12, "y": 8 }, "id": 5, "options": { "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "8.0.0", "targets": [ { "expr": "rate(process_cpu_seconds_total{job=\"codegraph-api\"}[5m]) * 100", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "CPU Usage (Target: <80%)", "type": "gauge" }, { "datasource": "prometheus", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "0": { "color": "red", "index": 1, "text": "DOWN" }, "1": { "color": "green", "index": 0, "text": "UP" } }, "type": "value" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "green", "value": 1 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 18, "y": 8 }, "id": 6, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "center", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "8.0.0", "targets": [ { "expr": "up{job=\"codegraph-api\"}", "interval": "", "legendFormat": "{{instance}}", "refId": "A" } ], "title": "Service Availability", "type": "stat" }, { "datasource": "prometheus", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "vis": false }, "lineInterpolation": "linear", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "line" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 0.1 } ] }, "unit": "s" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 16 }, "id": 7, "options": { "legend": { "calcs": [ "lastNotNull", "max" ], "displayMode": "table", "placement": "right" }, "tooltip": { "mode": "multi" } }, "targets": [ { "expr": "histogram_quantile(0.95, rate(graph_query_duration_seconds_bucket{job=\"codegraph-api\"}[5m]))", "interval": "", "legendFormat": "Graph Query P95", "refId": "A" }, { "expr": "histogram_quantile(0.95, rate(vector_search_duration_seconds_bucket{job=\"codegraph-api\"}[5m]))", "interval": "", "legendFormat": "Vector Search P95", "refId": "B" }, { "expr": "histogram_quantile(0.95, rate(embedding_generation_duration_seconds_bucket{job=\"codegraph-api\"}[5m]))", "interval": "", "legendFormat": "Embedding Gen P95", "refId": "C" } ], "title": "Core Component Performance", "type": "timeseries" }, { "datasource": "prometheus", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "vis": false }, "lineInterpolation": "linear", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 16 }, "id": 8, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right" }, "tooltip": { "mode": "multi" } }, "targets": [ { "expr": "kube_deployment_status_replicas_available{deployment=\"codegraph-api\"}", "interval": "", "legendFormat": "Available Replicas", "refId": "A" }, { "expr": "kube_deployment_spec_replicas{deployment=\"codegraph-api\"}", "interval": "", "legendFormat": "Desired Replicas", "refId": "B" }, { "expr": "kube_deployment_status_replicas_unavailable{deployment=\"codegraph-api\"}", "interval": "", "legendFormat": "Unavailable Replicas", "refId": "C" } ], "title": "Kubernetes Deployment Status", "type": "timeseries" }, { "datasource": "prometheus", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "vis": false }, "lineInterpolation": "linear", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "binBps" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 24 }, "id": 9, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single" } }, "targets": [ { "expr": "rate(container_network_receive_bytes_total{pod=~\"codegraph-api-.*\"}[5m])", "interval": "", "legendFormat": "Network In - {{pod}}", "refId": "A" }, { "expr": "rate(container_network_transmit_bytes_total{pod=~\"codegraph-api-.*\"}[5m])", "interval": "", "legendFormat": "Network Out - {{pod}}", "refId": "B" } ], "title": "Network I/O", "type": "timeseries" }, { "datasource": "prometheus", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "vis": false }, "lineInterpolation": "linear", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 24 }, "id": 10, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single" } }, "targets": [ { "expr": "rocksdb_num_keys{job=\"codegraph-api\"}", "interval": "", "legendFormat": "RocksDB Keys - {{column_family}}", "refId": "A" }, { "expr": "codegraph_indexed_files_total{job=\"codegraph-api\"}", "interval": "", "legendFormat": "Indexed Files", "refId": "B" }, { "expr": "codegraph_graph_nodes_total{job=\"codegraph-api\"}", "interval": "", "legendFormat": "Graph Nodes", "refId": "C" } ], "title": "Data Growth Metrics", "type": "timeseries" } ], "refresh": "30s", "schemaVersion": 27, "style": "dark", "tags": [ "codegraph", "production", "release-management" ], "templating": { "list": [ { "allValue": null, "current": { "selected": false, "text": "All", "value": "$__all" }, "datasource": "prometheus", "definition": "label_values(up{job=\"codegraph-api\"}, instance)", "hide": 0, "includeAll": true, "label": "Instance", "multi": true, "name": "instance", "options": [], "query": { "query": "label_values(up{job=\"codegraph-api\"}, instance)", "refId": "StandardVariableQuery" }, "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "CodeGraph - Production Release Management Dashboard", "uid": "codegraph-production", "version": 1, "description": "Comprehensive monitoring dashboard for CodeGraph production releases with zero-downtime deployment tracking" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Jakedismo/codegraph-rust'

If you have feedback or need assistance with the MCP directory API, please join our Discord server