# Announcing Swift System Metrics 1.0: Process-Level Monitoring

DevFeed: [Announcing Swift System Metrics 1.0: Process-Level Monitoring](<https://devfeed.tech/articles/announcing-swift-system-metrics-1-0-process-level-monitoring-2936.md>)

Original publisher: [Read original article](<https://swift.org/blog/swift-system-metrics-1.0-released/>)

Author: Vladimir Kukushkin

Published: 2026-02-20T10:00:00Z

Content type: release

Language: en

Sources: [Swift.org](<https://devfeed.tech/sources/swift-org.md>)

Topics: [Swift](<https://devfeed.tech/topics/swift.md>), [Monitoring](<https://devfeed.tech/topics/monitoring.md>), [Processes](<https://devfeed.tech/topics/processes.md>), [observability](<https://devfeed.tech/topics/observability.md>), [cpu](<https://devfeed.tech/topics/cpu.md>), [Grafana](<https://devfeed.tech/topics/grafana.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [macOS](<https://devfeed.tech/topics/macos.md>), [API](<https://devfeed.tech/topics/api.md>), [OpenTelemetry](<https://devfeed.tech/topics/opentelemetry.md>), [Prometheus](<https://devfeed.tech/topics/prometheus.md>), [real-time](<https://devfeed.tech/topics/real-time.md>)

Tags: [contributed](<https://devfeed.tech/tags/contributed.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [grafana](<https://devfeed.tech/tags/grafana.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [linux](<https://devfeed.tech/tags/linux.md>), [macos](<https://devfeed.tech/tags/macos.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [net](<https://devfeed.tech/tags/net.md>), [observability](<https://devfeed.tech/tags/observability.md>), [opentelemetry](<https://devfeed.tech/tags/opentelemetry.md>), [performance](<https://devfeed.tech/tags/performance.md>), [process](<https://devfeed.tech/tags/process.md>), [prometheus](<https://devfeed.tech/tags/prometheus.md>), [real-time](<https://devfeed.tech/tags/real-time.md>), [release](<https://devfeed.tech/tags/release.md>), [swift](<https://devfeed.tech/tags/swift.md>)

## AI overview

Swift System Metrics 1.0 is a stable Swift package for collecting process-level metrics, including CPU utilization, memory usage, file descriptors, and process start time, on Linux and macOS. It integrates with Swift Metrics and supports Prometheus and OpenTelemetry backends, with an example Grafana dashboard and production-focused observability use cases.

## Source excerpt

We are excited to announce the 1.0 release of Swift System Metrics, a Swift package that collects process-level system metrics like CPU utilization time and memory usage. Swift System Metrics runs on both Linux and macOS, providing a common API across platforms. Swift System Metrics visualized in Grafana, demonstrating what's possible with real-time monitoring. Monitoring process metrics enables you to detect performance issues, optimize resource usage, and ensure your service remains reliable and cost-effective under varying loads. You can integrate Swift System Metrics into your service in just a few lines of code, making observability accessible to every developer and ensuring that even the smallest services can have production-grade visibility from day one. Swift System Metrics is part of a larger set of packages that provide an end-to-end solution for integrating metrics into your Swift applications and services. Once system metrics are collected, they're reported to Swift Metrics, a backend-agnostic metrics API that can work with popular backends like Prometheus and OpenTelemetry. Swift System Metrics also leverages Swift Service Lifecycle to handle process bootstrapping and resource cleanup. With the 1.0 milestone, the API is now stable and ready for use. Note that this package was previously swift-metrics-extras, and renamed to better reflect its purpose. Highlights Collects and reports: CPU utilization time Virtual and resident memory usage Open and maximum available file descriptors Process start time API-stable public interface Support on both Linux and macOS musl libc compatibility The package includes an example Grafana dashboard configuration to start visualizing metrics immediately. Get Started Add the dependency to your Package.swift: .package(url: "https://github.com/apple/swift-system-metrics", from: "1.0.0") Add the library dependency to your target: .product(name: "SystemMetrics", package: "swift-system-metrics") Import and use in your code: impo