@kici-dev/engine 0.0.0 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/README.md +1 -6
- package/dist/audit/access-log-policy.d.ts +97 -0
- package/dist/audit/access-log-policy.js +195 -0
- package/dist/audit/activity.d.ts +156 -0
- package/dist/audit/activity.js +175 -0
- package/dist/audit/retention-policy.d.ts +157 -0
- package/dist/audit/retention-policy.js +364 -0
- package/dist/bundler/index.d.ts +3 -0
- package/dist/bundler/index.js +3 -0
- package/dist/bundler/rolldown-config.d.ts +41 -0
- package/dist/bundler/rolldown-config.js +40 -0
- package/dist/chunk-gOLHoazu.js +4 -0
- package/dist/env/environment-allowlist.d.ts +45 -0
- package/dist/env/environment-allowlist.js +69 -0
- package/dist/environment/index.d.ts +3 -0
- package/dist/environment/index.js +3 -0
- package/dist/environment/scope-resolver.d.ts +35 -0
- package/dist/environment/scope-resolver.js +77 -0
- package/dist/environment/types.d.ts +98 -0
- package/dist/environment/types.js +2 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.js +45 -0
- package/dist/labels.d.ts +106 -0
- package/dist/labels.js +162 -0
- package/dist/metrics/metric-catalog.generated.d.ts +400 -0
- package/dist/metrics/metric-catalog.generated.js +510 -0
- package/dist/protocol/dashboard-global-workflows.d.ts +9 -0
- package/dist/protocol/dashboard-global-workflows.js +3 -0
- package/dist/protocol/event-log-payload.d.ts +16 -0
- package/dist/protocol/event-log-payload.js +21 -0
- package/dist/protocol/messages/access-log.d.ts +545 -0
- package/dist/protocol/messages/access-log.js +175 -0
- package/dist/protocol/messages/actor.d.ts +100 -0
- package/dist/protocol/messages/actor.js +139 -0
- package/dist/protocol/messages/auth.d.ts +25 -0
- package/dist/protocol/messages/auth.js +36 -0
- package/dist/protocol/messages/browser.d.ts +369 -0
- package/dist/protocol/messages/browser.js +225 -0
- package/dist/protocol/messages/capabilities.d.ts +46 -0
- package/dist/protocol/messages/capabilities.js +42 -0
- package/dist/protocol/messages/common.d.ts +53 -0
- package/dist/protocol/messages/common.js +55 -0
- package/dist/protocol/messages/dashboard-global-workflows.d.ts +166 -0
- package/dist/protocol/messages/dashboard-global-workflows.js +80 -0
- package/dist/protocol/messages/dashboard.d.ts +4068 -0
- package/dist/protocol/messages/dashboard.js +1237 -0
- package/dist/protocol/messages/event-log.d.ts +49 -0
- package/dist/protocol/messages/event-log.js +45 -0
- package/dist/protocol/messages/execution-status.d.ts +164 -0
- package/dist/protocol/messages/execution-status.js +166 -0
- package/dist/protocol/messages/join.d.ts +18 -0
- package/dist/protocol/messages/join.js +28 -0
- package/dist/protocol/messages/log-pull.d.ts +27 -0
- package/dist/protocol/messages/log-pull.js +36 -0
- package/dist/protocol/messages/observe.d.ts +75 -0
- package/dist/protocol/messages/observe.js +70 -0
- package/dist/protocol/messages/orchestrator-agent.d.ts +606 -0
- package/dist/protocol/messages/orchestrator-agent.js +481 -0
- package/dist/protocol/messages/peer.d.ts +795 -0
- package/dist/protocol/messages/peer.js +372 -0
- package/dist/protocol/messages/platform-orchestrator.d.ts +1888 -0
- package/dist/protocol/messages/platform-orchestrator.js +379 -0
- package/dist/protocol/messages/run-events.d.ts +155 -0
- package/dist/protocol/messages/run-events.js +115 -0
- package/dist/protocol/messages/saas-orchestrator.d.ts +2179 -0
- package/dist/protocol/messages/source-registration.d.ts +103 -0
- package/dist/protocol/messages/source-registration.js +109 -0
- package/dist/protocol/messages/test-run.d.ts +59 -0
- package/dist/protocol/messages/test-run.js +52 -0
- package/dist/protocol/version.d.ts +12 -0
- package/dist/protocol/version.js +17 -0
- package/dist/provider/changed-files-fetcher.d.ts +24 -0
- package/dist/provider/changed-files-fetcher.js +2 -0
- package/dist/provider/check-run-conclusion.d.ts +15 -0
- package/dist/provider/check-run-conclusion.js +19 -0
- package/dist/provider/check-status-poster.d.ts +15 -0
- package/dist/provider/check-status-poster.js +2 -0
- package/dist/provider/clone-token-provider.d.ts +58 -0
- package/dist/provider/clone-token-provider.js +2 -0
- package/dist/provider/contributor-resolver.d.ts +22 -0
- package/dist/provider/contributor-resolver.js +2 -0
- package/dist/provider/index.d.ts +23 -0
- package/dist/provider/index.js +3 -0
- package/dist/provider/lock-file-fetcher.d.ts +24 -0
- package/dist/provider/lock-file-fetcher.js +2 -0
- package/dist/provider/repo-url-builder.d.ts +35 -0
- package/dist/provider/repo-url-builder.js +2 -0
- package/dist/provider/types.d.ts +9 -0
- package/dist/provider/types.js +2 -0
- package/dist/provider/webhook-normalizer.d.ts +163 -0
- package/dist/provider/webhook-normalizer.js +2 -0
- package/dist/registration/registerable-trigger-type.d.ts +52 -0
- package/dist/registration/registerable-trigger-type.js +56 -0
- package/dist/scaler/resource-types.d.ts +90 -0
- package/dist/scaler/resource-types.js +99 -0
- package/dist/scaler/scaler-backend-type.d.ts +16 -0
- package/dist/scaler/scaler-backend-type.js +20 -0
- package/dist/secrets/index.d.ts +7 -0
- package/dist/secrets/index.js +2 -0
- package/dist/secrets/types.d.ts +138 -0
- package/dist/secrets/types.js +2 -0
- package/dist/state-machine/index.d.ts +2 -0
- package/dist/state-machine/index.js +3 -0
- package/dist/state-machine/machine.d.ts +34 -0
- package/dist/state-machine/machine.js +103 -0
- package/dist/state-machine/types.d.ts +34 -0
- package/dist/state-machine/types.js +15 -0
- package/dist/trigger/decision-trace.d.ts +41 -0
- package/dist/trigger/decision-trace.js +30 -0
- package/dist/trigger/jsonpath-matcher.d.ts +27 -0
- package/dist/trigger/jsonpath-matcher.js +92 -0
- package/dist/trigger/matcher.d.ts +29 -0
- package/dist/trigger/matcher.js +704 -0
- package/dist/trigger/trigger-event-type.d.ts +14 -0
- package/dist/trigger/trigger-event-type.js +66 -0
- package/dist/trigger/types.d.ts +524 -0
- package/dist/trigger/types.js +48 -0
- package/dist/webhook/signature.d.ts +15 -0
- package/dist/webhook/signature.js +32 -0
- package/dist/ws/close-codes.d.ts +28 -0
- package/dist/ws/close-codes.js +33 -0
- package/dist/ws/rate-limiter.d.ts +86 -0
- package/dist/ws/rate-limiter.js +136 -0
- package/dist/ws/ws-like.d.ts +12 -0
- package/dist/ws/ws-like.js +2 -0
- package/package.json +54 -6
- package/sbom.spdx.json +202 -0
- package/index.js +0 -3
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
import "../chunk-gOLHoazu.js";
|
|
2
|
+
//#region src/metrics/metric-catalog.generated.ts
|
|
3
|
+
const MetricNames = {
|
|
4
|
+
KICI_AGENT_CLONE_DURATION_SECONDS: "kici_agent_clone_duration_seconds",
|
|
5
|
+
KICI_AGENT_CONNECTION_STATUS: "kici_agent_connection_status",
|
|
6
|
+
KICI_AGENT_JOBS_ACTIVE: "kici_agent_jobs_active",
|
|
7
|
+
KICI_AGENT_JOBS_TOTAL: "kici_agent_jobs_total",
|
|
8
|
+
KICI_AGENT_LOG_BACKPRESSURE_ACTIVE: "kici_agent_log_backpressure_active",
|
|
9
|
+
KICI_AGENT_LOG_BACKPRESSURE_EVENTS_TOTAL: "kici_agent_log_backpressure_events_total",
|
|
10
|
+
KICI_AGENT_LOG_BYTES_TOTAL: "kici_agent_log_bytes_total",
|
|
11
|
+
KICI_AGENT_LOG_LINES_DROPPED_TOTAL: "kici_agent_log_lines_dropped_total",
|
|
12
|
+
KICI_AGENT_STEP_DURATION_SECONDS: "kici_agent_step_duration_seconds",
|
|
13
|
+
KICI_AGENT_STEPS_TOTAL: "kici_agent_steps_total",
|
|
14
|
+
KICI_BUILD_JOBS_TOTAL: "kici_build_jobs_total",
|
|
15
|
+
KICI_CACHE_HITS_TOTAL: "kici_cache_hits_total",
|
|
16
|
+
KICI_CACHE_MISSES_TOTAL: "kici_cache_misses_total",
|
|
17
|
+
KICI_CROSS_SOURCE_ERRORS_TOTAL: "kici_cross_source_errors_total",
|
|
18
|
+
KICI_CROSS_SOURCE_FANOUT_SIZE: "kici_cross_source_fanout_size",
|
|
19
|
+
KICI_ORCH_AGENTS_ACTIVE: "kici_orch_agents_active",
|
|
20
|
+
KICI_ORCH_BUILD_DURATION_SECONDS: "kici_orch_build_duration_seconds",
|
|
21
|
+
KICI_ORCH_CONFIG_RELOAD_TOTAL: "kici_orch_config_reload_total",
|
|
22
|
+
KICI_ORCH_CONFIG_VERSION: "kici_orch_config_version",
|
|
23
|
+
KICI_ORCH_DEDUP_HITS_TOTAL: "kici_orch_dedup_hits_total",
|
|
24
|
+
KICI_ORCH_DEP_CACHE_HITS_TOTAL: "kici_orch_dep_cache_hits_total",
|
|
25
|
+
KICI_ORCH_DEP_CACHE_MISSES_TOTAL: "kici_orch_dep_cache_misses_total",
|
|
26
|
+
KICI_ORCH_DISPATCH_QUEUE_DEPTH: "kici_orch_dispatch_queue_depth",
|
|
27
|
+
KICI_ORCH_DISPATCH_QUEUE_DEPTH_BY_LABEL: "kici_orch_dispatch_queue_depth_by_label",
|
|
28
|
+
KICI_ORCH_EVENT_ATTEMPTS: "kici_orch_event_attempts",
|
|
29
|
+
KICI_ORCH_EVENT_DISPATCH_SUCCESS_TOTAL: "kici_orch_event_dispatch_success_total",
|
|
30
|
+
KICI_ORCH_EVENT_DLQ_DEPTH: "kici_orch_event_dlq_depth",
|
|
31
|
+
KICI_ORCH_EVENT_DLQ_TOTAL: "kici_orch_event_dlq_total",
|
|
32
|
+
KICI_ORCH_EVENT_LEASE_EXPIRATIONS_TOTAL: "kici_orch_event_lease_expirations_total",
|
|
33
|
+
KICI_ORCH_EVENT_RETRY_TOTAL: "kici_orch_event_retry_total",
|
|
34
|
+
KICI_ORCH_EXECUTION_DURATION_SECONDS: "kici_orch_execution_duration_seconds",
|
|
35
|
+
KICI_ORCH_EXECUTIONS_TOTAL: "kici_orch_executions_total",
|
|
36
|
+
KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: "kici_orch_github_check_run_total",
|
|
37
|
+
KICI_ORCH_INSTALL_SECRETS_CONTRIBUTOR_STRIPPED_TOTAL: "kici_orch_install_secrets_contributor_stripped_total",
|
|
38
|
+
KICI_ORCH_INSTALL_SECRETS_DECISIONS_TOTAL: "kici_orch_install_secrets_decisions_total",
|
|
39
|
+
KICI_ORCH_INSTALL_SECRETS_NPM_REGISTRY_USED_TOTAL: "kici_orch_install_secrets_npm_registry_used_total",
|
|
40
|
+
KICI_ORCH_INSTALL_SECRETS_TOKEN_RESOLUTION_DURATION_SECONDS: "kici_orch_install_secrets_token_resolution_duration_seconds",
|
|
41
|
+
KICI_ORCH_LOG_BYTES_STORED_TOTAL: "kici_orch_log_bytes_stored_total",
|
|
42
|
+
KICI_ORCH_LOG_CHUNKS_RECEIVED_TOTAL: "kici_orch_log_chunks_received_total",
|
|
43
|
+
KICI_ORCH_SCALER_CONFIG_RELOADS_TOTAL: "kici_orch_scaler_config_reloads_total",
|
|
44
|
+
KICI_ORCH_SCALER_CPUS_USED: "kici_orch_scaler_cpus_used",
|
|
45
|
+
KICI_ORCH_SCALER_MEMORY_BYTES_USED: "kici_orch_scaler_memory_bytes_used",
|
|
46
|
+
KICI_ORCH_SCALER_SPAWN_REFUSALS_TOTAL: "kici_orch_scaler_spawn_refusals_total",
|
|
47
|
+
KICI_ORCH_SOURCE_CACHE_HITS_TOTAL: "kici_orch_source_cache_hits_total",
|
|
48
|
+
KICI_ORCH_SOURCE_CACHE_MISSES_TOTAL: "kici_orch_source_cache_misses_total",
|
|
49
|
+
KICI_ORCH_STALE_DETECTION_DURATION_SECONDS: "kici_orch_stale_detection_duration_seconds",
|
|
50
|
+
KICI_ORCH_STALE_RUNS_CURRENT: "kici_orch_stale_runs_current",
|
|
51
|
+
KICI_ORCH_STALE_RUNS_DETECTED_TOTAL: "kici_orch_stale_runs_detected_total",
|
|
52
|
+
KICI_ORCH_STEPS_TOTAL: "kici_orch_steps_total",
|
|
53
|
+
KICI_ORCH_TRIGGER_MATCH_DURATION_SECONDS: "kici_orch_trigger_match_duration_seconds",
|
|
54
|
+
KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: "kici_orch_trust_match_refused_no_id_total",
|
|
55
|
+
KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: "kici_orch_webhooks_processed_total",
|
|
56
|
+
KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: "kici_orch_webhooks_received_total",
|
|
57
|
+
KICI_ORG_AGENT_MINUTES: "kici_org_agent_minutes",
|
|
58
|
+
KICI_ORG_CONNECTIONS: "kici_org_connections",
|
|
59
|
+
KICI_ORG_EXECUTIONS_COUNT: "kici_org_executions_count",
|
|
60
|
+
KICI_ORG_LOG_BYTES: "kici_org_log_bytes",
|
|
61
|
+
KICI_ORG_STATUS_EVENTS_TOTAL: "kici_org_status_events_total",
|
|
62
|
+
KICI_ORGS_TOTAL: "kici_orgs_total",
|
|
63
|
+
KICI_PLAN_CAP_EXCEEDED_TOTAL: "kici_plan_cap_exceeded_total",
|
|
64
|
+
KICI_PLAN_USAGE_RATIO: "kici_plan_usage_ratio",
|
|
65
|
+
KICI_PLATFORM_CROSS_TENANT_REJECTIONS_TOTAL: "kici_platform_cross_tenant_rejections_total",
|
|
66
|
+
KICI_PLATFORM_DASHBOARD_PROXY_DURATION_SECONDS: "kici_platform_dashboard_proxy_duration_seconds",
|
|
67
|
+
KICI_PLATFORM_DASHBOARD_PROXY_PENDING: "kici_platform_dashboard_proxy_pending",
|
|
68
|
+
KICI_PLATFORM_DASHBOARD_PROXY_REQUESTS_TOTAL: "kici_platform_dashboard_proxy_requests_total",
|
|
69
|
+
KICI_PLATFORM_EXECUTION_EVENTS_TOTAL: "kici_platform_execution_events_total",
|
|
70
|
+
KICI_PLATFORM_EXECUTION_STATUS_UPDATES_TOTAL: "kici_platform_execution_status_updates_total",
|
|
71
|
+
KICI_PLATFORM_IDENTITY_LINKS_MISSING_PROVIDER_USER_ID: "kici_platform_identity_links_missing_provider_user_id",
|
|
72
|
+
KICI_PLATFORM_JOB_CONSECUTIVE_FAILURES: "kici_platform_job_consecutive_failures",
|
|
73
|
+
KICI_PLATFORM_JOB_DURATION_SECONDS: "kici_platform_job_duration_seconds",
|
|
74
|
+
KICI_PLATFORM_JOB_LAST_FAILURE_TIMESTAMP_SECONDS: "kici_platform_job_last_failure_timestamp_seconds",
|
|
75
|
+
KICI_PLATFORM_JOB_LAST_SUCCESS_TIMESTAMP_SECONDS: "kici_platform_job_last_success_timestamp_seconds",
|
|
76
|
+
KICI_PLATFORM_JOB_RUNS_TOTAL: "kici_platform_job_runs_total",
|
|
77
|
+
KICI_PLATFORM_JOB_STATUS_FORWARDS_TOTAL: "kici_platform_job_status_forwards_total",
|
|
78
|
+
KICI_PLATFORM_LOG_CHUNKS_FORWARDED_TOTAL: "kici_platform_log_chunks_forwarded_total",
|
|
79
|
+
KICI_PLATFORM_LOG_LINES_FORWARDED_TOTAL: "kici_platform_log_lines_forwarded_total",
|
|
80
|
+
KICI_PLATFORM_METRICS_QUERY_RATE_LIMITED_TOTAL: "kici_platform_metrics_query_rate_limited_total",
|
|
81
|
+
KICI_PLATFORM_MIMIR_RELAY_ERRORS_TOTAL: "kici_platform_mimir_relay_errors_total",
|
|
82
|
+
KICI_PLATFORM_ORPHAN_CONNECTIONS_SWEPT_TOTAL: "kici_platform_orphan_connections_swept_total",
|
|
83
|
+
KICI_PLATFORM_STALE_ORCHESTRATORS_TOTAL: "kici_platform_stale_orchestrators_total",
|
|
84
|
+
KICI_PLATFORM_STALE_RUNS_FAILED_TOTAL: "kici_platform_stale_runs_failed_total",
|
|
85
|
+
KICI_PLATFORM_STEP_STATUS_FORWARDS_TOTAL: "kici_platform_step_status_forwards_total",
|
|
86
|
+
KICI_UNIVERSAL_GIT_REGISTRATION_ERRORS_TOTAL: "kici_universal_git_registration_errors_total",
|
|
87
|
+
KICI_VALKEY_CONNECTION_STATUS: "kici_valkey_connection_status",
|
|
88
|
+
KICI_VALKEY_PUBLISH_TOTAL: "kici_valkey_publish_total",
|
|
89
|
+
KICI_VALKEY_RELAY_LATENCY_SECONDS: "kici_valkey_relay_latency_seconds",
|
|
90
|
+
KICI_VALKEY_SUBSCRIBE_RECEIVE_TOTAL: "kici_valkey_subscribe_receive_total",
|
|
91
|
+
KICI_WEBHOOK_PROCESSING_SECONDS: "kici_webhook_processing_seconds",
|
|
92
|
+
KICI_WEBHOOK_SIGNATURE_FAILURES_TOTAL: "kici_webhook_signature_failures_total",
|
|
93
|
+
KICI_WEBHOOKS_RECEIVED_TOTAL: "kici_webhooks_received_total",
|
|
94
|
+
KICI_WS_CONNECTIONS_ACTIVE: "kici_ws_connections_active",
|
|
95
|
+
KICI_WS_CONNECTIONS_TOTAL: "kici_ws_connections_total",
|
|
96
|
+
KICI_WS_HEARTBEAT_AGE_SECONDS: "kici_ws_heartbeat_age_seconds",
|
|
97
|
+
KICI_WS_MESSAGES_RECEIVED_TOTAL: "kici_ws_messages_received_total",
|
|
98
|
+
KICI_WS_MESSAGES_SENT_TOTAL: "kici_ws_messages_sent_total",
|
|
99
|
+
KICI_WS_RELAY_ATTEMPTS_TOTAL: "kici_ws_relay_attempts_total",
|
|
100
|
+
KICI_WS_RELAY_DURATION_SECONDS: "kici_ws_relay_duration_seconds"
|
|
101
|
+
};
|
|
102
|
+
const MetricLabels = {
|
|
103
|
+
KICI_AGENT_CLONE_DURATION_SECONDS: ["scaler"],
|
|
104
|
+
KICI_AGENT_CONNECTION_STATUS: ["scaler"],
|
|
105
|
+
KICI_AGENT_JOBS_ACTIVE: ["scaler"],
|
|
106
|
+
KICI_AGENT_JOBS_TOTAL: ["status", "scaler"],
|
|
107
|
+
KICI_AGENT_LOG_BACKPRESSURE_ACTIVE: ["mode", "scaler"],
|
|
108
|
+
KICI_AGENT_LOG_BACKPRESSURE_EVENTS_TOTAL: ["mode", "scaler"],
|
|
109
|
+
KICI_AGENT_LOG_BYTES_TOTAL: ["scaler"],
|
|
110
|
+
KICI_AGENT_LOG_LINES_DROPPED_TOTAL: ["scaler"],
|
|
111
|
+
KICI_AGENT_STEP_DURATION_SECONDS: ["scaler"],
|
|
112
|
+
KICI_AGENT_STEPS_TOTAL: ["status", "scaler"],
|
|
113
|
+
KICI_BUILD_JOBS_TOTAL: [],
|
|
114
|
+
KICI_CACHE_HITS_TOTAL: ["cache_type"],
|
|
115
|
+
KICI_CACHE_MISSES_TOTAL: ["cache_type"],
|
|
116
|
+
KICI_CROSS_SOURCE_ERRORS_TOTAL: ["reason"],
|
|
117
|
+
KICI_CROSS_SOURCE_FANOUT_SIZE: [],
|
|
118
|
+
KICI_ORCH_AGENTS_ACTIVE: [],
|
|
119
|
+
KICI_ORCH_BUILD_DURATION_SECONDS: [],
|
|
120
|
+
KICI_ORCH_CONFIG_RELOAD_TOTAL: ["result", "source"],
|
|
121
|
+
KICI_ORCH_CONFIG_VERSION: [],
|
|
122
|
+
KICI_ORCH_DEDUP_HITS_TOTAL: [],
|
|
123
|
+
KICI_ORCH_DEP_CACHE_HITS_TOTAL: [],
|
|
124
|
+
KICI_ORCH_DEP_CACHE_MISSES_TOTAL: [],
|
|
125
|
+
KICI_ORCH_DISPATCH_QUEUE_DEPTH: ["status"],
|
|
126
|
+
KICI_ORCH_DISPATCH_QUEUE_DEPTH_BY_LABEL: ["status", "label"],
|
|
127
|
+
KICI_ORCH_EVENT_ATTEMPTS: [],
|
|
128
|
+
KICI_ORCH_EVENT_DISPATCH_SUCCESS_TOTAL: [],
|
|
129
|
+
KICI_ORCH_EVENT_DLQ_DEPTH: [],
|
|
130
|
+
KICI_ORCH_EVENT_DLQ_TOTAL: [],
|
|
131
|
+
KICI_ORCH_EVENT_LEASE_EXPIRATIONS_TOTAL: [],
|
|
132
|
+
KICI_ORCH_EVENT_RETRY_TOTAL: [],
|
|
133
|
+
KICI_ORCH_EXECUTION_DURATION_SECONDS: [],
|
|
134
|
+
KICI_ORCH_EXECUTIONS_TOTAL: ["status"],
|
|
135
|
+
KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: ["operation"],
|
|
136
|
+
KICI_ORCH_INSTALL_SECRETS_CONTRIBUTOR_STRIPPED_TOTAL: ["trust_tier"],
|
|
137
|
+
KICI_ORCH_INSTALL_SECRETS_DECISIONS_TOTAL: ["decision", "reason"],
|
|
138
|
+
KICI_ORCH_INSTALL_SECRETS_NPM_REGISTRY_USED_TOTAL: [
|
|
139
|
+
"channel",
|
|
140
|
+
"provider",
|
|
141
|
+
"scope"
|
|
142
|
+
],
|
|
143
|
+
KICI_ORCH_INSTALL_SECRETS_TOKEN_RESOLUTION_DURATION_SECONDS: ["environment"],
|
|
144
|
+
KICI_ORCH_LOG_BYTES_STORED_TOTAL: [],
|
|
145
|
+
KICI_ORCH_LOG_CHUNKS_RECEIVED_TOTAL: [],
|
|
146
|
+
KICI_ORCH_SCALER_CONFIG_RELOADS_TOTAL: ["result"],
|
|
147
|
+
KICI_ORCH_SCALER_CPUS_USED: [],
|
|
148
|
+
KICI_ORCH_SCALER_MEMORY_BYTES_USED: [],
|
|
149
|
+
KICI_ORCH_SCALER_SPAWN_REFUSALS_TOTAL: [],
|
|
150
|
+
KICI_ORCH_SOURCE_CACHE_HITS_TOTAL: [],
|
|
151
|
+
KICI_ORCH_SOURCE_CACHE_MISSES_TOTAL: [],
|
|
152
|
+
KICI_ORCH_STALE_DETECTION_DURATION_SECONDS: [],
|
|
153
|
+
KICI_ORCH_STALE_RUNS_CURRENT: [],
|
|
154
|
+
KICI_ORCH_STALE_RUNS_DETECTED_TOTAL: [],
|
|
155
|
+
KICI_ORCH_STEPS_TOTAL: ["status"],
|
|
156
|
+
KICI_ORCH_TRIGGER_MATCH_DURATION_SECONDS: [],
|
|
157
|
+
KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: ["reason"],
|
|
158
|
+
KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: ["result"],
|
|
159
|
+
KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: ["source", "event"],
|
|
160
|
+
KICI_ORG_AGENT_MINUTES: ["org_id", "status"],
|
|
161
|
+
KICI_ORG_CONNECTIONS: ["org_id"],
|
|
162
|
+
KICI_ORG_EXECUTIONS_COUNT: ["org_id", "status"],
|
|
163
|
+
KICI_ORG_LOG_BYTES: ["org_id", "status"],
|
|
164
|
+
KICI_ORG_STATUS_EVENTS_TOTAL: ["org_id", "status"],
|
|
165
|
+
KICI_ORGS_TOTAL: ["plan_type"],
|
|
166
|
+
KICI_PLAN_CAP_EXCEEDED_TOTAL: ["org_id", "dimension"],
|
|
167
|
+
KICI_PLAN_USAGE_RATIO: ["org_id", "dimension"],
|
|
168
|
+
KICI_PLATFORM_CROSS_TENANT_REJECTIONS_TOTAL: [],
|
|
169
|
+
KICI_PLATFORM_DASHBOARD_PROXY_DURATION_SECONDS: ["outcome"],
|
|
170
|
+
KICI_PLATFORM_DASHBOARD_PROXY_PENDING: [],
|
|
171
|
+
KICI_PLATFORM_DASHBOARD_PROXY_REQUESTS_TOTAL: ["outcome"],
|
|
172
|
+
KICI_PLATFORM_EXECUTION_EVENTS_TOTAL: ["event"],
|
|
173
|
+
KICI_PLATFORM_EXECUTION_STATUS_UPDATES_TOTAL: ["status"],
|
|
174
|
+
KICI_PLATFORM_IDENTITY_LINKS_MISSING_PROVIDER_USER_ID: [],
|
|
175
|
+
KICI_PLATFORM_JOB_CONSECUTIVE_FAILURES: ["job"],
|
|
176
|
+
KICI_PLATFORM_JOB_DURATION_SECONDS: ["job"],
|
|
177
|
+
KICI_PLATFORM_JOB_LAST_FAILURE_TIMESTAMP_SECONDS: ["job"],
|
|
178
|
+
KICI_PLATFORM_JOB_LAST_SUCCESS_TIMESTAMP_SECONDS: ["job"],
|
|
179
|
+
KICI_PLATFORM_JOB_RUNS_TOTAL: ["job", "result"],
|
|
180
|
+
KICI_PLATFORM_JOB_STATUS_FORWARDS_TOTAL: ["status"],
|
|
181
|
+
KICI_PLATFORM_LOG_CHUNKS_FORWARDED_TOTAL: [],
|
|
182
|
+
KICI_PLATFORM_LOG_LINES_FORWARDED_TOTAL: [],
|
|
183
|
+
KICI_PLATFORM_METRICS_QUERY_RATE_LIMITED_TOTAL: [],
|
|
184
|
+
KICI_PLATFORM_MIMIR_RELAY_ERRORS_TOTAL: ["reason"],
|
|
185
|
+
KICI_PLATFORM_ORPHAN_CONNECTIONS_SWEPT_TOTAL: [],
|
|
186
|
+
KICI_PLATFORM_STALE_ORCHESTRATORS_TOTAL: [],
|
|
187
|
+
KICI_PLATFORM_STALE_RUNS_FAILED_TOTAL: [],
|
|
188
|
+
KICI_PLATFORM_STEP_STATUS_FORWARDS_TOTAL: ["state"],
|
|
189
|
+
KICI_UNIVERSAL_GIT_REGISTRATION_ERRORS_TOTAL: ["reason"],
|
|
190
|
+
KICI_VALKEY_CONNECTION_STATUS: ["role"],
|
|
191
|
+
KICI_VALKEY_PUBLISH_TOTAL: ["channel"],
|
|
192
|
+
KICI_VALKEY_RELAY_LATENCY_SECONDS: ["status"],
|
|
193
|
+
KICI_VALKEY_SUBSCRIBE_RECEIVE_TOTAL: ["channel"],
|
|
194
|
+
KICI_WEBHOOK_PROCESSING_SECONDS: ["event"],
|
|
195
|
+
KICI_WEBHOOK_SIGNATURE_FAILURES_TOTAL: ["source", "org_id"],
|
|
196
|
+
KICI_WEBHOOKS_RECEIVED_TOTAL: [
|
|
197
|
+
"event",
|
|
198
|
+
"status",
|
|
199
|
+
"org_id"
|
|
200
|
+
],
|
|
201
|
+
KICI_WS_CONNECTIONS_ACTIVE: ["routing_key"],
|
|
202
|
+
KICI_WS_CONNECTIONS_TOTAL: ["status"],
|
|
203
|
+
KICI_WS_HEARTBEAT_AGE_SECONDS: ["routing_key"],
|
|
204
|
+
KICI_WS_MESSAGES_RECEIVED_TOTAL: ["type"],
|
|
205
|
+
KICI_WS_MESSAGES_SENT_TOTAL: ["type"],
|
|
206
|
+
KICI_WS_RELAY_ATTEMPTS_TOTAL: ["status"],
|
|
207
|
+
KICI_WS_RELAY_DURATION_SECONDS: ["status"]
|
|
208
|
+
};
|
|
209
|
+
const MetricKind = {
|
|
210
|
+
KICI_AGENT_CLONE_DURATION_SECONDS: "histogram",
|
|
211
|
+
KICI_AGENT_CONNECTION_STATUS: "upDownCounter",
|
|
212
|
+
KICI_AGENT_JOBS_ACTIVE: "upDownCounter",
|
|
213
|
+
KICI_AGENT_JOBS_TOTAL: "counter",
|
|
214
|
+
KICI_AGENT_LOG_BACKPRESSURE_ACTIVE: "upDownCounter",
|
|
215
|
+
KICI_AGENT_LOG_BACKPRESSURE_EVENTS_TOTAL: "counter",
|
|
216
|
+
KICI_AGENT_LOG_BYTES_TOTAL: "counter",
|
|
217
|
+
KICI_AGENT_LOG_LINES_DROPPED_TOTAL: "counter",
|
|
218
|
+
KICI_AGENT_STEP_DURATION_SECONDS: "histogram",
|
|
219
|
+
KICI_AGENT_STEPS_TOTAL: "counter",
|
|
220
|
+
KICI_BUILD_JOBS_TOTAL: "counter",
|
|
221
|
+
KICI_CACHE_HITS_TOTAL: "counter",
|
|
222
|
+
KICI_CACHE_MISSES_TOTAL: "counter",
|
|
223
|
+
KICI_CROSS_SOURCE_ERRORS_TOTAL: "counter",
|
|
224
|
+
KICI_CROSS_SOURCE_FANOUT_SIZE: "histogram",
|
|
225
|
+
KICI_ORCH_AGENTS_ACTIVE: "observableGauge",
|
|
226
|
+
KICI_ORCH_BUILD_DURATION_SECONDS: "histogram",
|
|
227
|
+
KICI_ORCH_CONFIG_RELOAD_TOTAL: "counter",
|
|
228
|
+
KICI_ORCH_CONFIG_VERSION: "observableGauge",
|
|
229
|
+
KICI_ORCH_DEDUP_HITS_TOTAL: "counter",
|
|
230
|
+
KICI_ORCH_DEP_CACHE_HITS_TOTAL: "counter",
|
|
231
|
+
KICI_ORCH_DEP_CACHE_MISSES_TOTAL: "counter",
|
|
232
|
+
KICI_ORCH_DISPATCH_QUEUE_DEPTH: "observableGauge",
|
|
233
|
+
KICI_ORCH_DISPATCH_QUEUE_DEPTH_BY_LABEL: "observableGauge",
|
|
234
|
+
KICI_ORCH_EVENT_ATTEMPTS: "histogram",
|
|
235
|
+
KICI_ORCH_EVENT_DISPATCH_SUCCESS_TOTAL: "counter",
|
|
236
|
+
KICI_ORCH_EVENT_DLQ_DEPTH: "observableGauge",
|
|
237
|
+
KICI_ORCH_EVENT_DLQ_TOTAL: "counter",
|
|
238
|
+
KICI_ORCH_EVENT_LEASE_EXPIRATIONS_TOTAL: "counter",
|
|
239
|
+
KICI_ORCH_EVENT_RETRY_TOTAL: "counter",
|
|
240
|
+
KICI_ORCH_EXECUTION_DURATION_SECONDS: "histogram",
|
|
241
|
+
KICI_ORCH_EXECUTIONS_TOTAL: "counter",
|
|
242
|
+
KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: "counter",
|
|
243
|
+
KICI_ORCH_INSTALL_SECRETS_CONTRIBUTOR_STRIPPED_TOTAL: "counter",
|
|
244
|
+
KICI_ORCH_INSTALL_SECRETS_DECISIONS_TOTAL: "counter",
|
|
245
|
+
KICI_ORCH_INSTALL_SECRETS_NPM_REGISTRY_USED_TOTAL: "counter",
|
|
246
|
+
KICI_ORCH_INSTALL_SECRETS_TOKEN_RESOLUTION_DURATION_SECONDS: "histogram",
|
|
247
|
+
KICI_ORCH_LOG_BYTES_STORED_TOTAL: "counter",
|
|
248
|
+
KICI_ORCH_LOG_CHUNKS_RECEIVED_TOTAL: "counter",
|
|
249
|
+
KICI_ORCH_SCALER_CONFIG_RELOADS_TOTAL: "counter",
|
|
250
|
+
KICI_ORCH_SCALER_CPUS_USED: "observableGauge",
|
|
251
|
+
KICI_ORCH_SCALER_MEMORY_BYTES_USED: "observableGauge",
|
|
252
|
+
KICI_ORCH_SCALER_SPAWN_REFUSALS_TOTAL: "observableGauge",
|
|
253
|
+
KICI_ORCH_SOURCE_CACHE_HITS_TOTAL: "counter",
|
|
254
|
+
KICI_ORCH_SOURCE_CACHE_MISSES_TOTAL: "counter",
|
|
255
|
+
KICI_ORCH_STALE_DETECTION_DURATION_SECONDS: "histogram",
|
|
256
|
+
KICI_ORCH_STALE_RUNS_CURRENT: "observableGauge",
|
|
257
|
+
KICI_ORCH_STALE_RUNS_DETECTED_TOTAL: "counter",
|
|
258
|
+
KICI_ORCH_STEPS_TOTAL: "counter",
|
|
259
|
+
KICI_ORCH_TRIGGER_MATCH_DURATION_SECONDS: "histogram",
|
|
260
|
+
KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: "counter",
|
|
261
|
+
KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: "counter",
|
|
262
|
+
KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: "counter",
|
|
263
|
+
KICI_ORG_AGENT_MINUTES: "observableGauge",
|
|
264
|
+
KICI_ORG_CONNECTIONS: "observableGauge",
|
|
265
|
+
KICI_ORG_EXECUTIONS_COUNT: "observableGauge",
|
|
266
|
+
KICI_ORG_LOG_BYTES: "observableGauge",
|
|
267
|
+
KICI_ORG_STATUS_EVENTS_TOTAL: "counter",
|
|
268
|
+
KICI_ORGS_TOTAL: "observableGauge",
|
|
269
|
+
KICI_PLAN_CAP_EXCEEDED_TOTAL: "counter",
|
|
270
|
+
KICI_PLAN_USAGE_RATIO: "observableGauge",
|
|
271
|
+
KICI_PLATFORM_CROSS_TENANT_REJECTIONS_TOTAL: "counter",
|
|
272
|
+
KICI_PLATFORM_DASHBOARD_PROXY_DURATION_SECONDS: "histogram",
|
|
273
|
+
KICI_PLATFORM_DASHBOARD_PROXY_PENDING: "observableGauge",
|
|
274
|
+
KICI_PLATFORM_DASHBOARD_PROXY_REQUESTS_TOTAL: "counter",
|
|
275
|
+
KICI_PLATFORM_EXECUTION_EVENTS_TOTAL: "counter",
|
|
276
|
+
KICI_PLATFORM_EXECUTION_STATUS_UPDATES_TOTAL: "counter",
|
|
277
|
+
KICI_PLATFORM_IDENTITY_LINKS_MISSING_PROVIDER_USER_ID: "observableGauge",
|
|
278
|
+
KICI_PLATFORM_JOB_CONSECUTIVE_FAILURES: "observableGauge",
|
|
279
|
+
KICI_PLATFORM_JOB_DURATION_SECONDS: "histogram",
|
|
280
|
+
KICI_PLATFORM_JOB_LAST_FAILURE_TIMESTAMP_SECONDS: "observableGauge",
|
|
281
|
+
KICI_PLATFORM_JOB_LAST_SUCCESS_TIMESTAMP_SECONDS: "observableGauge",
|
|
282
|
+
KICI_PLATFORM_JOB_RUNS_TOTAL: "counter",
|
|
283
|
+
KICI_PLATFORM_JOB_STATUS_FORWARDS_TOTAL: "counter",
|
|
284
|
+
KICI_PLATFORM_LOG_CHUNKS_FORWARDED_TOTAL: "counter",
|
|
285
|
+
KICI_PLATFORM_LOG_LINES_FORWARDED_TOTAL: "counter",
|
|
286
|
+
KICI_PLATFORM_METRICS_QUERY_RATE_LIMITED_TOTAL: "counter",
|
|
287
|
+
KICI_PLATFORM_MIMIR_RELAY_ERRORS_TOTAL: "counter",
|
|
288
|
+
KICI_PLATFORM_ORPHAN_CONNECTIONS_SWEPT_TOTAL: "counter",
|
|
289
|
+
KICI_PLATFORM_STALE_ORCHESTRATORS_TOTAL: "counter",
|
|
290
|
+
KICI_PLATFORM_STALE_RUNS_FAILED_TOTAL: "counter",
|
|
291
|
+
KICI_PLATFORM_STEP_STATUS_FORWARDS_TOTAL: "counter",
|
|
292
|
+
KICI_UNIVERSAL_GIT_REGISTRATION_ERRORS_TOTAL: "counter",
|
|
293
|
+
KICI_VALKEY_CONNECTION_STATUS: "observableGauge",
|
|
294
|
+
KICI_VALKEY_PUBLISH_TOTAL: "counter",
|
|
295
|
+
KICI_VALKEY_RELAY_LATENCY_SECONDS: "histogram",
|
|
296
|
+
KICI_VALKEY_SUBSCRIBE_RECEIVE_TOTAL: "counter",
|
|
297
|
+
KICI_WEBHOOK_PROCESSING_SECONDS: "histogram",
|
|
298
|
+
KICI_WEBHOOK_SIGNATURE_FAILURES_TOTAL: "counter",
|
|
299
|
+
KICI_WEBHOOKS_RECEIVED_TOTAL: "counter",
|
|
300
|
+
KICI_WS_CONNECTIONS_ACTIVE: "upDownCounter",
|
|
301
|
+
KICI_WS_CONNECTIONS_TOTAL: "counter",
|
|
302
|
+
KICI_WS_HEARTBEAT_AGE_SECONDS: "observableGauge",
|
|
303
|
+
KICI_WS_MESSAGES_RECEIVED_TOTAL: "counter",
|
|
304
|
+
KICI_WS_MESSAGES_SENT_TOTAL: "counter",
|
|
305
|
+
KICI_WS_RELAY_ATTEMPTS_TOTAL: "counter",
|
|
306
|
+
KICI_WS_RELAY_DURATION_SECONDS: "histogram"
|
|
307
|
+
};
|
|
308
|
+
const MetricDescription = {
|
|
309
|
+
KICI_AGENT_CLONE_DURATION_SECONDS: "Git clone duration in seconds",
|
|
310
|
+
KICI_AGENT_CONNECTION_STATUS: "Orchestrator WebSocket connection status (0=disconnected, 1=connected)",
|
|
311
|
+
KICI_AGENT_JOBS_ACTIVE: "Number of currently running jobs",
|
|
312
|
+
KICI_AGENT_JOBS_TOTAL: "Total number of completed jobs",
|
|
313
|
+
KICI_AGENT_LOG_BACKPRESSURE_ACTIVE: "Current log-streamer backpressure state (0=normal, 1=active)",
|
|
314
|
+
KICI_AGENT_LOG_BACKPRESSURE_EVENTS_TOTAL: "Total log-streamer backpressure rising-edge events",
|
|
315
|
+
KICI_AGENT_LOG_BYTES_TOTAL: "Total log bytes streamed",
|
|
316
|
+
KICI_AGENT_LOG_LINES_DROPPED_TOTAL: "Total log lines dropped due to backpressure",
|
|
317
|
+
KICI_AGENT_STEP_DURATION_SECONDS: "Step execution duration in seconds",
|
|
318
|
+
KICI_AGENT_STEPS_TOTAL: "Total number of completed steps",
|
|
319
|
+
KICI_BUILD_JOBS_TOTAL: "Total build jobs dispatched",
|
|
320
|
+
KICI_CACHE_HITS_TOTAL: "Total cache hits by type",
|
|
321
|
+
KICI_CACHE_MISSES_TOTAL: "Total cache misses by type",
|
|
322
|
+
KICI_CROSS_SOURCE_ERRORS_TOTAL: "Errors encountered during cross-source webhook dispatch",
|
|
323
|
+
KICI_CROSS_SOURCE_FANOUT_SIZE: "Number of webhook-trigger registrations matched when an inbound generic webhook fans out across sources in the same org",
|
|
324
|
+
KICI_ORCH_AGENTS_ACTIVE: "Current number of active agents connected",
|
|
325
|
+
KICI_ORCH_BUILD_DURATION_SECONDS: "Duration of build agent operations in seconds",
|
|
326
|
+
KICI_ORCH_CONFIG_RELOAD_TOTAL: "Total number of config reload operations",
|
|
327
|
+
KICI_ORCH_CONFIG_VERSION: "Current shared config version number",
|
|
328
|
+
KICI_ORCH_DEDUP_HITS_TOTAL: "Total number of deduplication cache hits",
|
|
329
|
+
KICI_ORCH_DEP_CACHE_HITS_TOTAL: "Total number of dep cache hits",
|
|
330
|
+
KICI_ORCH_DEP_CACHE_MISSES_TOTAL: "Total number of dep cache misses",
|
|
331
|
+
KICI_ORCH_DISPATCH_QUEUE_DEPTH: "Current dispatch_queue depth per status (pending, dispatched)",
|
|
332
|
+
KICI_ORCH_DISPATCH_QUEUE_DEPTH_BY_LABEL: "Current pending dispatch_queue depth per runs_on label (multi-label jobs fan out)",
|
|
333
|
+
KICI_ORCH_EVENT_ATTEMPTS: "Distribution of dispatch attempts at terminal outcome (success or DLQ)",
|
|
334
|
+
KICI_ORCH_EVENT_DISPATCH_SUCCESS_TOTAL: "Internal events delivered to all matching workflows successfully (after the lease commits processed=true)",
|
|
335
|
+
KICI_ORCH_EVENT_DLQ_DEPTH: "Current count of events sitting in the DLQ awaiting operator triage",
|
|
336
|
+
KICI_ORCH_EVENT_DLQ_TOTAL: "Internal events moved to the DLQ after exhausting retries",
|
|
337
|
+
KICI_ORCH_EVENT_LEASE_EXPIRATIONS_TOTAL: "Dispatch leases that timed out before the holding node finalised them (signals node crash mid-dispatch)",
|
|
338
|
+
KICI_ORCH_EVENT_RETRY_TOTAL: "Internal-event dispatch failures that triggered a retry (lease released, next_retry_at scheduled)",
|
|
339
|
+
KICI_ORCH_EXECUTION_DURATION_SECONDS: "Duration of execution runs in seconds",
|
|
340
|
+
KICI_ORCH_EXECUTIONS_TOTAL: "Total number of execution runs",
|
|
341
|
+
KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: "Total number of GitHub check run API calls",
|
|
342
|
+
KICI_ORCH_INSTALL_SECRETS_CONTRIBUTOR_STRIPPED_TOTAL: "Dispatches where registry tokens were stripped because the contributor tier was not `trusted`",
|
|
343
|
+
KICI_ORCH_INSTALL_SECRETS_DECISIONS_TOTAL: "Total install-secrets resolution decisions (pass / reject + reason)",
|
|
344
|
+
KICI_ORCH_INSTALL_SECRETS_NPM_REGISTRY_USED_TOTAL: "Total registry / installEnv entries successfully resolved per channel / provider / scope",
|
|
345
|
+
KICI_ORCH_INSTALL_SECRETS_TOKEN_RESOLUTION_DURATION_SECONDS: "Duration of per-environment secret resolution during install-secrets evaluation",
|
|
346
|
+
KICI_ORCH_LOG_BYTES_STORED_TOTAL: "Total bytes of log data written to storage",
|
|
347
|
+
KICI_ORCH_LOG_CHUNKS_RECEIVED_TOTAL: "Total number of log chunks received from agents",
|
|
348
|
+
KICI_ORCH_SCALER_CONFIG_RELOADS_TOTAL: "Total number of scaler config reload operations",
|
|
349
|
+
KICI_ORCH_SCALER_CPUS_USED: "Current CPU reservations summed by scaler / pool. scaler=\"__global__\" is the orchestrator-wide total; machinePool=\"<name>\" rows reflect the on-disk ledger.",
|
|
350
|
+
KICI_ORCH_SCALER_MEMORY_BYTES_USED: "Current memory reservations (bytes) summed by scaler / pool. scaler=\"__global__\" is the orchestrator-wide total; machinePool=\"<name>\" rows reflect the on-disk ledger.",
|
|
351
|
+
KICI_ORCH_SCALER_SPAWN_REFUSALS_TOTAL: "Cumulative count of scaler spawn requests refused due to resource caps (maxAgents, resourceCap, globalResourceCap, machinePool).",
|
|
352
|
+
KICI_ORCH_SOURCE_CACHE_HITS_TOTAL: "Total number of source tarball cache hits",
|
|
353
|
+
KICI_ORCH_SOURCE_CACHE_MISSES_TOTAL: "Total number of source tarball cache misses",
|
|
354
|
+
KICI_ORCH_STALE_DETECTION_DURATION_SECONDS: "Time between job becoming stale and detection (seconds)",
|
|
355
|
+
KICI_ORCH_STALE_RUNS_CURRENT: "Current number of stale runs detected in last scan",
|
|
356
|
+
KICI_ORCH_STALE_RUNS_DETECTED_TOTAL: "Total number of stale runs detected and marked as failed",
|
|
357
|
+
KICI_ORCH_STEPS_TOTAL: "Total number of steps executed",
|
|
358
|
+
KICI_ORCH_TRIGGER_MATCH_DURATION_SECONDS: "Duration of trigger matching operations in seconds",
|
|
359
|
+
KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: "Trust-resolution attempts refused because the provider numeric id was missing or did not match",
|
|
360
|
+
KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: "Total number of webhooks processed",
|
|
361
|
+
KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: "Total number of webhooks received",
|
|
362
|
+
KICI_ORG_AGENT_MINUTES: "Per-org total agent runtime in minutes, by terminal status (DB-derived, operator-side capacity-planning aggregate)",
|
|
363
|
+
KICI_ORG_CONNECTIONS: "Active orchestrator connections per org",
|
|
364
|
+
KICI_ORG_EXECUTIONS_COUNT: "Per-org count of execution_runs in each terminal status (DB-derived, operator-side capacity-planning aggregate)",
|
|
365
|
+
KICI_ORG_LOG_BYTES: "Per-org total raw log bytes streamed by agents, by terminal status (DB-derived, operator-side capacity-planning aggregate)",
|
|
366
|
+
KICI_ORG_STATUS_EVENTS_TOTAL: "Total execution.status WS messages received per org/status (observability)",
|
|
367
|
+
KICI_ORGS_TOTAL: "Total organizations by plan type",
|
|
368
|
+
KICI_PLAN_CAP_EXCEEDED_TOTAL: "Total times an org hit a plan cap (per dimension)",
|
|
369
|
+
KICI_PLAN_USAGE_RATIO: "Per-org per-dimension usage ratio (current / cap)",
|
|
370
|
+
KICI_PLATFORM_CROSS_TENANT_REJECTIONS_TOTAL: "Total cross-tenant WS messages rejected by the Platform (security invariant). Labels: reason.",
|
|
371
|
+
KICI_PLATFORM_DASHBOARD_PROXY_DURATION_SECONDS: "Dashboard proxy request round-trip duration in seconds",
|
|
372
|
+
KICI_PLATFORM_DASHBOARD_PROXY_PENDING: "In-flight dashboard proxy requests (Platform → orchestrator)",
|
|
373
|
+
KICI_PLATFORM_DASHBOARD_PROXY_REQUESTS_TOTAL: "Total dashboard proxy requests by terminal outcome",
|
|
374
|
+
KICI_PLATFORM_EXECUTION_EVENTS_TOTAL: "Total execution events received from orchestrators",
|
|
375
|
+
KICI_PLATFORM_EXECUTION_STATUS_UPDATES_TOTAL: "Total execution status updates received",
|
|
376
|
+
KICI_PLATFORM_IDENTITY_LINKS_MISSING_PROVIDER_USER_ID: "identity_links rows where provider_user_id is still NULL after reconcile",
|
|
377
|
+
KICI_PLATFORM_JOB_CONSECUTIVE_FAILURES: "Consecutive failure count per scheduled job",
|
|
378
|
+
KICI_PLATFORM_JOB_DURATION_SECONDS: "Scheduled job duration in seconds",
|
|
379
|
+
KICI_PLATFORM_JOB_LAST_FAILURE_TIMESTAMP_SECONDS: "Unix timestamp of last failed scheduled job run",
|
|
380
|
+
KICI_PLATFORM_JOB_LAST_SUCCESS_TIMESTAMP_SECONDS: "Unix timestamp of last successful scheduled job run",
|
|
381
|
+
KICI_PLATFORM_JOB_RUNS_TOTAL: "Total scheduled job runs by name and result",
|
|
382
|
+
KICI_PLATFORM_JOB_STATUS_FORWARDS_TOTAL: "Total job status forwards received from orchestrators",
|
|
383
|
+
KICI_PLATFORM_LOG_CHUNKS_FORWARDED_TOTAL: "Total log chunks forwarded from orchestrators",
|
|
384
|
+
KICI_PLATFORM_LOG_LINES_FORWARDED_TOTAL: "Total log lines forwarded from orchestrators",
|
|
385
|
+
KICI_PLATFORM_METRICS_QUERY_RATE_LIMITED_TOTAL: "Total dashboard metric-query requests rate-limited (429).",
|
|
386
|
+
KICI_PLATFORM_MIMIR_RELAY_ERRORS_TOTAL: "Total Mimir push-relay errors (Platform-embedded metrics). Labels: reason.",
|
|
387
|
+
KICI_PLATFORM_ORPHAN_CONNECTIONS_SWEPT_TOTAL: "Total orphan connections swept from platform_connections",
|
|
388
|
+
KICI_PLATFORM_STALE_ORCHESTRATORS_TOTAL: "Total orchestrators detected as permanently disconnected",
|
|
389
|
+
KICI_PLATFORM_STALE_RUNS_FAILED_TOTAL: "Total execution runs failed due to orchestrator staleness",
|
|
390
|
+
KICI_PLATFORM_STEP_STATUS_FORWARDS_TOTAL: "Total step status forwards received",
|
|
391
|
+
KICI_UNIVERSAL_GIT_REGISTRATION_ERRORS_TOTAL: "Errors encountered while registering universal-git provider bundles",
|
|
392
|
+
KICI_VALKEY_CONNECTION_STATUS: "Valkey connection status per role (1=connected, 0=disconnected)",
|
|
393
|
+
KICI_VALKEY_PUBLISH_TOTAL: "Total messages published to Valkey channels",
|
|
394
|
+
KICI_VALKEY_RELAY_LATENCY_SECONDS: "Latency of cross-instance Valkey relay operations in seconds",
|
|
395
|
+
KICI_VALKEY_SUBSCRIBE_RECEIVE_TOTAL: "Total messages received from Valkey subscriptions",
|
|
396
|
+
KICI_WEBHOOK_PROCESSING_SECONDS: "Webhook processing duration in seconds",
|
|
397
|
+
KICI_WEBHOOK_SIGNATURE_FAILURES_TOTAL: "Total number of webhooks rejected at orchestrator signature verification",
|
|
398
|
+
KICI_WEBHOOKS_RECEIVED_TOTAL: "Total number of webhooks received",
|
|
399
|
+
KICI_WS_CONNECTIONS_ACTIVE: "Current number of active WebSocket connections",
|
|
400
|
+
KICI_WS_CONNECTIONS_TOTAL: "Total number of WebSocket connections",
|
|
401
|
+
KICI_WS_HEARTBEAT_AGE_SECONDS: "Seconds since last heartbeat per routing key",
|
|
402
|
+
KICI_WS_MESSAGES_RECEIVED_TOTAL: "Total messages received from orchestrators",
|
|
403
|
+
KICI_WS_MESSAGES_SENT_TOTAL: "Total messages sent to orchestrators",
|
|
404
|
+
KICI_WS_RELAY_ATTEMPTS_TOTAL: "Total number of webhook relay attempts",
|
|
405
|
+
KICI_WS_RELAY_DURATION_SECONDS: "Duration of webhook relay operations in seconds"
|
|
406
|
+
};
|
|
407
|
+
/** Set of every catalog metric name — O(1) membership for lint / filter UI. */
|
|
408
|
+
const ALL_METRIC_NAMES = [
|
|
409
|
+
"kici_agent_clone_duration_seconds",
|
|
410
|
+
"kici_agent_connection_status",
|
|
411
|
+
"kici_agent_jobs_active",
|
|
412
|
+
"kici_agent_jobs_total",
|
|
413
|
+
"kici_agent_log_backpressure_active",
|
|
414
|
+
"kici_agent_log_backpressure_events_total",
|
|
415
|
+
"kici_agent_log_bytes_total",
|
|
416
|
+
"kici_agent_log_lines_dropped_total",
|
|
417
|
+
"kici_agent_step_duration_seconds",
|
|
418
|
+
"kici_agent_steps_total",
|
|
419
|
+
"kici_build_jobs_total",
|
|
420
|
+
"kici_cache_hits_total",
|
|
421
|
+
"kici_cache_misses_total",
|
|
422
|
+
"kici_cross_source_errors_total",
|
|
423
|
+
"kici_cross_source_fanout_size",
|
|
424
|
+
"kici_orch_agents_active",
|
|
425
|
+
"kici_orch_build_duration_seconds",
|
|
426
|
+
"kici_orch_config_reload_total",
|
|
427
|
+
"kici_orch_config_version",
|
|
428
|
+
"kici_orch_dedup_hits_total",
|
|
429
|
+
"kici_orch_dep_cache_hits_total",
|
|
430
|
+
"kici_orch_dep_cache_misses_total",
|
|
431
|
+
"kici_orch_dispatch_queue_depth",
|
|
432
|
+
"kici_orch_dispatch_queue_depth_by_label",
|
|
433
|
+
"kici_orch_event_attempts",
|
|
434
|
+
"kici_orch_event_dispatch_success_total",
|
|
435
|
+
"kici_orch_event_dlq_depth",
|
|
436
|
+
"kici_orch_event_dlq_total",
|
|
437
|
+
"kici_orch_event_lease_expirations_total",
|
|
438
|
+
"kici_orch_event_retry_total",
|
|
439
|
+
"kici_orch_execution_duration_seconds",
|
|
440
|
+
"kici_orch_executions_total",
|
|
441
|
+
"kici_orch_github_check_run_total",
|
|
442
|
+
"kici_orch_install_secrets_contributor_stripped_total",
|
|
443
|
+
"kici_orch_install_secrets_decisions_total",
|
|
444
|
+
"kici_orch_install_secrets_npm_registry_used_total",
|
|
445
|
+
"kici_orch_install_secrets_token_resolution_duration_seconds",
|
|
446
|
+
"kici_orch_log_bytes_stored_total",
|
|
447
|
+
"kici_orch_log_chunks_received_total",
|
|
448
|
+
"kici_orch_scaler_config_reloads_total",
|
|
449
|
+
"kici_orch_scaler_cpus_used",
|
|
450
|
+
"kici_orch_scaler_memory_bytes_used",
|
|
451
|
+
"kici_orch_scaler_spawn_refusals_total",
|
|
452
|
+
"kici_orch_source_cache_hits_total",
|
|
453
|
+
"kici_orch_source_cache_misses_total",
|
|
454
|
+
"kici_orch_stale_detection_duration_seconds",
|
|
455
|
+
"kici_orch_stale_runs_current",
|
|
456
|
+
"kici_orch_stale_runs_detected_total",
|
|
457
|
+
"kici_orch_steps_total",
|
|
458
|
+
"kici_orch_trigger_match_duration_seconds",
|
|
459
|
+
"kici_orch_trust_match_refused_no_id_total",
|
|
460
|
+
"kici_orch_webhooks_processed_total",
|
|
461
|
+
"kici_orch_webhooks_received_total",
|
|
462
|
+
"kici_org_agent_minutes",
|
|
463
|
+
"kici_org_connections",
|
|
464
|
+
"kici_org_executions_count",
|
|
465
|
+
"kici_org_log_bytes",
|
|
466
|
+
"kici_org_status_events_total",
|
|
467
|
+
"kici_orgs_total",
|
|
468
|
+
"kici_plan_cap_exceeded_total",
|
|
469
|
+
"kici_plan_usage_ratio",
|
|
470
|
+
"kici_platform_cross_tenant_rejections_total",
|
|
471
|
+
"kici_platform_dashboard_proxy_duration_seconds",
|
|
472
|
+
"kici_platform_dashboard_proxy_pending",
|
|
473
|
+
"kici_platform_dashboard_proxy_requests_total",
|
|
474
|
+
"kici_platform_execution_events_total",
|
|
475
|
+
"kici_platform_execution_status_updates_total",
|
|
476
|
+
"kici_platform_identity_links_missing_provider_user_id",
|
|
477
|
+
"kici_platform_job_consecutive_failures",
|
|
478
|
+
"kici_platform_job_duration_seconds",
|
|
479
|
+
"kici_platform_job_last_failure_timestamp_seconds",
|
|
480
|
+
"kici_platform_job_last_success_timestamp_seconds",
|
|
481
|
+
"kici_platform_job_runs_total",
|
|
482
|
+
"kici_platform_job_status_forwards_total",
|
|
483
|
+
"kici_platform_log_chunks_forwarded_total",
|
|
484
|
+
"kici_platform_log_lines_forwarded_total",
|
|
485
|
+
"kici_platform_metrics_query_rate_limited_total",
|
|
486
|
+
"kici_platform_mimir_relay_errors_total",
|
|
487
|
+
"kici_platform_orphan_connections_swept_total",
|
|
488
|
+
"kici_platform_stale_orchestrators_total",
|
|
489
|
+
"kici_platform_stale_runs_failed_total",
|
|
490
|
+
"kici_platform_step_status_forwards_total",
|
|
491
|
+
"kici_universal_git_registration_errors_total",
|
|
492
|
+
"kici_valkey_connection_status",
|
|
493
|
+
"kici_valkey_publish_total",
|
|
494
|
+
"kici_valkey_relay_latency_seconds",
|
|
495
|
+
"kici_valkey_subscribe_receive_total",
|
|
496
|
+
"kici_webhook_processing_seconds",
|
|
497
|
+
"kici_webhook_signature_failures_total",
|
|
498
|
+
"kici_webhooks_received_total",
|
|
499
|
+
"kici_ws_connections_active",
|
|
500
|
+
"kici_ws_connections_total",
|
|
501
|
+
"kici_ws_heartbeat_age_seconds",
|
|
502
|
+
"kici_ws_messages_received_total",
|
|
503
|
+
"kici_ws_messages_sent_total",
|
|
504
|
+
"kici_ws_relay_attempts_total",
|
|
505
|
+
"kici_ws_relay_duration_seconds"
|
|
506
|
+
];
|
|
507
|
+
//#endregion
|
|
508
|
+
export { ALL_METRIC_NAMES, MetricDescription, MetricKind, MetricLabels, MetricNames };
|
|
509
|
+
|
|
510
|
+
//# sourceMappingURL=metric-catalog.generated.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Subpath re-export for dashboard global-workflow settings protocol messages.
|
|
3
|
+
*
|
|
4
|
+
* Consumers import from `@kici-dev/engine/protocol/dashboard-global-workflows`.
|
|
5
|
+
* This file is intentionally kept out of the engine barrel so it remains a
|
|
6
|
+
* server-only surface (see `.claude/rules/engine.md`).
|
|
7
|
+
*/
|
|
8
|
+
export * from './messages/dashboard-global-workflows.js';
|
|
9
|
+
//# sourceMappingURL=dashboard-global-workflows.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import "../chunk-gOLHoazu.js";
|
|
2
|
+
import { globalWorkflowSettingsSchema, globalWorkflowsGetRequestSchema, globalWorkflowsGetResponseSchema, globalWorkflowsUpdateRequestSchema, globalWorkflowsUpdateResponseSchema, repoPatternEntrySchema } from "./messages/dashboard-global-workflows.js";
|
|
3
|
+
export { globalWorkflowSettingsSchema, globalWorkflowsGetRequestSchema, globalWorkflowsGetResponseSchema, globalWorkflowsUpdateRequestSchema, globalWorkflowsUpdateResponseSchema, repoPatternEntrySchema };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Constants for the chunked event-log payload streaming transport.
|
|
3
|
+
*
|
|
4
|
+
* The orchestrator slices the decompressed webhook body into 64 KiB chunks,
|
|
5
|
+
* base64-encodes each, and emits a sequence of
|
|
6
|
+
* `dashboard.event-log.payload.chunk` messages. Platform forwards each one to
|
|
7
|
+
* the originating browser as `event-log.payload.chunk`. The dashboard hook
|
|
8
|
+
* accumulates the chunks until `isLast=true` then JSON.parses the result.
|
|
9
|
+
*
|
|
10
|
+
* 64 KiB raw → ~85 KiB base64; with `permessage-deflate` negotiated on the
|
|
11
|
+
* relay the on-wire footprint is similar to the previous "single inline
|
|
12
|
+
* payload" path. The win is that Platform never holds the full body in
|
|
13
|
+
* memory and the dashboard can render progress as bytes arrive.
|
|
14
|
+
*/
|
|
15
|
+
export declare const EVENT_LOG_PAYLOAD_CHUNK_BYTES: number;
|
|
16
|
+
//# sourceMappingURL=event-log-payload.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "../chunk-gOLHoazu.js";
|
|
2
|
+
//#region src/protocol/event-log-payload.ts
|
|
3
|
+
/**
|
|
4
|
+
* Constants for the chunked event-log payload streaming transport.
|
|
5
|
+
*
|
|
6
|
+
* The orchestrator slices the decompressed webhook body into 64 KiB chunks,
|
|
7
|
+
* base64-encodes each, and emits a sequence of
|
|
8
|
+
* `dashboard.event-log.payload.chunk` messages. Platform forwards each one to
|
|
9
|
+
* the originating browser as `event-log.payload.chunk`. The dashboard hook
|
|
10
|
+
* accumulates the chunks until `isLast=true` then JSON.parses the result.
|
|
11
|
+
*
|
|
12
|
+
* 64 KiB raw → ~85 KiB base64; with `permessage-deflate` negotiated on the
|
|
13
|
+
* relay the on-wire footprint is similar to the previous "single inline
|
|
14
|
+
* payload" path. The win is that Platform never holds the full body in
|
|
15
|
+
* memory and the dashboard can render progress as bytes arrive.
|
|
16
|
+
*/
|
|
17
|
+
const EVENT_LOG_PAYLOAD_CHUNK_BYTES = 64 * 1024;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { EVENT_LOG_PAYLOAD_CHUNK_BYTES };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=event-log-payload.js.map
|