Skip to content

Commit 8e2bc29

Browse files
committed
Officially remove OpenBSD support
Because we cannot fix the CI issue on OpenBSD and we cannot support it. In case, we keep the code for OpenBSD but it is not tested and we cannot guarantee its correctness. See #65
1 parent 50dffea commit 8e2bc29

File tree

2 files changed

+23
-26
lines changed

2 files changed

+23
-26
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,6 @@ jobs:
113113
version: "14.1",
114114
prepare_cmd: "sudo pkg install -y rust cmake rust-bindgen-cli",
115115
}
116-
- {
117-
os: openbsd,
118-
version: "7.6",
119-
prepare_cmd: "sudo pkg_add rust cmake llvm%17; export LIBCLANG_PATH=/usr/local/llvm17/lib",
120-
}
121116
fail-fast: false
122117
runs-on: ubuntu-latest
123118
name: "test (${{matrix.os}}-${{matrix.version}})"

README.md

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@
88
# ⏱ metrics-process
99

1010
This crate provides a [Prometheus]-style [process metrics] collector for the
11-
[metrics] crate, supporting Linux, macOS, Windows, FreeBSD, and OpenBSD. The
12-
original collector code was manually rewritten in Rust from the official
13-
Prometheus client for Go ([client_golang]), \*BSD support code was written
14-
from scratch.
11+
[metrics] crate, supporting Linux, macOS, Windows, and FreeBSD. The original
12+
collector code was manually rewritten in Rust from the official Prometheus
13+
client for Go ([client_golang]), \*BSD support code was written from scratch.
1514

1615
[Prometheus]: https://prometheus.io/
1716
[process metrics]: https://prometheus.io/docs/instrumenting/writing_clientlibs/#process-metrics
@@ -35,29 +34,32 @@ This crate supports the following metrics provided by [Prometheus] for
3534
| `process_threads` | Number of OS threads in the process. |
3635

3736
For each platform, it is equivalent to what the official Prometheus client for
38-
Go ([client_golang]) provides.
37+
Go ([client_golang]) provides. Note that code for OpenBSD exists but is not
38+
tested and we cannot guarantee its correctness.
3939

4040
> [!NOTE]
4141
>
42-
> Prior to version 2.0.0, the `process_cpu_seconds_total` metric was Gauge instead of Counter.
43-
> Enable `use-gauge-on-cpu-seconds-total` feature to use the previous behavior.
44-
45-
| Metric name | Linux | macOS | Windows | FreeBSD | OpenBSD |
46-
| ---------------------------------- | ----- | ----- | ------- | ------- | ------- |
47-
| `process_cpu_seconds_total` | x | x | x | x | x |
48-
| `process_open_fds` | x | x | x | x | |
49-
| `process_max_fds` | x | x | x | x | x |
50-
| `process_virtual_memory_bytes` | x | x | x | x | |
51-
| `process_virtual_memory_max_bytes` | x | x | | x | |
52-
| `process_resident_memory_bytes` | x | x | x | x | x |
53-
| `process_heap_bytes` | | | | | |
54-
| `process_start_time_seconds` | x | x | x | x | x |
55-
| `process_threads` | x | x | | x | |
42+
> Prior to version 2.0.0, the `process_cpu_seconds_total` metric was Gauge
43+
> instead of Counter. Enable `use-gauge-on-cpu-seconds-total` feature to use the
44+
> previous behavior.
45+
46+
| Metric name | Linux | macOS | Windows | FreeBSD | (OpenBSD) |
47+
| ---------------------------------- | ----- | ----- | ------- | ------- | --------- |
48+
| `process_cpu_seconds_total` | x | x | x | x | x |
49+
| `process_open_fds` | x | x | x | x | |
50+
| `process_max_fds` | x | x | x | x | x |
51+
| `process_virtual_memory_bytes` | x | x | x | x | |
52+
| `process_virtual_memory_max_bytes` | x | x | | x | |
53+
| `process_resident_memory_bytes` | x | x | x | x | x |
54+
| `process_heap_bytes` | | | | | |
55+
| `process_start_time_seconds` | x | x | x | x | x |
56+
| `process_threads` | x | x | | x | |
5657

5758
> [!NOTE]
5859
>
59-
> If you only need to compile this crate on non-supported platforms, you can use the `dummy` feature.
60-
> Enabling this feature activates a dummy collector, which returns an empty `Metrics`.
60+
> If you only need to compile this crate on non-supported platforms, you can use
61+
> the `dummy` feature. Enabling this feature activates a dummy collector, which
62+
> returns an empty `Metrics`.
6163
6264
[client_golang]: https://github.com/prometheus/client_golang
6365

0 commit comments

Comments
 (0)