Table of Contents
SeaweedFS uses Prometheus to store the metrics and Grafana to visualize them.
SeaweedFS supports both push and pull metrics.
Push Metrics
SeaweedFS can publish metrics to Prometheus Push Gateway, and the gateway pass along to the Prometheus server.
Master | Volume Server | Filer => Prometheus Push Gateway => Prometheus Server => Grafana
Note: Setting Prometheus, push gateway, and Grafana can be simplified with this https://github.com/evnsio/prom-stack
Configuration
Just add a metrics address to weed master or weed server command line options. If you have multiple masters, please add it to all the master command line options.
weed master -master.metrics.address=<protocol><prometheus_gateway_host_name>:<prometheus_gateway_port>
# example
weed master -master.metrics.address=localhost:9091 # Defaults to http://localhost:9091
weed master -master.metrics.address=https://example.com
weed server -master.metrics.address=<protocol><prometheus_gateway_host_name>:<prometheus_gateway_port>
# example
weed server -master.metrics.address=localhost:9091 # Defaults to http://localhost:9091
weed server -master.metrics.address=https://example.com
The SeaweedFS filer or volume servers will read this metrics configuration from the master, and report the metrics directly to the Prometheus Gateway. Filer and volume servers need to be restarted for the changes to take effect.
Pull Metrics
SeaweedFS can also start with ports accepting Prometheus metrics queries.
weed server -metricsPort=1234
weed master -metricsPort=1235
weed volume -metricsPort=1236
weed filer -metricsPort=1237
Note: All server should be running on different ports for accepting prometheus metrics queries.
And then you can configure your Prometheus to crawl them periodically.
Plugin Worker Metrics
Maintenance workers publish their own metrics when started with a metrics port —
weed worker -metricsPort=9328 for the Go worker, --metrics-port 9328 for the
Rust one (see Lance Maintenance Worker). Both serve /health, /ready and
/metrics on it, so one scrape config covers either.
Pick a port that is free: master 9324, volume 9325, filer 9326 and s3 9327 are the convention, so a worker on the same host wants 9328.
| Metric | Type | Labels |
|---|---|---|
SeaweedFS_worker_build_info |
gauge | worker_id, version |
SeaweedFS_worker_connected |
gauge | 1 while the control stream is up |
SeaweedFS_worker_stream_events_total |
counter | event = connected, closed, failed, shutdown |
SeaweedFS_worker_slots_used / _slots_total |
gauge | lane = detection, execution |
SeaweedFS_worker_detections_total |
counter | job_type, result |
SeaweedFS_worker_detection_seconds |
histogram | job_type |
SeaweedFS_worker_proposals_total |
counter | job_type |
SeaweedFS_worker_objects_seen_total |
counter | job_type |
SeaweedFS_worker_objects_skipped_total |
counter | job_type, reason |
SeaweedFS_worker_jobs_total |
counter | job_type, result |
SeaweedFS_worker_job_seconds |
histogram | job_type |
SeaweedFS_worker_previews_total |
counter | result |
The Lance worker adds what it reclaimed: SeaweedFS_worker_lance_fragments_removed_total,
_lance_rows_indexed_total, _lance_versions_removed_total, _lance_bytes_reclaimed_total.
The pair worth alerting on is objects_seen_total against objects_skipped_total.
A sweep that proposes nothing because there is nothing to do and a sweep that
proposes nothing because it could read nothing produce the same
proposals_total; skips are what tells them apart, and the usual cause is
credentials.
Note
SeaweedFS_admin_workers_connected,SeaweedFS_admin_worker_slotsandSeaweedFS_admin_worker_events_totalare fed by the older maintenance-worker queue, not the plugin system. Plugin workers — Go or Rust — do not appear in them. Use theSeaweedFS_worker_*family above for those.
Dashboard
The dashboard is shared at https://github.com/seaweedfs/seaweedfs/blob/master/other/metrics/grafana_seaweedfs.json
If you modify the dashboard, please share your revisions.
Example Dashboard
Introduction
- Quick Start with weed mini
- Simplest S3 Bucket and User Setup
- Components
- Blob Store Architecture
- Getting Started
- Production Setup
- A typical step‐by‐step example
- Benchmarks
- FAQ
- Applications
API
Configuration
- Replication
- Store file with a Time To Live
- Failover Master Server
- Erasure coding for warm storage
- EC Bitrot Detection
- Server Startup via Systemd
- Environment Variables
Filer
- Filer Setup
- Directories and Files
- File Operations Quick Reference
- Data Structure for Large Files
- Filer Data Encryption
- Filer Commands and Operations
- Filer JWT Use
- TUS Resumable Uploads
Filer Stores
- Filer Cassandra Setup
- Filer Redis Setup
- Super Large Directories
- Path-Specific Filer Store
- Choosing a Filer Store
- Customize Filer Store
Management
Advanced Filer Configurations
- Migrate to Filer Store
- Add New Filer Store
- Filer Store Replication
- Filer Active Active cross cluster continuous synchronization
- Filer as a Key-Large-Value Store
- Path Specific Configuration
- Filer Change Data Capture
- Filer Operation Serialization
FUSE Mount
- Mount on Windows
- FIO benchmark
- fstab and systemd mount
- POSIX Compliance
- Distributed POSIX Locks
- P2P reading in weed mount
- Mount over the Internet
WebDAV
SFTP Server
Cloud Drive
- Cloud Drive Benefits
- Cloud Drive Architecture
- Configure Remote Storage
- Azure Blob Storage Authentication
- Mount Remote Storage
- Cache Remote Storage
- Cloud Drive Quick Setup
- Gateway to Remote Object Storage
AWS S3 API
- Amazon S3 API
- Supported APIs vs Minio
- S3 Lifecycle
- S3 Lifecycle vs Volume TTL
- S3 Conditional Operations
- S3 CORS
- S3 Object Lock and Retention
- S3 Object Versioning
- S3 RenameObject
- S3 API Benchmark
- S3 API FAQ
- S3 Bucket Quota
- S3 Rate Limiting
- S3 API Audit log
- S3 Nginx Proxy
- Docker Compose for S3
S3 Table Bucket
- S3 Table Bucket
- S3 Table Bucket Commands
- S3 Tables Security
- SeaweedFS Iceberg Catalog
- Iceberg REST Catalog API
- Iceberg Table Maintenance
- SeaweedFS Lance Catalog
- Lance Maintenance Worker
Iceberg Integrations
- Spark Iceberg Integration
- Trino Iceberg Integration
- Dremio Iceberg Integration
- DuckDB Iceberg Integration
- Doris Iceberg Integration
- RisingWave Iceberg Integration
- Lakekeeper Iceberg Integration
Lance Integrations
S3 Authentication & IAM
- S3 Configuration - Start Here
- S3 Credentials (
-s3.config) - OIDC Integration (
-s3.iam.config) - Kubernetes ServiceAccount Authentication (IRSA-style)
- S3 Policy Variables
- S3 Policy Conditions
- S3 Bucket Policies
- Amazon IAM API
- AWS IAM CLI
- weed shell - Shell IAM Commands
Server-Side Encryption
S3 Client Tools
- AWS CLI with SeaweedFS
- s3cmd with SeaweedFS
- rclone with SeaweedFS
- restic with SeaweedFS
- nodejs with Seaweed S3
Machine Learning
HDFS
- Hadoop Compatible File System
- run Spark on SeaweedFS
- run HBase on SeaweedFS
- Run Trino on SeaweedFS
- Hadoop Benchmark
- HDFS via S3 connector
Replication and Backup
- Async Replication to another Filer [Deprecated]
- Async Backup
- Async Filer Metadata Backup
- Async Replication to Cloud [Deprecated]
- Kubernetes Backups and Recovery with K8up
Metadata Change Events
Messaging
- Structured Data Lake with SMQ and SQL
- Seaweed Message Queue
- SQL Queries on Message Queue
- SQL Quick Reference
- PostgreSQL-compatible Server weed db
- Pub-Sub to SMQ to SQL
- Kafka to Kafka Gateway to SMQ to SQL
Use Cases
Operations
- System Metrics
- weed shell
- Data Backup
- Deployment to Kubernetes and Minikube
- Helm Chart Recipes
- Deployment with seaweed-up
Rust Volume Server
Advanced
- Large File Handling
- Optimization
- Optimization for Many Small Buckets
- Volume Management
- Tiered Storage
- Cloud Tier
- Cloud Monitoring
- Load Command Line Options from a file
- SRV Service Discovery
- Volume Files Structure
Security
- Security Overview
- Security Configuration
- Cryptography and FIPS Compliance
- Run Blob Storage on Public Internet