@mnemom/aip-otel-exporter 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/README.md +172 -0
- package/dashboards/README.md +92 -0
- package/dashboards/datadog-aip-overview.json +311 -0
- package/dashboards/grafana-aip-detail.json +403 -0
- package/dashboards/grafana-aip-overview.json +431 -0
- package/dist/attributes.d.ts +70 -0
- package/dist/attributes.d.ts.map +1 -0
- package/dist/attributes.js +81 -0
- package/dist/attributes.js.map +1 -0
- package/dist/auto/aap-instrumentation.d.ts +23 -0
- package/dist/auto/aap-instrumentation.d.ts.map +1 -0
- package/dist/auto/aap-instrumentation.js +112 -0
- package/dist/auto/aap-instrumentation.js.map +1 -0
- package/dist/auto/aip-instrumentation.d.ts +22 -0
- package/dist/auto/aip-instrumentation.d.ts.map +1 -0
- package/dist/auto/aip-instrumentation.js +87 -0
- package/dist/auto/aip-instrumentation.js.map +1 -0
- package/dist/auto/index.d.ts +20 -0
- package/dist/auto/index.d.ts.map +1 -0
- package/dist/auto/index.js +22 -0
- package/dist/auto/index.js.map +1 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +58 -0
- package/dist/index.js.map +1 -0
- package/dist/manual/record-coherence.d.ts +12 -0
- package/dist/manual/record-coherence.d.ts.map +1 -0
- package/dist/manual/record-coherence.js +21 -0
- package/dist/manual/record-coherence.js.map +1 -0
- package/dist/manual/record-drift.d.ts +14 -0
- package/dist/manual/record-drift.d.ts.map +1 -0
- package/dist/manual/record-drift.js +48 -0
- package/dist/manual/record-drift.js.map +1 -0
- package/dist/manual/record-integrity-check.d.ts +19 -0
- package/dist/manual/record-integrity-check.d.ts.map +1 -0
- package/dist/manual/record-integrity-check.js +92 -0
- package/dist/manual/record-integrity-check.js.map +1 -0
- package/dist/manual/record-verification.d.ts +14 -0
- package/dist/manual/record-verification.d.ts.map +1 -0
- package/dist/manual/record-verification.js +40 -0
- package/dist/manual/record-verification.js.map +1 -0
- package/dist/manual/span-builder.d.ts +28 -0
- package/dist/manual/span-builder.d.ts.map +1 -0
- package/dist/manual/span-builder.js +42 -0
- package/dist/manual/span-builder.js.map +1 -0
- package/dist/metrics/integrity-metrics.d.ts +44 -0
- package/dist/metrics/integrity-metrics.d.ts.map +1 -0
- package/dist/metrics/integrity-metrics.js +128 -0
- package/dist/metrics/integrity-metrics.js.map +1 -0
- package/dist/types.d.ts +205 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +8 -0
- package/dist/types.js.map +1 -0
- package/dist/workers/index.d.ts +8 -0
- package/dist/workers/index.d.ts.map +1 -0
- package/dist/workers/index.js +7 -0
- package/dist/workers/index.js.map +1 -0
- package/dist/workers/otlp-serializer.d.ts +90 -0
- package/dist/workers/otlp-serializer.d.ts.map +1 -0
- package/dist/workers/otlp-serializer.js +133 -0
- package/dist/workers/otlp-serializer.js.map +1 -0
- package/dist/workers/workers-exporter.d.ts +26 -0
- package/dist/workers/workers-exporter.d.ts.map +1 -0
- package/dist/workers/workers-exporter.js +228 -0
- package/dist/workers/workers-exporter.js.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
{
|
|
2
|
+
"__inputs": [
|
|
3
|
+
{
|
|
4
|
+
"name": "DS_PROMETHEUS",
|
|
5
|
+
"label": "Prometheus",
|
|
6
|
+
"description": "",
|
|
7
|
+
"type": "datasource",
|
|
8
|
+
"pluginId": "prometheus",
|
|
9
|
+
"pluginName": "Prometheus"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"__requires": [
|
|
13
|
+
{
|
|
14
|
+
"type": "grafana",
|
|
15
|
+
"id": "grafana",
|
|
16
|
+
"name": "Grafana",
|
|
17
|
+
"version": "10.0.0"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "datasource",
|
|
21
|
+
"id": "prometheus",
|
|
22
|
+
"name": "Prometheus",
|
|
23
|
+
"version": "1.0.0"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "panel",
|
|
27
|
+
"id": "piechart",
|
|
28
|
+
"name": "Pie chart",
|
|
29
|
+
"version": ""
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "panel",
|
|
33
|
+
"id": "timeseries",
|
|
34
|
+
"name": "Time series",
|
|
35
|
+
"version": ""
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "panel",
|
|
39
|
+
"id": "gauge",
|
|
40
|
+
"name": "Gauge",
|
|
41
|
+
"version": ""
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "panel",
|
|
45
|
+
"id": "barchart",
|
|
46
|
+
"name": "Bar chart",
|
|
47
|
+
"version": ""
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "panel",
|
|
51
|
+
"id": "histogram",
|
|
52
|
+
"name": "Histogram",
|
|
53
|
+
"version": ""
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"type": "panel",
|
|
57
|
+
"id": "stat",
|
|
58
|
+
"name": "Stat",
|
|
59
|
+
"version": ""
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"id": null,
|
|
63
|
+
"uid": "aip-otel-overview",
|
|
64
|
+
"title": "AIP Integrity Overview",
|
|
65
|
+
"description": "Overview dashboard for AIP integrity checks and AAP verification results exported via @mnemom/aip-otel-exporter.",
|
|
66
|
+
"tags": ["aip", "integrity", "otel", "aap"],
|
|
67
|
+
"timezone": "browser",
|
|
68
|
+
"editable": true,
|
|
69
|
+
"graphTooltip": 1,
|
|
70
|
+
"refresh": "30s",
|
|
71
|
+
"schemaVersion": 39,
|
|
72
|
+
"version": 1,
|
|
73
|
+
"time": {
|
|
74
|
+
"from": "now-6h",
|
|
75
|
+
"to": "now"
|
|
76
|
+
},
|
|
77
|
+
"templating": {
|
|
78
|
+
"list": [
|
|
79
|
+
{
|
|
80
|
+
"name": "agent_id",
|
|
81
|
+
"type": "query",
|
|
82
|
+
"datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" },
|
|
83
|
+
"query": "label_values(aip_integrity_checks_total, agent_id)",
|
|
84
|
+
"refresh": 2,
|
|
85
|
+
"includeAll": true,
|
|
86
|
+
"allValue": ".*",
|
|
87
|
+
"current": { "text": "All", "value": "$__all" },
|
|
88
|
+
"multi": true,
|
|
89
|
+
"sort": 1
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "time_range",
|
|
93
|
+
"type": "interval",
|
|
94
|
+
"query": "1m,5m,15m,30m,1h,6h,12h,1d",
|
|
95
|
+
"current": { "text": "5m", "value": "5m" },
|
|
96
|
+
"auto": false
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
"panels": [
|
|
101
|
+
{
|
|
102
|
+
"title": "Integrity Checks",
|
|
103
|
+
"type": "row",
|
|
104
|
+
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 },
|
|
105
|
+
"collapsed": false,
|
|
106
|
+
"panels": []
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"title": "Integrity Verdict Distribution",
|
|
110
|
+
"type": "piechart",
|
|
111
|
+
"datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" },
|
|
112
|
+
"gridPos": { "h": 8, "w": 8, "x": 0, "y": 1 },
|
|
113
|
+
"fieldConfig": {
|
|
114
|
+
"defaults": {
|
|
115
|
+
"color": { "mode": "palette-classic" },
|
|
116
|
+
"custom": { "hideFrom": { "legend": false, "tooltip": false, "viz": false } }
|
|
117
|
+
},
|
|
118
|
+
"overrides": [
|
|
119
|
+
{
|
|
120
|
+
"matcher": { "id": "byName", "options": "clear" },
|
|
121
|
+
"properties": [{ "id": "color", "value": { "fixedColor": "green", "mode": "fixed" } }]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"matcher": { "id": "byName", "options": "review_needed" },
|
|
125
|
+
"properties": [{ "id": "color", "value": { "fixedColor": "yellow", "mode": "fixed" } }]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"matcher": { "id": "byName", "options": "boundary_violation" },
|
|
129
|
+
"properties": [{ "id": "color", "value": { "fixedColor": "red", "mode": "fixed" } }]
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
"options": {
|
|
134
|
+
"legend": { "displayMode": "list", "placement": "right" },
|
|
135
|
+
"pieType": "pie",
|
|
136
|
+
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
|
|
137
|
+
"tooltip": { "mode": "single" }
|
|
138
|
+
},
|
|
139
|
+
"targets": [
|
|
140
|
+
{
|
|
141
|
+
"expr": "sum by (verdict) (increase(aip_integrity_checks_total{agent_id=~\"$agent_id\"}[$time_range]))",
|
|
142
|
+
"legendFormat": "{{verdict}}",
|
|
143
|
+
"refId": "A"
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"title": "Integrity Checks per Minute",
|
|
149
|
+
"type": "timeseries",
|
|
150
|
+
"datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" },
|
|
151
|
+
"gridPos": { "h": 8, "w": 8, "x": 8, "y": 1 },
|
|
152
|
+
"fieldConfig": {
|
|
153
|
+
"defaults": {
|
|
154
|
+
"color": { "mode": "palette-classic" },
|
|
155
|
+
"custom": {
|
|
156
|
+
"axisBorderShow": false,
|
|
157
|
+
"axisCenteredZero": false,
|
|
158
|
+
"axisLabel": "checks/min",
|
|
159
|
+
"drawStyle": "line",
|
|
160
|
+
"fillOpacity": 20,
|
|
161
|
+
"lineInterpolation": "smooth",
|
|
162
|
+
"lineWidth": 2,
|
|
163
|
+
"pointSize": 5,
|
|
164
|
+
"showPoints": "auto",
|
|
165
|
+
"spanNulls": false,
|
|
166
|
+
"stacking": { "group": "A", "mode": "none" }
|
|
167
|
+
},
|
|
168
|
+
"unit": "cpm"
|
|
169
|
+
},
|
|
170
|
+
"overrides": []
|
|
171
|
+
},
|
|
172
|
+
"options": {
|
|
173
|
+
"legend": { "displayMode": "list", "placement": "bottom" },
|
|
174
|
+
"tooltip": { "mode": "multi", "sort": "desc" }
|
|
175
|
+
},
|
|
176
|
+
"targets": [
|
|
177
|
+
{
|
|
178
|
+
"expr": "sum by (verdict) (rate(aip_integrity_checks_total{agent_id=~\"$agent_id\"}[5m]) * 60)",
|
|
179
|
+
"legendFormat": "{{verdict}}",
|
|
180
|
+
"refId": "A"
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"title": "Integrity Ratio",
|
|
186
|
+
"type": "gauge",
|
|
187
|
+
"datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" },
|
|
188
|
+
"gridPos": { "h": 8, "w": 8, "x": 16, "y": 1 },
|
|
189
|
+
"fieldConfig": {
|
|
190
|
+
"defaults": {
|
|
191
|
+
"color": { "mode": "thresholds" },
|
|
192
|
+
"thresholds": {
|
|
193
|
+
"mode": "absolute",
|
|
194
|
+
"steps": [
|
|
195
|
+
{ "color": "red", "value": null },
|
|
196
|
+
{ "color": "orange", "value": 0.7 },
|
|
197
|
+
{ "color": "yellow", "value": 0.85 },
|
|
198
|
+
{ "color": "green", "value": 0.95 }
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
"min": 0,
|
|
202
|
+
"max": 1,
|
|
203
|
+
"unit": "percentunit"
|
|
204
|
+
},
|
|
205
|
+
"overrides": []
|
|
206
|
+
},
|
|
207
|
+
"options": {
|
|
208
|
+
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
|
|
209
|
+
"showThresholdLabels": false,
|
|
210
|
+
"showThresholdMarkers": true,
|
|
211
|
+
"orientation": "auto"
|
|
212
|
+
},
|
|
213
|
+
"targets": [
|
|
214
|
+
{
|
|
215
|
+
"expr": "histogram_quantile(0.5, sum(rate(aip_window_integrity_ratio_bucket{agent_id=~\"$agent_id\"}[5m])) by (le))",
|
|
216
|
+
"legendFormat": "Median integrity ratio",
|
|
217
|
+
"refId": "A"
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"title": "Concerns & Analysis",
|
|
223
|
+
"type": "row",
|
|
224
|
+
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 9 },
|
|
225
|
+
"collapsed": false,
|
|
226
|
+
"panels": []
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"title": "Concerns by Category",
|
|
230
|
+
"type": "barchart",
|
|
231
|
+
"datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" },
|
|
232
|
+
"gridPos": { "h": 8, "w": 8, "x": 0, "y": 10 },
|
|
233
|
+
"fieldConfig": {
|
|
234
|
+
"defaults": {
|
|
235
|
+
"color": { "mode": "palette-classic" },
|
|
236
|
+
"custom": {
|
|
237
|
+
"axisBorderShow": false,
|
|
238
|
+
"axisCenteredZero": false,
|
|
239
|
+
"fillOpacity": 80,
|
|
240
|
+
"gradientMode": "none",
|
|
241
|
+
"lineWidth": 1
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"overrides": []
|
|
245
|
+
},
|
|
246
|
+
"options": {
|
|
247
|
+
"barWidth": 0.7,
|
|
248
|
+
"groupWidth": 0.7,
|
|
249
|
+
"legend": { "displayMode": "list", "placement": "bottom" },
|
|
250
|
+
"orientation": "horizontal",
|
|
251
|
+
"tooltip": { "mode": "single" },
|
|
252
|
+
"xTickLabelRotation": 0,
|
|
253
|
+
"stacking": "none"
|
|
254
|
+
},
|
|
255
|
+
"targets": [
|
|
256
|
+
{
|
|
257
|
+
"expr": "sum by (category) (increase(aip_concerns_total{agent_id=~\"$agent_id\"}[$time_range]))",
|
|
258
|
+
"legendFormat": "{{category}}",
|
|
259
|
+
"refId": "A"
|
|
260
|
+
}
|
|
261
|
+
]
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"title": "Concerns by Severity",
|
|
265
|
+
"type": "barchart",
|
|
266
|
+
"datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" },
|
|
267
|
+
"gridPos": { "h": 8, "w": 8, "x": 8, "y": 10 },
|
|
268
|
+
"fieldConfig": {
|
|
269
|
+
"defaults": {
|
|
270
|
+
"color": { "mode": "palette-classic" },
|
|
271
|
+
"custom": {
|
|
272
|
+
"axisBorderShow": false,
|
|
273
|
+
"axisCenteredZero": false,
|
|
274
|
+
"fillOpacity": 80,
|
|
275
|
+
"gradientMode": "none",
|
|
276
|
+
"lineWidth": 1
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"overrides": [
|
|
280
|
+
{
|
|
281
|
+
"matcher": { "id": "byName", "options": "critical" },
|
|
282
|
+
"properties": [{ "id": "color", "value": { "fixedColor": "red", "mode": "fixed" } }]
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"matcher": { "id": "byName", "options": "high" },
|
|
286
|
+
"properties": [{ "id": "color", "value": { "fixedColor": "orange", "mode": "fixed" } }]
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"matcher": { "id": "byName", "options": "medium" },
|
|
290
|
+
"properties": [{ "id": "color", "value": { "fixedColor": "yellow", "mode": "fixed" } }]
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"matcher": { "id": "byName", "options": "low" },
|
|
294
|
+
"properties": [{ "id": "color", "value": { "fixedColor": "blue", "mode": "fixed" } }]
|
|
295
|
+
}
|
|
296
|
+
]
|
|
297
|
+
},
|
|
298
|
+
"options": {
|
|
299
|
+
"barWidth": 0.7,
|
|
300
|
+
"groupWidth": 0.7,
|
|
301
|
+
"legend": { "displayMode": "list", "placement": "bottom" },
|
|
302
|
+
"orientation": "horizontal",
|
|
303
|
+
"tooltip": { "mode": "single" },
|
|
304
|
+
"xTickLabelRotation": 0,
|
|
305
|
+
"stacking": "none"
|
|
306
|
+
},
|
|
307
|
+
"targets": [
|
|
308
|
+
{
|
|
309
|
+
"expr": "sum by (severity) (increase(aip_concerns_total{agent_id=~\"$agent_id\"}[$time_range]))",
|
|
310
|
+
"legendFormat": "{{severity}}",
|
|
311
|
+
"refId": "A"
|
|
312
|
+
}
|
|
313
|
+
]
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"title": "Analysis Duration Distribution",
|
|
317
|
+
"type": "histogram",
|
|
318
|
+
"datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" },
|
|
319
|
+
"gridPos": { "h": 8, "w": 8, "x": 16, "y": 10 },
|
|
320
|
+
"fieldConfig": {
|
|
321
|
+
"defaults": {
|
|
322
|
+
"color": { "mode": "palette-classic" },
|
|
323
|
+
"custom": {
|
|
324
|
+
"fillOpacity": 80,
|
|
325
|
+
"gradientMode": "scheme",
|
|
326
|
+
"lineWidth": 1
|
|
327
|
+
},
|
|
328
|
+
"unit": "ms"
|
|
329
|
+
},
|
|
330
|
+
"overrides": []
|
|
331
|
+
},
|
|
332
|
+
"options": {
|
|
333
|
+
"bucketOffset": 0,
|
|
334
|
+
"combine": false,
|
|
335
|
+
"fillOpacity": 80,
|
|
336
|
+
"gradientMode": "scheme",
|
|
337
|
+
"legend": { "displayMode": "list", "placement": "bottom" },
|
|
338
|
+
"tooltip": { "mode": "single" }
|
|
339
|
+
},
|
|
340
|
+
"targets": [
|
|
341
|
+
{
|
|
342
|
+
"expr": "sum(rate(aip_analysis_duration_ms_bucket{agent_id=~\"$agent_id\"}[5m])) by (le)",
|
|
343
|
+
"legendFormat": "Analysis duration",
|
|
344
|
+
"refId": "A",
|
|
345
|
+
"format": "heatmap"
|
|
346
|
+
}
|
|
347
|
+
]
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"title": "AAP Verification",
|
|
351
|
+
"type": "row",
|
|
352
|
+
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 18 },
|
|
353
|
+
"collapsed": false,
|
|
354
|
+
"panels": []
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"title": "AAP Verification Pass Rate",
|
|
358
|
+
"type": "stat",
|
|
359
|
+
"datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" },
|
|
360
|
+
"gridPos": { "h": 8, "w": 8, "x": 0, "y": 19 },
|
|
361
|
+
"fieldConfig": {
|
|
362
|
+
"defaults": {
|
|
363
|
+
"color": { "mode": "thresholds" },
|
|
364
|
+
"thresholds": {
|
|
365
|
+
"mode": "absolute",
|
|
366
|
+
"steps": [
|
|
367
|
+
{ "color": "red", "value": null },
|
|
368
|
+
{ "color": "orange", "value": 0.7 },
|
|
369
|
+
{ "color": "yellow", "value": 0.9 },
|
|
370
|
+
{ "color": "green", "value": 0.98 }
|
|
371
|
+
]
|
|
372
|
+
},
|
|
373
|
+
"unit": "percentunit",
|
|
374
|
+
"min": 0,
|
|
375
|
+
"max": 1
|
|
376
|
+
},
|
|
377
|
+
"overrides": []
|
|
378
|
+
},
|
|
379
|
+
"options": {
|
|
380
|
+
"colorMode": "background",
|
|
381
|
+
"graphMode": "area",
|
|
382
|
+
"justifyMode": "auto",
|
|
383
|
+
"orientation": "auto",
|
|
384
|
+
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
|
|
385
|
+
"textMode": "auto"
|
|
386
|
+
},
|
|
387
|
+
"targets": [
|
|
388
|
+
{
|
|
389
|
+
"expr": "sum(increase(aap_verifications_total{verified=\"true\"}[$time_range])) / sum(increase(aap_verifications_total[$time_range]))",
|
|
390
|
+
"legendFormat": "Pass rate",
|
|
391
|
+
"refId": "A"
|
|
392
|
+
}
|
|
393
|
+
]
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"title": "Violations by Type",
|
|
397
|
+
"type": "barchart",
|
|
398
|
+
"datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" },
|
|
399
|
+
"gridPos": { "h": 8, "w": 16, "x": 8, "y": 19 },
|
|
400
|
+
"fieldConfig": {
|
|
401
|
+
"defaults": {
|
|
402
|
+
"color": { "mode": "palette-classic" },
|
|
403
|
+
"custom": {
|
|
404
|
+
"axisBorderShow": false,
|
|
405
|
+
"axisCenteredZero": false,
|
|
406
|
+
"fillOpacity": 80,
|
|
407
|
+
"gradientMode": "none",
|
|
408
|
+
"lineWidth": 1
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
"overrides": []
|
|
412
|
+
},
|
|
413
|
+
"options": {
|
|
414
|
+
"barWidth": 0.7,
|
|
415
|
+
"groupWidth": 0.7,
|
|
416
|
+
"legend": { "displayMode": "list", "placement": "bottom" },
|
|
417
|
+
"orientation": "vertical",
|
|
418
|
+
"tooltip": { "mode": "multi", "sort": "desc" },
|
|
419
|
+
"xTickLabelRotation": -45,
|
|
420
|
+
"stacking": "normal"
|
|
421
|
+
},
|
|
422
|
+
"targets": [
|
|
423
|
+
{
|
|
424
|
+
"expr": "sum by (type, severity) (increase(aap_violations_total[$time_range]))",
|
|
425
|
+
"legendFormat": "{{type}} ({{severity}})",
|
|
426
|
+
"refId": "A"
|
|
427
|
+
}
|
|
428
|
+
]
|
|
429
|
+
}
|
|
430
|
+
]
|
|
431
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenTelemetry attribute name constants for AIP and AAP spans.
|
|
3
|
+
*
|
|
4
|
+
* Primary namespace: aip.* and aap.* (vendor-specific).
|
|
5
|
+
* Forward-compat aliases: gen_ai.evaluation.* for future OTel GenAI SIG alignment.
|
|
6
|
+
*/
|
|
7
|
+
export declare const AIP_INTEGRITY_CHECKPOINT_ID = "aip.integrity.checkpoint_id";
|
|
8
|
+
export declare const AIP_INTEGRITY_VERDICT = "aip.integrity.verdict";
|
|
9
|
+
export declare const AIP_INTEGRITY_PROCEED = "aip.integrity.proceed";
|
|
10
|
+
export declare const AIP_INTEGRITY_RECOMMENDED_ACTION = "aip.integrity.recommended_action";
|
|
11
|
+
export declare const AIP_INTEGRITY_CONCERNS_COUNT = "aip.integrity.concerns_count";
|
|
12
|
+
export declare const AIP_INTEGRITY_AGENT_ID = "aip.integrity.agent_id";
|
|
13
|
+
export declare const AIP_INTEGRITY_CARD_ID = "aip.integrity.card_id";
|
|
14
|
+
export declare const AIP_INTEGRITY_SESSION_ID = "aip.integrity.session_id";
|
|
15
|
+
export declare const AIP_INTEGRITY_THINKING_HASH = "aip.integrity.thinking_hash";
|
|
16
|
+
export declare const AIP_INTEGRITY_ANALYSIS_MODEL = "aip.integrity.analysis_model";
|
|
17
|
+
export declare const AIP_INTEGRITY_ANALYSIS_DURATION_MS = "aip.integrity.analysis_duration_ms";
|
|
18
|
+
export declare const AIP_INTEGRITY_THINKING_TOKENS = "aip.integrity.thinking_tokens";
|
|
19
|
+
export declare const AIP_INTEGRITY_TRUNCATED = "aip.integrity.truncated";
|
|
20
|
+
export declare const AIP_INTEGRITY_EXTRACTION_CONFIDENCE = "aip.integrity.extraction_confidence";
|
|
21
|
+
export declare const AIP_CONSCIENCE_CONSULTATION_DEPTH = "aip.conscience.consultation_depth";
|
|
22
|
+
export declare const AIP_CONSCIENCE_VALUES_CHECKED_COUNT = "aip.conscience.values_checked_count";
|
|
23
|
+
export declare const AIP_CONSCIENCE_CONFLICTS_COUNT = "aip.conscience.conflicts_count";
|
|
24
|
+
export declare const AIP_WINDOW_SIZE = "aip.window.size";
|
|
25
|
+
export declare const AIP_WINDOW_INTEGRITY_RATIO = "aip.window.integrity_ratio";
|
|
26
|
+
export declare const AIP_WINDOW_DRIFT_ALERT_ACTIVE = "aip.window.drift_alert_active";
|
|
27
|
+
export declare const GEN_AI_EVALUATION_VERDICT = "gen_ai.evaluation.verdict";
|
|
28
|
+
export declare const GEN_AI_EVALUATION_SCORE = "gen_ai.evaluation.score";
|
|
29
|
+
export declare const AAP_VERIFICATION_RESULT = "aap.verification.result";
|
|
30
|
+
export declare const AAP_VERIFICATION_SIMILARITY_SCORE = "aap.verification.similarity_score";
|
|
31
|
+
export declare const AAP_VERIFICATION_VIOLATIONS_COUNT = "aap.verification.violations_count";
|
|
32
|
+
export declare const AAP_VERIFICATION_WARNINGS_COUNT = "aap.verification.warnings_count";
|
|
33
|
+
export declare const AAP_VERIFICATION_TRACE_ID = "aap.verification.trace_id";
|
|
34
|
+
export declare const AAP_VERIFICATION_CARD_ID = "aap.verification.card_id";
|
|
35
|
+
export declare const AAP_VERIFICATION_DURATION_MS = "aap.verification.duration_ms";
|
|
36
|
+
export declare const AAP_VERIFICATION_CHECKS_PERFORMED = "aap.verification.checks_performed";
|
|
37
|
+
export declare const AAP_COHERENCE_COMPATIBLE = "aap.coherence.compatible";
|
|
38
|
+
export declare const AAP_COHERENCE_SCORE = "aap.coherence.score";
|
|
39
|
+
export declare const AAP_COHERENCE_PROCEED = "aap.coherence.proceed";
|
|
40
|
+
export declare const AAP_COHERENCE_MATCHED_COUNT = "aap.coherence.matched_count";
|
|
41
|
+
export declare const AAP_COHERENCE_CONFLICT_COUNT = "aap.coherence.conflict_count";
|
|
42
|
+
export declare const AAP_DRIFT_ALERTS_COUNT = "aap.drift.alerts_count";
|
|
43
|
+
export declare const AAP_DRIFT_TRACES_ANALYZED = "aap.drift.traces_analyzed";
|
|
44
|
+
export declare const AIP_DRIFT_ALERT_ID = "aip.drift.alert_id";
|
|
45
|
+
export declare const AIP_DRIFT_AGENT_ID = "aip.drift.agent_id";
|
|
46
|
+
export declare const AIP_DRIFT_SESSION_ID = "aip.drift.session_id";
|
|
47
|
+
export declare const AIP_DRIFT_INTEGRITY_SIMILARITY = "aip.drift.integrity_similarity";
|
|
48
|
+
export declare const AIP_DRIFT_SUSTAINED_CHECKS = "aip.drift.sustained_checks";
|
|
49
|
+
export declare const AIP_DRIFT_SEVERITY = "aip.drift.severity";
|
|
50
|
+
export declare const AIP_DRIFT_DIRECTION = "aip.drift.drift_direction";
|
|
51
|
+
export declare const AIP_DRIFT_MESSAGE = "aip.drift.message";
|
|
52
|
+
export declare const SPAN_AIP_INTEGRITY_CHECK = "aip.integrity_check";
|
|
53
|
+
export declare const SPAN_AAP_VERIFY_TRACE = "aap.verify_trace";
|
|
54
|
+
export declare const SPAN_AAP_CHECK_COHERENCE = "aap.check_coherence";
|
|
55
|
+
export declare const SPAN_AAP_DETECT_DRIFT = "aap.detect_drift";
|
|
56
|
+
export declare const EVENT_AIP_CONCERN = "aip.concern";
|
|
57
|
+
export declare const EVENT_AIP_DRIFT_ALERT = "aip.drift_alert";
|
|
58
|
+
export declare const EVENT_AAP_VIOLATION = "aap.violation";
|
|
59
|
+
export declare const EVENT_AAP_DRIFT_ALERT = "aap.drift_alert";
|
|
60
|
+
export declare const METRIC_AIP_INTEGRITY_CHECKS_TOTAL = "aip.integrity_checks.total";
|
|
61
|
+
export declare const METRIC_AIP_INTEGRITY_CHECKS_BY_VERDICT = "aip.integrity_checks.by_verdict";
|
|
62
|
+
export declare const METRIC_AIP_CONCERNS_TOTAL = "aip.concerns.total";
|
|
63
|
+
export declare const METRIC_AIP_ANALYSIS_DURATION = "aip.analysis.duration_ms";
|
|
64
|
+
export declare const METRIC_AIP_WINDOW_INTEGRITY_RATIO = "aip.window.integrity_ratio";
|
|
65
|
+
export declare const METRIC_AIP_DRIFT_ALERTS_TOTAL = "aip.drift_alerts.total";
|
|
66
|
+
export declare const METRIC_AAP_VERIFICATIONS_TOTAL = "aap.verifications.total";
|
|
67
|
+
export declare const METRIC_AAP_VIOLATIONS_TOTAL = "aap.violations.total";
|
|
68
|
+
export declare const METRIC_AAP_VERIFICATION_DURATION = "aap.verification.duration_ms";
|
|
69
|
+
export declare const METRIC_AAP_COHERENCE_SCORE = "aap.coherence.score";
|
|
70
|
+
//# sourceMappingURL=attributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../src/attributes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,eAAO,MAAM,2BAA2B,gCAAgC,CAAC;AACzE,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAC7D,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAC7D,eAAO,MAAM,gCAAg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|
+
/**
|
|
2
|
+
* OpenTelemetry attribute name constants for AIP and AAP spans.
|
|
3
|
+
*
|
|
4
|
+
* Primary namespace: aip.* and aap.* (vendor-specific).
|
|
5
|
+
* Forward-compat aliases: gen_ai.evaluation.* for future OTel GenAI SIG alignment.
|
|
6
|
+
*/
|
|
7
|
+
// --- AIP Integrity Check Attributes ---
|
|
8
|
+
export const AIP_INTEGRITY_CHECKPOINT_ID = "aip.integrity.checkpoint_id";
|
|
9
|
+
export const AIP_INTEGRITY_VERDICT = "aip.integrity.verdict";
|
|
10
|
+
export const AIP_INTEGRITY_PROCEED = "aip.integrity.proceed";
|
|
11
|
+
export const AIP_INTEGRITY_RECOMMENDED_ACTION = "aip.integrity.recommended_action";
|
|
12
|
+
export const AIP_INTEGRITY_CONCERNS_COUNT = "aip.integrity.concerns_count";
|
|
13
|
+
export const AIP_INTEGRITY_AGENT_ID = "aip.integrity.agent_id";
|
|
14
|
+
export const AIP_INTEGRITY_CARD_ID = "aip.integrity.card_id";
|
|
15
|
+
export const AIP_INTEGRITY_SESSION_ID = "aip.integrity.session_id";
|
|
16
|
+
export const AIP_INTEGRITY_THINKING_HASH = "aip.integrity.thinking_hash";
|
|
17
|
+
export const AIP_INTEGRITY_ANALYSIS_MODEL = "aip.integrity.analysis_model";
|
|
18
|
+
export const AIP_INTEGRITY_ANALYSIS_DURATION_MS = "aip.integrity.analysis_duration_ms";
|
|
19
|
+
export const AIP_INTEGRITY_THINKING_TOKENS = "aip.integrity.thinking_tokens";
|
|
20
|
+
export const AIP_INTEGRITY_TRUNCATED = "aip.integrity.truncated";
|
|
21
|
+
export const AIP_INTEGRITY_EXTRACTION_CONFIDENCE = "aip.integrity.extraction_confidence";
|
|
22
|
+
// --- AIP Conscience Attributes ---
|
|
23
|
+
export const AIP_CONSCIENCE_CONSULTATION_DEPTH = "aip.conscience.consultation_depth";
|
|
24
|
+
export const AIP_CONSCIENCE_VALUES_CHECKED_COUNT = "aip.conscience.values_checked_count";
|
|
25
|
+
export const AIP_CONSCIENCE_CONFLICTS_COUNT = "aip.conscience.conflicts_count";
|
|
26
|
+
// --- AIP Window Attributes ---
|
|
27
|
+
export const AIP_WINDOW_SIZE = "aip.window.size";
|
|
28
|
+
export const AIP_WINDOW_INTEGRITY_RATIO = "aip.window.integrity_ratio";
|
|
29
|
+
export const AIP_WINDOW_DRIFT_ALERT_ACTIVE = "aip.window.drift_alert_active";
|
|
30
|
+
// --- GenAI SIG Forward-Compat Aliases ---
|
|
31
|
+
export const GEN_AI_EVALUATION_VERDICT = "gen_ai.evaluation.verdict";
|
|
32
|
+
export const GEN_AI_EVALUATION_SCORE = "gen_ai.evaluation.score";
|
|
33
|
+
// --- AAP Verification Attributes ---
|
|
34
|
+
export const AAP_VERIFICATION_RESULT = "aap.verification.result";
|
|
35
|
+
export const AAP_VERIFICATION_SIMILARITY_SCORE = "aap.verification.similarity_score";
|
|
36
|
+
export const AAP_VERIFICATION_VIOLATIONS_COUNT = "aap.verification.violations_count";
|
|
37
|
+
export const AAP_VERIFICATION_WARNINGS_COUNT = "aap.verification.warnings_count";
|
|
38
|
+
export const AAP_VERIFICATION_TRACE_ID = "aap.verification.trace_id";
|
|
39
|
+
export const AAP_VERIFICATION_CARD_ID = "aap.verification.card_id";
|
|
40
|
+
export const AAP_VERIFICATION_DURATION_MS = "aap.verification.duration_ms";
|
|
41
|
+
export const AAP_VERIFICATION_CHECKS_PERFORMED = "aap.verification.checks_performed";
|
|
42
|
+
// --- AAP Coherence Attributes ---
|
|
43
|
+
export const AAP_COHERENCE_COMPATIBLE = "aap.coherence.compatible";
|
|
44
|
+
export const AAP_COHERENCE_SCORE = "aap.coherence.score";
|
|
45
|
+
export const AAP_COHERENCE_PROCEED = "aap.coherence.proceed";
|
|
46
|
+
export const AAP_COHERENCE_MATCHED_COUNT = "aap.coherence.matched_count";
|
|
47
|
+
export const AAP_COHERENCE_CONFLICT_COUNT = "aap.coherence.conflict_count";
|
|
48
|
+
// --- AAP Drift Detection Attributes ---
|
|
49
|
+
export const AAP_DRIFT_ALERTS_COUNT = "aap.drift.alerts_count";
|
|
50
|
+
export const AAP_DRIFT_TRACES_ANALYZED = "aap.drift.traces_analyzed";
|
|
51
|
+
// --- AIP Drift Alert Attributes (for events) ---
|
|
52
|
+
export const AIP_DRIFT_ALERT_ID = "aip.drift.alert_id";
|
|
53
|
+
export const AIP_DRIFT_AGENT_ID = "aip.drift.agent_id";
|
|
54
|
+
export const AIP_DRIFT_SESSION_ID = "aip.drift.session_id";
|
|
55
|
+
export const AIP_DRIFT_INTEGRITY_SIMILARITY = "aip.drift.integrity_similarity";
|
|
56
|
+
export const AIP_DRIFT_SUSTAINED_CHECKS = "aip.drift.sustained_checks";
|
|
57
|
+
export const AIP_DRIFT_SEVERITY = "aip.drift.severity";
|
|
58
|
+
export const AIP_DRIFT_DIRECTION = "aip.drift.drift_direction";
|
|
59
|
+
export const AIP_DRIFT_MESSAGE = "aip.drift.message";
|
|
60
|
+
// --- Span Names ---
|
|
61
|
+
export const SPAN_AIP_INTEGRITY_CHECK = "aip.integrity_check";
|
|
62
|
+
export const SPAN_AAP_VERIFY_TRACE = "aap.verify_trace";
|
|
63
|
+
export const SPAN_AAP_CHECK_COHERENCE = "aap.check_coherence";
|
|
64
|
+
export const SPAN_AAP_DETECT_DRIFT = "aap.detect_drift";
|
|
65
|
+
// --- Event Names ---
|
|
66
|
+
export const EVENT_AIP_CONCERN = "aip.concern";
|
|
67
|
+
export const EVENT_AIP_DRIFT_ALERT = "aip.drift_alert";
|
|
68
|
+
export const EVENT_AAP_VIOLATION = "aap.violation";
|
|
69
|
+
export const EVENT_AAP_DRIFT_ALERT = "aap.drift_alert";
|
|
70
|
+
// --- Metric Names ---
|
|
71
|
+
export const METRIC_AIP_INTEGRITY_CHECKS_TOTAL = "aip.integrity_checks.total";
|
|
72
|
+
export const METRIC_AIP_INTEGRITY_CHECKS_BY_VERDICT = "aip.integrity_checks.by_verdict";
|
|
73
|
+
export const METRIC_AIP_CONCERNS_TOTAL = "aip.concerns.total";
|
|
74
|
+
export const METRIC_AIP_ANALYSIS_DURATION = "aip.analysis.duration_ms";
|
|
75
|
+
export const METRIC_AIP_WINDOW_INTEGRITY_RATIO = "aip.window.integrity_ratio";
|
|
76
|
+
export const METRIC_AIP_DRIFT_ALERTS_TOTAL = "aip.drift_alerts.total";
|
|
77
|
+
export const METRIC_AAP_VERIFICATIONS_TOTAL = "aap.verifications.total";
|
|
78
|
+
export const METRIC_AAP_VIOLATIONS_TOTAL = "aap.violations.total";
|
|
79
|
+
export const METRIC_AAP_VERIFICATION_DURATION = "aap.verification.duration_ms";
|
|
80
|
+
export const METRIC_AAP_COHERENCE_SCORE = "aap.coherence.score";
|
|
81
|
+
//# sourceMappingURL=attributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attributes.js","sourceRoot":"","sources":["../src/attributes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,yCAAyC;AAEzC,MAAM,CAAC,MAAM,2BAA2B,GAAG,6BAA6B,CAAC;AACzE,MAAM,CAAC,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AAC7D,MAAM,CAAC,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AAC7D,MAAM,CAAC,MAAM,gCAAgC,GAC3C,kCAAkC,CAAC;AACrC,MAAM,CAAC,MAAM,4BAA4B,GAAG,8BAA8B,CAAC;AAC3E,MAAM,CAAC,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;AAC/D,MAAM,CAAC,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AAC7D,MAAM,CAAC,MAAM,wBAAwB,GAAG,0BAA0B,CAAC;AACnE,MAAM,CAAC,MAAM,2BAA2B,GAAG,6BAA6B,CAAC;AACzE,MAAM,CAAC,MAAM,4BAA4B,GAAG,8BAA8B,CAAC;AAC3E,MAAM,CAAC,MAAM,kCAAkC,GAC7C,oCAAoC,CAAC;AACvC,MAAM,CAAC,MAAM,6BAA6B,GAAG,+BAA+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C,MAAM,CAAC,MAAM,yBAAyB,GAAG,oBAAoB,CAAC;AAC9D,MAAM,CAAC,MAAM,4BAA4B,GAAG,0BAA0B,CAAC;AACvE,MAAM,CAAC,MAAM,iCAAiC,GAC5C,4BAA4B,CAAC;AAC/B,MAAM,CAAC,MAAM,6BAA6B,GAAG,wBAAwB,CAAC;AACtE,MAAM,CAAC,MAAM,8BAA8B,GAAG,yBAAyB,CAAC;AACxE,MAAM,CAAC,MAAM,2BAA2B,GAAG,sBAAsB,CAAC;AAClE,MAAM,CAAC,MAAM,gCAAgC,GAC3C,8BAA8B,CAAC;AACjC,MAAM,CAAC,MAAM,0BAA0B,GAAG,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-instrumentation for AAP verification functions.
|
|
3
|
+
*
|
|
4
|
+
* Wraps verifyTrace, checkCoherence, and detectDrift exports to
|
|
5
|
+
* automatically record OTel spans. Node.js only.
|
|
6
|
+
*/
|
|
7
|
+
import { type Tracer } from "@opentelemetry/api";
|
|
8
|
+
/**
|
|
9
|
+
* Instrument AAP verification functions to auto-record spans.
|
|
10
|
+
*
|
|
11
|
+
* Attempts to require `@mnemom/agent-alignment-protocol` and wrap:
|
|
12
|
+
* - verifyTrace → recordVerification
|
|
13
|
+
* - checkCoherence → recordCoherence
|
|
14
|
+
* - detectDrift → recordDrift
|
|
15
|
+
*/
|
|
16
|
+
export declare function instrumentAAP(options?: {
|
|
17
|
+
tracerProvider?: {
|
|
18
|
+
getTracer: (name: string, version?: string) => Tracer;
|
|
19
|
+
};
|
|
20
|
+
}): void;
|
|
21
|
+
/** Remove AAP instrumentation, restoring original functions. */
|
|
22
|
+
export declare function uninstrumentAAP(): void;
|
|
23
|
+
//# sourceMappingURL=aap-instrumentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aap-instrumentation.d.ts","sourceRoot":"","sources":["../../src/auto/aap-instrumentation.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,MAAM,EAAS,MAAM,oBAAoB,CAAC;AAuDxD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE;IACtC,cAAc,CAAC,EAAE;QAAE,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;KAAE,CAAC;CAC5E,GAAG,IAAI,CAyDP;AAED,gEAAgE;AAChE,wBAAgB,eAAe,IAAI,IAAI,CAkBtC"}
|