Skip to content

Initial working version v0.1.0 (Golang) - #1

Merged
spoulson merged 34 commits into
mainfrom
spoulson/initial
Jun 10, 2026
Merged

spoulson merged 34 commits into
mainfrom
spoulson/initial

Conversation

@spoulson

Copy link
Copy Markdown
Owner

No description provided.

spoulson and others added 30 commits May 26, 2026 20:28
ReadFanSpeeds and SetSpeed previously created their own context.Background(),
making them unresponsive to cancellation. Now they accept and use the caller's
context so SIGINT/SIGTERM aborts in-flight IPMI calls immediately.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Decouples suggestion receipt from fan speed application. The apply
block only runs when a sensor has posted a new speed since the last set,
preventing redundant SetSpeed calls from the fan-log ticker or other
non-sensor select cases.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- TempReader now returns map[string]float64 (CPU uses IPMI sensor name,
  GPU uses gpu0/gpu1/... index keys); Poll returns the map alongside
  the rolling aggregate
- Log "sensor temperature" includes latest_temps map and aggregate_temp
- "current fan speed" reverts to one log line per fan (map format was
  unreadable); Percent field removed, RPM and delta remain

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- make install: skip copying frostd.yaml if /etc/frostd.yaml already exists
- make uninstall_clean: runs uninstall then removes /etc/frostd.yaml and
  the log file defined within it

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Rotates /var/log/frostd/frostd.log daily, retains 7 days, uses
copytruncate since frostd holds the log file open without reload support.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- SensorMonitor.Poll now records the max temp across sensor IDs each
  iteration rather than the average
- Add log_format config field ("text" or "json", default "text");
  frostd.yaml sets json for production

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…g reference

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
spoulson and others added 4 commits May 27, 2026 20:46
- Rename frostd_device_* metrics to frostd_sensor_*
- Drop _celsius suffix from temperature metric names
- Rename frostd_actual_fan_speed_rpm to frostd_actual_fan_rpm
- Use "Temp" as GPU sensor key to match IPMI naming convention

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Each sensor ID now maintains its own rolling sample buffer instead of
a single buffer fed by the per-poll maximum. Suggested fan speed is
derived from the max aggregate across all IDs. The Prometheus
frostd_sensor_aggregate_temperature metric gains an "id" label to
expose the individual aggregates.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@spoulson spoulson changed the title Initial working version v0.1.0 Initial working version v0.1.0 (Golang) Jun 10, 2026
@spoulson
spoulson merged commit 6e43d07 into main Jun 10, 2026
2 checks passed
@spoulson
spoulson deleted the spoulson/initial branch June 10, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant