Monitoring

JuiceFS filesystem monitoring metrics and Grafana dashboards

Each JuiceFS instance exposes Prometheus-format metrics on configured port (default 9567).


Monitoring Architecture

JuiceFS Instance (port: 9567)
    ↓ /metrics
VictoriaMetrics (scrape)
    ↓
Grafana Dashboard

Pigsty automatically registers JuiceFS instances to VictoriaMetrics, target file located at:

/infra/targets/juice/<hostname>.yml

Key Metrics

Object Storage Metrics

MetricTypeDescription
juicefs_object_request_durations_histogram_secondshistogramObject storage request latency distribution
juicefs_object_request_data_bytescounterObject storage data transfer volume
juicefs_object_request_errorscounterObject storage request error count

Cache Metrics

MetricTypeDescription
juicefs_blockcache_hitscounterBlock cache hit count
juicefs_blockcache_missescounterBlock cache miss count
juicefs_blockcache_writescounterBlock cache write count
juicefs_blockcache_dropscounterBlock cache drop count
juicefs_blockcache_evictionscounterBlock cache eviction count
juicefs_blockcache_hit_bytescounterCache hit bytes
juicefs_blockcache_miss_bytescounterCache miss bytes

Metadata Metrics

MetricTypeDescription
juicefs_meta_ops_durations_histogram_secondshistogramMetadata operation latency distribution
juicefs_transaction_durations_histogram_secondshistogramTransaction latency distribution
juicefs_transaction_restartcounterTransaction retry count

FUSE Operation Metrics

MetricTypeDescription
juicefs_fuse_ops_durations_histogram_secondshistogramFUSE operation latency distribution
juicefs_fuse_read_size_byteshistogramRead operation size distribution
juicefs_fuse_written_size_byteshistogramWrite operation size distribution

Filesystem Metrics

MetricTypeDescription
juicefs_used_spacegaugeUsed space (bytes)
juicefs_used_inodesgaugeUsed inodes

Common PromQL

Cache Hit Rate

rate(juicefs_blockcache_hits[5m]) /
(rate(juicefs_blockcache_hits[5m]) + rate(juicefs_blockcache_misses[5m]))

Object Storage P99 Latency

histogram_quantile(0.99, rate(juicefs_object_request_durations_histogram_seconds_bucket[5m]))

Metadata Operation P99 Latency

histogram_quantile(0.99, rate(juicefs_meta_ops_durations_histogram_seconds_bucket[5m]))

Read/Write Throughput

# Read throughput
rate(juicefs_blockcache_hit_bytes[5m]) + rate(juicefs_blockcache_miss_bytes[5m])

# Write throughput
rate(juicefs_fuse_written_size_bytes_sum[5m])

Metrics Scrape Config

JuiceFS instance VictoriaMetrics target file format:

# /infra/targets/juice/<hostname>.yml
- labels: { ip: 10.10.10.10, ins: "node-jfs", cls: "jfs" }
  targets: [ 10.10.10.10:9567 ]

To manually re-register:

./juice.yml -l <ip> -t juice_register

Last Modified 2026-01-25: v4.0 batch update (65761a0)