Skip to content

Worktree immich 203 - #29

Merged
phonkd merged 2 commits into
mainfrom
worktree-immich-203
Jul 13, 2026
Merged

Worktree immich 203#29
phonkd merged 2 commits into
mainfrom
worktree-immich-203

Conversation

@phonkd

@phonkd phonkd commented Jul 13, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings July 13, 2026 21:41
@phonkd
phonkd merged commit 44c06ee into main Jul 13, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds SMART disk health metrics to the existing observability-sender stack by enabling the smartctl Prometheus exporter and wiring it into the Alloy → Mimir remote_write pipeline.

Changes:

  • Simplifies node_exporter enablement to a direct option assignment.
  • Enables the smartctl Prometheus exporter for SMART disk metrics on observability-sender hosts.
  • Adds an Alloy prometheus.scrape job to actually ingest smartctl exporter metrics into Mimir.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread modules/observability.nix
# node_exporter fail on an unknown --collector.smartctl flag. It only
# yields data on hosts whose disks actually expose SMART; plain virtio
# disks in VMs don't, so expect empty results there.
services.prometheus.exporters.smartctl.enable = true;
Comment thread modules/observability.nix
Comment on lines +524 to +528
prometheus.scrape "smartctl" {
targets = [{"__address__" = "127.0.0.1:9633"}]
job_name = "integrations/smartctl"
forward_to = [prometheus.remote_write.nixvms.receiver]
}
Comment thread modules/observability.nix
Comment on lines +482 to +486
# SMART disk metrics. smartctl is its own exporter (:9633), NOT a
# node_exporter collector — passing it via enabledCollectors makes
# node_exporter fail on an unknown --collector.smartctl flag. It only
# yields data on hosts whose disks actually expose SMART; plain virtio
# disks in VMs don't, so expect empty results there.
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.

2 participants