Verify immutable release gates and document fixture handoff
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
Final-project monitoring integration — prepared, not deployed
|
||||
|
||||
Use Member 1's measured live review metadata only. The metric adapter is:
|
||||
python3 ci/final_project.py metrics --review-dir VERIFIED_LIVE_DIRECTORY \
|
||||
--completed-at MEASURED_COMPLETION_EPOCH --output DIRECTORY/final-project.prom
|
||||
|
||||
Coordinate a dedicated host directory and readonly mount into Node Exporter.
|
||||
Enable --collector.textfile and --collector.textfile.directory=/textfiles
|
||||
in addition to the existing cpu, meminfo and filesystem collectors. Do not
|
||||
replace the existing deployment Compose file with an unverified template.
|
||||
The job's Actions container currently has no host-volume access. Use the
|
||||
trusted integration step to transfer validated metrics to that host directory.
|
||||
|
||||
Validate with Node Exporter target health and node_textfile_scrape_error == 0.
|
||||
Retain last-run gauges through at least two 30-second scrapes. Unknown counts
|
||||
are omitted and explicitly represented by *_available == 0. Do not substitute
|
||||
zero tokens for an unknown count. Refresh/remove stale samples intentionally.
|
||||
|
||||
Import/provision dashboard.json after review. Keep existing dashboard copies
|
||||
in sync where the existing monitoring deployment requires it. Add annotations
|
||||
for source SHA, Actions run/attempt and Jenkins build; use a fixed window.
|
||||
Fixture metrics must not populate the live panels. Shared-host CPU includes
|
||||
Zammad, pricing and other services. Record baseline and after observations;
|
||||
do not manufacture load or claim per-model RSS from host available memory.
|
||||
@@ -0,0 +1,189 @@
|
||||
{
|
||||
"title": "SSW590 final project \u2014 live evidence",
|
||||
"uid": "ssw590-final-project",
|
||||
"schemaVersion": 39,
|
||||
"version": 1,
|
||||
"timezone": "America/New_York",
|
||||
"refresh": "30s",
|
||||
"time": {
|
||||
"from": "now-15m",
|
||||
"to": "now"
|
||||
},
|
||||
"panels": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Live input tokens",
|
||||
"type": "timeseries",
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "${DS_PROMETHEUS}"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "review_input_tokens{mode=\"live\"}",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "short"
|
||||
},
|
||||
"overrides": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "Live output tokens",
|
||||
"type": "timeseries",
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 0,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "${DS_PROMETHEUS}"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "review_output_tokens{mode=\"live\"}",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "short"
|
||||
},
|
||||
"overrides": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "Host CPU",
|
||||
"type": "timeseries",
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 8,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "${DS_PROMETHEUS}"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "100 * (1 - avg by(instance) (rate(node_cpu_seconds_total{mode=\"idle\"}[2m])))",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "percent"
|
||||
},
|
||||
"overrides": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"title": "Available host memory",
|
||||
"type": "timeseries",
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 8,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "${DS_PROMETHEUS}"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "node_memory_MemAvailable_bytes{job=\"node\"}",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "bytes"
|
||||
},
|
||||
"overrides": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"title": "Token count availability",
|
||||
"type": "timeseries",
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 16,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "${DS_PROMETHEUS}"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "review_input_tokens_available{mode=\"live\"} or review_output_tokens_available{mode=\"live\"}",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "short"
|
||||
},
|
||||
"overrides": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"title": "Seconds since review completed",
|
||||
"type": "timeseries",
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 16,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "${DS_PROMETHEUS}"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "time() - review_completed_timestamp_seconds{mode=\"live\"}",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "s"
|
||||
},
|
||||
"overrides": []
|
||||
}
|
||||
}
|
||||
],
|
||||
"templating": {
|
||||
"list": [
|
||||
{
|
||||
"name": "DS_PROMETHEUS",
|
||||
"type": "datasource",
|
||||
"query": "prometheus",
|
||||
"label": "Prometheus"
|
||||
}
|
||||
]
|
||||
},
|
||||
"annotations": {
|
||||
"list": []
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user