Simplify live dashboard and warn on memory target [skip ci]
myfileagent-python-ci/pipeline/head This commit looks good
myfileagent-python-ci/pipeline/head This commit looks good
This commit is contained in:
@@ -7,7 +7,9 @@ jobs:
|
||||
runs-on: manual-latex
|
||||
container:
|
||||
image: sha256:9c907055071888835492d1f479d032b522bb05a29300eff1d6beff1e09c40eb3
|
||||
options: --memory=250000000 --memory-swap=250000000 --tmpfs /private-model:rw,size=100000000
|
||||
# The measured workload target remains 250,000,000 bytes; this higher hard
|
||||
# ceiling lets a target overage be reported without killing successful inference.
|
||||
options: --memory=384000000 --memory-swap=384000000 --tmpfs /private-model:rw,size=100000000
|
||||
timeout-minutes: 15
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
@@ -13,5 +13,12 @@ counters after it verifies the successful Actions bundle, and a Prometheus scrap
|
||||
then makes the increase visible. A retry does not double count. Fixture values
|
||||
and missing token counts cannot masquerade as live measurements.
|
||||
|
||||
The two flat last-run token graphs have been removed. The memory, duration and
|
||||
availability measurements are latest-run status cards. The complete workload
|
||||
still has a 250,000,000-byte target, but Actions now has a 384,000,000-byte
|
||||
hard ceiling with no swap. A measured target overage warns and continues if
|
||||
the real model succeeds; a true OOM or model error fails safely. Prior run 43
|
||||
hit its old cap, so its natural uncapped memory peak is unknown.
|
||||
|
||||
Source notes: handoff/member1/demo-refresh.md. Historical Member 1 work:
|
||||
HANDOFF.txt. No rehearsal has been executed by this implementation update.
|
||||
|
||||
+8
-1
@@ -320,10 +320,17 @@ def metrics(review, output, completed_at):
|
||||
rows += [f'review_duration_seconds{{mode="live"}} {elapsed}']
|
||||
resource = data.get('resource_measurement', {})
|
||||
for field, metric in [('memory_peak_bytes', 'review_job_memory_peak_bytes'),
|
||||
('memory_limit_bytes', 'review_job_memory_limit_bytes')]:
|
||||
('memory_limit_bytes', 'review_job_memory_limit_bytes'),
|
||||
('memory_target_bytes', 'review_job_memory_target_bytes')]:
|
||||
value = resource.get(field)
|
||||
if type(value) is int and value > 0:
|
||||
rows += [f'{metric}{{mode="live"}} {value}']
|
||||
exceeded = resource.get('memory_target_exceeded')
|
||||
if type(exceeded) is bool:
|
||||
peak, target = resource.get('memory_peak_bytes'), resource.get('memory_target_bytes')
|
||||
if type(peak) is not int or type(target) is not int or exceeded != (peak > target):
|
||||
raise ValueError('Memory target warning disagrees with measured peak')
|
||||
rows += [f'review_job_memory_target_exceeded{{mode="live"}} {int(exceeded)}']
|
||||
if not re.fullmatch('[0-9]+', str(completed_at)):
|
||||
raise ValueError('Completion timestamp must be measured epoch seconds')
|
||||
rows += [f'review_completed_timestamp_seconds{{mode="live"}} {completed_at}']
|
||||
|
||||
+12
-3
@@ -13,7 +13,10 @@ lock = json.loads(lock_bytes)
|
||||
runtime = root/'out/runtime'
|
||||
cgroup = Path('/sys/fs/cgroup')
|
||||
limit = int((cgroup/'memory.max').read_text())
|
||||
assert 250000000 - os.sysconf('SC_PAGE_SIZE') < limit <= 250000000, 'Actual Actions container must have the page-rounded 250 MB limit'
|
||||
hard_ceiling = 384000000
|
||||
target = lock['memory_target_bytes']
|
||||
assert target == 250000000, 'Model lock must preserve the agreed memory target'
|
||||
assert hard_ceiling - os.sysconf('SC_PAGE_SIZE') < limit <= hard_ceiling, 'Actual Actions container must have the page-rounded hard ceiling'
|
||||
assert (cgroup/'memory.swap.max').read_text().strip() == '0', 'Swap must be disabled'
|
||||
assert not os.environ.get('REVIEWER_BACKEND_COMMAND'), 'Fixture override is forbidden'
|
||||
private = Path('/private-model')/lock['quantized_filename']
|
||||
@@ -29,12 +32,18 @@ result = subprocess.run([sys.executable,'-m','reviewer','--input','demo/demo.py'
|
||||
peak = int((cgroup/'memory.peak').read_text())
|
||||
events = {k:int(v) for k,v in (line.split() for line in (cgroup/'memory.events').read_text().splitlines())}
|
||||
measurement = dict(scope='job cgroup including preparation, reviewer and private tmpfs model',
|
||||
requested_memory_limit_bytes=250000000,memory_limit_bytes=limit,memory_peak_bytes=peak,memory_events=events,
|
||||
requested_memory_limit_bytes=hard_ceiling,memory_limit_bytes=limit,
|
||||
memory_target_bytes=target,memory_target_exceeded=peak > target,
|
||||
memory_peak_bytes=peak,memory_events=events,
|
||||
swap_limit_bytes=0,reviewer_exit_code=result.returncode)
|
||||
Path('out').mkdir(exist_ok=True)
|
||||
Path('out/resource.json').write_text(json.dumps(measurement,indent=2)+'\n')
|
||||
print(json.dumps(measurement))
|
||||
assert result.returncode == 0 and events['oom_kill'] == 0 and peak <= limit, 'Live acceptance gate failed'
|
||||
if peak > target:
|
||||
print(f'WARNING: measured Actions job memory peak {peak} bytes exceeds the {target}-byte project target; continuing under the {limit}-byte hard ceiling', file=sys.stderr)
|
||||
if events.get('max', 0):
|
||||
print(f'WARNING: Actions job encountered {events["max"]} hard-ceiling pressure events; check resource.json for OOM events', file=sys.stderr)
|
||||
assert result.returncode == 0 and events['oom_kill'] == 0 and peak <= limit, 'Live model or hard memory ceiling failed'
|
||||
p=Path('out/review/review.json');data=json.loads(p.read_text())
|
||||
assert data['mode']=='live' and data['status']=='corrected'
|
||||
data['resource_measurement']=measurement
|
||||
|
||||
@@ -145,13 +145,20 @@ class PipelineTests(unittest.TestCase):
|
||||
def test_measured_live_metric_fields(self):
|
||||
data=json.loads((self.review/'review.json').read_text())
|
||||
data.update(mode='live',model_id='real-model',finished_at='2026-11-27T00:00:00Z',elapsed_seconds=2.5,
|
||||
resource_measurement={'memory_peak_bytes':240000000,'memory_limit_bytes':250000000})
|
||||
resource_measurement={'memory_peak_bytes':260000000,'memory_limit_bytes':384000000,
|
||||
'memory_target_bytes':250000000,'memory_target_exceeded':True})
|
||||
(self.review/'review.json').write_text(json.dumps(data))
|
||||
metrics(self.review/'review.json',self.root/'metrics.prom',None)
|
||||
text=(self.root/'metrics.prom').read_text()
|
||||
self.assertIn('review_duration_seconds{mode="live"} 2.5',text)
|
||||
self.assertIn('review_job_memory_peak_bytes{mode="live"} 240000000',text)
|
||||
self.assertIn('review_job_memory_peak_bytes{mode="live"} 260000000',text)
|
||||
self.assertIn('review_job_memory_target_bytes{mode="live"} 250000000',text)
|
||||
self.assertIn('review_job_memory_target_exceeded{mode="live"} 1',text)
|
||||
self.assertIn('review_completed_timestamp_seconds{mode="live"} 1795737600',text)
|
||||
data['resource_measurement']['memory_target_exceeded']=False
|
||||
(self.review/'review.json').write_text(json.dumps(data))
|
||||
with self.assertRaisesRegex(ValueError,'Memory target warning'):
|
||||
metrics(self.review/'review.json',self.root/'bad-metrics.prom',None)
|
||||
|
||||
|
||||
if __name__=='__main__':unittest.main()
|
||||
|
||||
@@ -11,3 +11,7 @@ short versioned demo PDF, tests the reviewed program, and packages the release.
|
||||
The dashboard's cumulative live token panels update after Jenkins verifies and
|
||||
publishes the measured review metrics. The prepared baseline uses `[skip ci]`
|
||||
so the live inference and counter change happen during the rehearsal.
|
||||
|
||||
The complete workload's 250,000,000-byte memory target is a measured warning
|
||||
threshold. Actions has a 384,000,000-byte hard ceiling with swap disabled; a
|
||||
target overage is retained in the review evidence while a successful run continues.
|
||||
|
||||
@@ -65,6 +65,9 @@ def main():
|
||||
"OutputTokens": review.get("output_tokens") if review.get("output_tokens") is not None else "unknown",
|
||||
"ElapsedSeconds": review.get("elapsed_seconds", "unknown"),
|
||||
"MemoryPeak": resource.get("memory_peak_bytes", "unknown"),
|
||||
"MemoryTarget": resource.get("memory_target_bytes", "250000000 (contract; old bundle)"),
|
||||
"MemoryTargetStatus": ("exceeded; warning" if resource.get("memory_target_exceeded") is True
|
||||
else "met" if resource.get("memory_target_exceeded") is False else "not recorded"),
|
||||
"MemoryLimit": resource.get("memory_limit_bytes", "unknown"),
|
||||
"OOMKills": (resource.get("memory_events") or {}).get("oom_kill", "unknown"),
|
||||
"ReviewHash": digest(files["review.json"]), "ReviewedHash": digest(files["reviewed.py"]),
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
\textbf{Review status:} \ReviewStatus\\
|
||||
\textbf{Measured tokens:} \InputTokens\ input / \OutputTokens\ output\quad
|
||||
\textbf{Elapsed:} \ElapsedSeconds\ seconds\\
|
||||
\textbf{Complete Actions-job memory:} \MemoryPeak\ bytes peak / \MemoryLimit\ bytes limit; OOM kills: \OOMKills.
|
||||
\textbf{Complete Actions-job memory:} \MemoryPeak\ bytes peak; target: \MemoryTarget\ bytes (\MemoryTargetStatus); hard ceiling: \MemoryLimit\ bytes; OOM kills: \OOMKills.
|
||||
|
||||
\section*{The committed input}
|
||||
The source at the commit above has one missing closing parenthesis. The reviewer preserves it and writes a separate reviewed file.
|
||||
|
||||
@@ -12,9 +12,13 @@ Jenkins reserves a durable version before the metrics/PDF/test stages and passes
|
||||
|
||||
## Grafana token behavior
|
||||
|
||||
`ci/publish_live_metrics.py` updates `/home/codex/ssw590-final-metrics/final-project.prom` only after Jenkins verifies a live Actions bundle. It retains the existing last-run gauges and adds `review_input_tokens_total` and `review_output_tokens_total`, cumulative counters since activation. A ledger keyed by source SHA/run ID/attempt makes a Jenkins retry idempotent. Null token counts add nothing; fixture counts are refused. The dashboard adds two top panels for those counters. Baseline was initialized to actual zero since activation, while prior last-run gauges remain 23/5 from earlier evidence. Grafana does not receive a token increment at inference start: the increase follows Jenkins verification and a Prometheus scrape. Cumulative counters are for demonstration of a new event; the exact run's token counts remain in `review.json`.
|
||||
`ci/publish_live_metrics.py` updates `/home/codex/ssw590-final-metrics/final-project.prom` only after Jenkins verifies a live Actions bundle. It retains the underlying last-run gauges and adds `review_input_tokens_total` and `review_output_tokens_total`, cumulative counters since activation. A ledger keyed by source SHA/run ID/attempt makes a Jenkins retry idempotent. Null token counts add nothing; fixture counts are refused. The dashboard shows the cumulative panels and removes the two flat last-run token graphs. Baseline was initialized to actual zero since activation, while the underlying prior last-run gauges remain 23/5 as historical evidence. Grafana does not receive a token increment at inference start: the increase follows Jenkins verification and a Prometheus scrape. Cumulative counters are for demonstration of a new event; the exact run's token counts remain in `review.json`.
|
||||
|
||||
The provisioned dashboard copy is `/home/codex/myfileagent-gitea/assignment7-monitoring/monitoring/grafana/provisioning/dashboards/json/final-project.json`. The new source dashboard and provisioned copy had matching SHA-256 `36c06ab418db400b913f01d642b3e594dcc7faed9c13592727fea5a564e18554` at deployment. The textfile collector was checked at `node_textfile_scrape_error 0`; Prometheus returned a live input cumulative sample of 0 before the rehearsal. Grafana's authenticated API rejected programmatic access with HTTP 401, so final visual confirmation should be done in the user's signed-in dashboard. No fabricated live token counts were published.
|
||||
The provisioned dashboard copy is `/home/codex/myfileagent-gitea/assignment7-monitoring/monitoring/grafana/provisioning/dashboards/json/final-project.json`. Grafana's v13 resource store was checked directly: it contains the two cumulative token charts, host CPU/memory charts, and latest-run status cards; the two flat token charts are absent. The former flat memory peak/limit graph is now separate latest-run peak, warning-status, and hard-ceiling cards. Before the next review, the target-status card correctly has no sample because prior runs did not record that field. The textfile collector was checked at `node_textfile_scrape_error 0`; Prometheus returned a live input cumulative sample of 0 before the rehearsal. Grafana's authenticated API rejected programmatic access with HTTP 401, so final visual confirmation should be done in the user's signed-in dashboard. No fabricated live token counts were published.
|
||||
|
||||
## Memory target and safety ceiling
|
||||
|
||||
The model lock and shared contract still set the complete inference-workload target at **250,000,000 bytes**. The prior actual Actions run peaked exactly at its page-rounded 249,999,360-byte hard cap and recorded 433 `memory.events.max` pressure events but no OOM kill. That is not evidence of the natural uncapped peak. The Actions job now requests a **384,000,000-byte hard ceiling** with swap disabled. Its measured `memory.peak` covers runtime preparation, reviewer, child inference process, and private model tmpfs. If the peak exceeds the 250,000,000-byte target, `resource.json`, the review bundle, the short PDF and the Actions log retain an explicit warning while a successful model run continues. If the hard ceiling produces a real OOM kill, or the model fails, no ready bundle is published. Docker cannot turn an actual hard-cap OOM into a harmless warning after the process is killed. The latest-run Grafana cards are a display of recorded values, not a fabricated live process trace.
|
||||
|
||||
## Rehearsal preparation
|
||||
|
||||
@@ -22,4 +26,4 @@ The integration branch is prepared with a valid `demo/demo.py` containing exactl
|
||||
|
||||
## Local verification and limits
|
||||
|
||||
In the pinned compiler/runtime image `sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1`, the updated CI suite passed 24 tests and the reviewer/application suite passed 19. The four affected metrics tests passed after the collector-readable file-mode fix. The new short PDF compiled from a saved real review bundle with `pdflatex -no-shell-escape` as a one-page offline preview. This change did not rerun the real model, reserve a new live version, execute the full Jenkins job, or prove the future rehearsal succeeds. Save the Actions/Jenkins/Grafana screenshots and new review bundle during that user-led run.
|
||||
In the pinned compiler/runtime image `sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1`, the updated CI suite passed 24 tests and the reviewer/application suite passed 19 before the memory display adjustment. The affected pipeline/metrics suites then passed 15 and 4 tests. Docker reported the requested 384,000,000-byte cgroup ceiling and zero swap. The modified short PDF compiled from a saved real review bundle with `pdflatex -no-shell-escape` as a one-page offline preview. This change did not rerun the real model, reserve a new live version, execute the full Jenkins job, or prove the future rehearsal succeeds. Save the Actions/Jenkins/Grafana screenshots and new review bundle during that user-led run.
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"title": "SSW590 final project — live evidence",
|
||||
"title": "SSW590 final project \u2014 live evidence",
|
||||
"uid": "ssw590-final-project",
|
||||
"schemaVersion": 39,
|
||||
"version": 2,
|
||||
"version": 3,
|
||||
"timezone": "America/New_York",
|
||||
"refresh": "30s",
|
||||
"time": {
|
||||
@@ -66,67 +66,13 @@
|
||||
"overrides": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Live input tokens",
|
||||
"type": "timeseries",
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 8,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "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": 8,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "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": 16,
|
||||
"y": 8,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
@@ -153,7 +99,7 @@
|
||||
"type": "timeseries",
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 16,
|
||||
"y": 8,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
@@ -175,14 +121,151 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"title": "Token count availability",
|
||||
"type": "timeseries",
|
||||
"id": 6,
|
||||
"title": "Time since latest live review",
|
||||
"type": "stat",
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 24,
|
||||
"y": 16,
|
||||
"w": 6,
|
||||
"h": 5
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "time() - review_completed_timestamp_seconds{mode=\"live\"}",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "s"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"reduceOptions": {
|
||||
"values": false,
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": ""
|
||||
},
|
||||
"orientation": "auto",
|
||||
"textMode": "auto",
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "auto"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"title": "Latest measured review duration",
|
||||
"type": "stat",
|
||||
"gridPos": {
|
||||
"x": 6,
|
||||
"y": 16,
|
||||
"w": 6,
|
||||
"h": 5
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "review_duration_seconds{mode=\"live\"}",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "s"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"reduceOptions": {
|
||||
"values": false,
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": ""
|
||||
},
|
||||
"orientation": "auto",
|
||||
"textMode": "auto",
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "auto"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"title": "Latest Actions job memory peak",
|
||||
"type": "stat",
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 16,
|
||||
"w": 6,
|
||||
"h": 5
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "review_job_memory_peak_bytes{mode=\"live\"}",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "bytes",
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "red",
|
||||
"value": 250000000
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"reduceOptions": {
|
||||
"values": false,
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": ""
|
||||
},
|
||||
"orientation": "auto",
|
||||
"textMode": "auto",
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "auto"
|
||||
},
|
||||
"description": "Complete Actions workload, including runtime preparation, reviewer and private model. The previous 250 MB capped run hit its limit; its natural peak is unknown. New runs use a 250,000,000-byte warning target and 384,000,000-byte hard ceiling."
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"title": "Latest token count availability",
|
||||
"type": "stat",
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 21,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
"h": 5
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
@@ -205,17 +288,32 @@
|
||||
"unit": "short"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"reduceOptions": {
|
||||
"values": false,
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": ""
|
||||
},
|
||||
"orientation": "auto",
|
||||
"textMode": "auto",
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "auto"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"title": "Seconds since review completed",
|
||||
"type": "timeseries",
|
||||
"id": 11,
|
||||
"title": "Memory target result (latest review)",
|
||||
"description": "The 250,000,000-byte complete-workload target is a warning threshold. A value of 1 means this run exceeded it but a successful model review may continue. No sample is shown until a new measured run publishes this field.",
|
||||
"type": "stat",
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 24,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
"x": 18,
|
||||
"y": 16,
|
||||
"w": 6,
|
||||
"h": 5
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
@@ -223,66 +321,78 @@
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "time() - review_completed_timestamp_seconds{mode=\"live\"}",
|
||||
"expr": "review_job_memory_target_exceeded{mode=\"live\"}",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "s"
|
||||
"unit": "none",
|
||||
"mappings": [
|
||||
{
|
||||
"type": "value",
|
||||
"options": {
|
||||
"0": {
|
||||
"text": "Within target",
|
||||
"color": "green"
|
||||
},
|
||||
"overrides": []
|
||||
"1": {
|
||||
"text": "Over target",
|
||||
"color": "red"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"title": "Measured review duration",
|
||||
"type": "timeseries",
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 32,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "review_duration_seconds{mode=\"live\"}",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "s"
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "red",
|
||||
"value": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"reduceOptions": {
|
||||
"values": false,
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": ""
|
||||
},
|
||||
"orientation": "auto",
|
||||
"textMode": "auto",
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "auto"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"title": "Actual Actions job memory peak and limit",
|
||||
"type": "timeseries",
|
||||
"id": 12,
|
||||
"title": "Actions hard memory ceiling (latest review)",
|
||||
"description": "Safety ceiling enforced by Docker. The previous run used about 250 MB; new runs request 384,000,000 bytes with swap disabled. An actual OOM or failed model still fails the review.",
|
||||
"type": "stat",
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 32,
|
||||
"y": 21,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
"h": 5
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "review_job_memory_peak_bytes{mode=\"live\"}",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "review_job_memory_limit_bytes{mode=\"live\"}",
|
||||
"refId": "B"
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
@@ -290,10 +400,25 @@
|
||||
"unit": "bytes"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"reduceOptions": {
|
||||
"values": false,
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": ""
|
||||
},
|
||||
"orientation": "auto",
|
||||
"textMode": "auto",
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "auto"
|
||||
}
|
||||
}
|
||||
],
|
||||
"annotations": {
|
||||
"list": []
|
||||
}
|
||||
},
|
||||
"description": "Cumulative measured tokens show the live review event; latest-run stat panels show memory and duration without drawing flat history lines. The 250 MB workload target warns; the Actions hard ceiling is 384 MB."
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"title": "SSW590 final project — live evidence",
|
||||
"title": "SSW590 final project \u2014 live evidence",
|
||||
"uid": "ssw590-final-project",
|
||||
"schemaVersion": 39,
|
||||
"version": 2,
|
||||
"version": 3,
|
||||
"timezone": "America/New_York",
|
||||
"refresh": "30s",
|
||||
"time": {
|
||||
@@ -66,67 +66,13 @@
|
||||
"overrides": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Live input tokens",
|
||||
"type": "timeseries",
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 8,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "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": 8,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "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": 16,
|
||||
"y": 8,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
@@ -153,7 +99,7 @@
|
||||
"type": "timeseries",
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 16,
|
||||
"y": 8,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
@@ -175,14 +121,151 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"title": "Token count availability",
|
||||
"type": "timeseries",
|
||||
"id": 6,
|
||||
"title": "Time since latest live review",
|
||||
"type": "stat",
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 24,
|
||||
"y": 16,
|
||||
"w": 6,
|
||||
"h": 5
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "time() - review_completed_timestamp_seconds{mode=\"live\"}",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "s"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"reduceOptions": {
|
||||
"values": false,
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": ""
|
||||
},
|
||||
"orientation": "auto",
|
||||
"textMode": "auto",
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "auto"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"title": "Latest measured review duration",
|
||||
"type": "stat",
|
||||
"gridPos": {
|
||||
"x": 6,
|
||||
"y": 16,
|
||||
"w": 6,
|
||||
"h": 5
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "review_duration_seconds{mode=\"live\"}",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "s"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"reduceOptions": {
|
||||
"values": false,
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": ""
|
||||
},
|
||||
"orientation": "auto",
|
||||
"textMode": "auto",
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "auto"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"title": "Latest Actions job memory peak",
|
||||
"type": "stat",
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 16,
|
||||
"w": 6,
|
||||
"h": 5
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "review_job_memory_peak_bytes{mode=\"live\"}",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "bytes",
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "red",
|
||||
"value": 250000000
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"reduceOptions": {
|
||||
"values": false,
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": ""
|
||||
},
|
||||
"orientation": "auto",
|
||||
"textMode": "auto",
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "auto"
|
||||
},
|
||||
"description": "Complete Actions workload, including runtime preparation, reviewer and private model. The previous 250 MB capped run hit its limit; its natural peak is unknown. New runs use a 250,000,000-byte warning target and 384,000,000-byte hard ceiling."
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"title": "Latest token count availability",
|
||||
"type": "stat",
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 21,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
"h": 5
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
@@ -205,17 +288,32 @@
|
||||
"unit": "short"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"reduceOptions": {
|
||||
"values": false,
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": ""
|
||||
},
|
||||
"orientation": "auto",
|
||||
"textMode": "auto",
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "auto"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"title": "Seconds since review completed",
|
||||
"type": "timeseries",
|
||||
"id": 11,
|
||||
"title": "Memory target result (latest review)",
|
||||
"description": "The 250,000,000-byte complete-workload target is a warning threshold. A value of 1 means this run exceeded it but a successful model review may continue. No sample is shown until a new measured run publishes this field.",
|
||||
"type": "stat",
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 24,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
"x": 18,
|
||||
"y": 16,
|
||||
"w": 6,
|
||||
"h": 5
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
@@ -223,66 +321,78 @@
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "time() - review_completed_timestamp_seconds{mode=\"live\"}",
|
||||
"expr": "review_job_memory_target_exceeded{mode=\"live\"}",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "s"
|
||||
"unit": "none",
|
||||
"mappings": [
|
||||
{
|
||||
"type": "value",
|
||||
"options": {
|
||||
"0": {
|
||||
"text": "Within target",
|
||||
"color": "green"
|
||||
},
|
||||
"overrides": []
|
||||
"1": {
|
||||
"text": "Over target",
|
||||
"color": "red"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"title": "Measured review duration",
|
||||
"type": "timeseries",
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 32,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "review_duration_seconds{mode=\"live\"}",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "s"
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "red",
|
||||
"value": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"reduceOptions": {
|
||||
"values": false,
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": ""
|
||||
},
|
||||
"orientation": "auto",
|
||||
"textMode": "auto",
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "auto"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"title": "Actual Actions job memory peak and limit",
|
||||
"type": "timeseries",
|
||||
"id": 12,
|
||||
"title": "Actions hard memory ceiling (latest review)",
|
||||
"description": "Safety ceiling enforced by Docker. The previous run used about 250 MB; new runs request 384,000,000 bytes with swap disabled. An actual OOM or failed model still fails the review.",
|
||||
"type": "stat",
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 32,
|
||||
"y": 21,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
"h": 5
|
||||
},
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"expr": "review_job_memory_peak_bytes{mode=\"live\"}",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "review_job_memory_limit_bytes{mode=\"live\"}",
|
||||
"refId": "B"
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
@@ -290,10 +400,25 @@
|
||||
"unit": "bytes"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"reduceOptions": {
|
||||
"values": false,
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": ""
|
||||
},
|
||||
"orientation": "auto",
|
||||
"textMode": "auto",
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "auto"
|
||||
}
|
||||
}
|
||||
],
|
||||
"annotations": {
|
||||
"list": []
|
||||
}
|
||||
},
|
||||
"description": "Cumulative measured tokens show the live review event; latest-run stat panels show memory and duration without drawing flat history lines. The 250 MB workload target warns; the Actions hard ceiling is 384 MB."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user