Skip to content

Instantly share code, notes, and snippets.

@varuzhnikov
varuzhnikov / smart_nvme.json
Created July 15, 2025 10:53
SMART NVMe Grafana Dashboard
{
"__inputs": [
{
"name": "DS_PROD-PROMETHEUS",
"label": "prod-prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
@varuzhnikov
varuzhnikov / smartctl_alerts.yaml
Created July 10, 2025 09:03
Alert rules for SMART metrics of NVMe SSD drives for Prometheus.
groups:
- name: smartctl_nvme_alerts
rules:
# Alert if NVMe wear level exceeds 80% (used lifespan)
- alert: NVMEWearLevelHigh
expr: smartctl_device_percentage_used >= 80
for: 10m
labels:
severity: warning
@varuzhnikov
varuzhnikov / prometheus.yml
Created July 8, 2025 11:12
Scrapping SSD SMART metrics snippet for prometheus.yml
- job_name: 'smartctl'
static_configs:
- targets: ['your_ip_is_here:9633']
relabel_configs:
- source_labels: [__address__]
regex: '.*'
target_label: instance
replacement: 'smartctl'
@varuzhnikov
varuzhnikov / smartctl_exporter.service
Created July 8, 2025 09:50
Systemd service for smartctl_exporter
[Unit]
Description=smartctl_exporter for Prometheus
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/smartctl_exporter \
--smartctl.path=/usr/sbin/smartctl \
--smartctl.device=/dev/nvme0n1 \
--smartctl.device=/dev/nvme1n1 \
@varuzhnikov
varuzhnikov / privacy_policy.html
Last active July 31, 2019 15:52
Privacy Policy
<h1>Privacy Policy</h1>
<p>Effective date: July 31, 2019</p>
<p>Fun Essentials ("us", "we", or "our") operates the mobile application (hereinafter referred to as the "Service").</p>
<p>This page informs you of our policies regarding the collection, use and disclosure of personal data when you use our Service and the choices you have associated with that data.</p>