Skip to content

Commit

Permalink
Implement loadavg on all BSDs without cgo (prometheus#1584)
Browse files Browse the repository at this point in the history
Reuse the Go-only implementation already in place for FreeBSD (prometheus#385) on
Darwin, DragonflyBSD, NetBSD and OpenBSD.

Tested on all affected platforms.

Signed-off-by: Tobias Klauser <[email protected]>
  • Loading branch information
tklauser authored and oblitorum committed Apr 9, 2024
1 parent 5ba9137 commit 598abc5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 33 deletions.
1 change: 1 addition & 0 deletions collector/loadavg_freebsd.go → collector/loadavg_bsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// +build darwin dragonfly freebsd netbsd openbsd
// +build !noloadavg

package collector
Expand Down
33 changes: 0 additions & 33 deletions collector/loadavg_unix.go

This file was deleted.

0 comments on commit 598abc5

Please sign in to comment.