Add measured SmolLM2 syntax reviewer and Member 1 evidence
myfileagent-python-ci/pipeline/head This commit looks good
myfileagent-python-ci/pipeline/head This commit looks good
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
# Proposed final-project metrics and Grafana panels
|
||||
|
||||
**Status:** proposal only. Member 2 owns deployed `monitoring/` changes and must verify the actual scrape/collector configuration. The repository currently scrapes the `node` job every 30 seconds and Node Exporter enables only CPU, meminfo and filesystem collectors. No live review-token panel or textfile collector was deployed by Member 1.
|
||||
|
||||
## Ingestion contract
|
||||
|
||||
After exact bundle identity/hash validation, a trusted host-side step may atomically replace one `.prom` textfile under a dedicated read-only Node Exporter mount. Enable `--collector.textfile` and `--collector.textfile.directory=...` explicitly. Do not mount a writable host path into the Actions job. Retain the completed sample for at least two 30-second scrapes, then verify `up{job="node"} == 1`, `node_textfile_scrape_error == 0`, the sample timestamp and the query result. Keep source SHA/run/build links in an annotation or evidence manifest, never as metric labels.
|
||||
|
||||
| Metric | Type/unit | Meaning |
|
||||
| --- | --- | --- |
|
||||
| `review_input_tokens{mode="live"}` | gauge, tokens | Exact prompt tokens from the pinned runtime. Omit if unknown. |
|
||||
| `review_output_tokens{mode="live"}` | gauge, tokens | Exact generated tokens, including any stop token counted by runtime. Omit if unknown. |
|
||||
| `review_token_counts_available{mode="live"}` | gauge, 0/1 | 1 only when both counters were measured. |
|
||||
| `review_duration_seconds{mode="live"}` | gauge, seconds | `review.json` elapsed time for the last completed run. |
|
||||
| `review_memory_peak_bytes{mode="live"}` | gauge, bytes | Whole review cgroup `memory.peak`; omit if absent. |
|
||||
| `review_memory_limit_bytes{mode="live"}` | gauge, bytes | Actual cgroup hard limit; omit if absent. |
|
||||
| `review_completed_timestamp_seconds{mode="live"}` | gauge, Unix seconds | UTC completion timestamp. |
|
||||
| `review_status_code{mode="live"}` | gauge, 0/2/3 | 0 success, 2 rejected, 3 operational error. |
|
||||
|
||||
Fixture mode is a separate label value and must be filtered out of the final live dashboard. A bypassed valid file should use `mode="bypass"` with absent token gauges and `review_token_counts_available=0`. Do not turn `null` into zero input or output tokens. If a rejected/error run has no model counts, publish availability 0 and status, not a fabricated count.
|
||||
|
||||
## Panels and queries
|
||||
|
||||
- Input tokens: `review_input_tokens{mode="live"}`.
|
||||
- Output tokens: `review_output_tokens{mode="live"}`.
|
||||
- Duration: `review_duration_seconds{mode="live"}`.
|
||||
- Peak versus limit: `review_memory_peak_bytes{mode="live"}` and `review_memory_limit_bytes{mode="live"}`.
|
||||
- Completion freshness: `time() - review_completed_timestamp_seconds{mode="live"}`.
|
||||
- Host CPU: `100 * (1 - avg by(instance) (rate(node_cpu_seconds_total{mode="idle"}[2m])))`.
|
||||
- Host available memory: `node_memory_MemAvailable_bytes{job="node"}`.
|
||||
|
||||
Set dashboard timezone to `America/New_York`; retain UTC machine timestamps. Save a fixed before/during/after time window, raw Prometheus query responses, and screenshots. Annotate review start/end and Jenkins build start/end with SHA and run links. Host CPU/memory include pricing, Zammad and all other workloads; they cannot by themselves establish model-only memory. A two-minute CPU rate smooths a short run, and completed token gauges may appear only after inference ends. No fabricated load spike or fixture count should be shown as live evidence.
|
||||
|
||||
## Read-only host evidence captured by Member 1
|
||||
|
||||
`evidence/prometheus-host-window.json` contains actual range-query responses from the existing Prometheus for **2026-11-27 02:48:00–02:52:31 UTC**, covering the three final real-model trials. At 30-second steps it recorded ten samples each: `up{job="node"}` was 1 throughout; host CPU query values ranged about 52.7–80.2%; host `MemAvailable` ranged 352,559,104–531,513,344 bytes. These are shared-host observations, not a model-only load attribution. No token metric was deployed or scraped; token evidence is in each live `review.json` and runtime response. Member 2 should capture before/during/after Grafana screenshots and the final end-to-end run window after integrating textfile metrics.
|
||||
Reference in New Issue
Block a user