Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/agent/subcommands/launchgui/open_browser_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

//go:build freebsd || netbsd || openbsd || solaris || dragonfly || linux
//go:build freebsd || netbsd || openbsd || solaris || dragonfly || linux || aix

package launchgui

Expand Down
2 changes: 1 addition & 1 deletion comp/core/config/params_nix.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

//go:build netbsd || openbsd || solaris || dragonfly || linux
//go:build netbsd || openbsd || solaris || dragonfly || linux || aix

package config

Expand Down
2 changes: 1 addition & 1 deletion comp/core/gui/guiimpl/platform_nix.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

//go:build freebsd || netbsd || openbsd || solaris || dragonfly || linux
//go:build freebsd || netbsd || openbsd || solaris || dragonfly || linux || aix

package guiimpl

Expand Down
2 changes: 1 addition & 1 deletion comp/metadata/host/hostimpl/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

//go:build linux || windows || darwin
//go:build linux || windows || darwin || aix
Comment thread
pgimalac marked this conversation as resolved.
Resolved

package hostimpl

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

//go:build windows || freebsd || netbsd || openbsd || solaris || dragonfly
//go:build windows || freebsd || netbsd || openbsd || solaris || dragonfly || aix

package resourcesimpl

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.
//go:build !windows && !freebsd && !darwin
//go:build !windows && !freebsd && !darwin && !aix

package filehandles

Expand Down
21 changes: 21 additions & 0 deletions pkg/collector/corechecks/system/filehandles/file_handles_aix.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

//go:build aix

package filehandles

import (
"github.com/DataDog/datadog-agent/pkg/collector/check"
"github.com/DataDog/datadog-agent/pkg/util/option"
)

// CheckName is the name of the check
const CheckName = "file_handle"

// Factory returns a no-op option because file handle metrics are not available on AIX.
func Factory() option.Option[func() check.Check] {
return option.None[func() check.Check]()
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.
//go:build !windows && !freebsd && !darwin
//go:build !windows && !freebsd && !darwin && !aix

package filehandles

Expand Down
15 changes: 15 additions & 0 deletions pkg/networkdevice/pinger/pinger_aix.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

//go:build aix

package pinger

import "errors"

// New creates a new pinger; not supported on AIX.
func New(_ Config) (Pinger, error) {
return nil, errors.New("pinger not supported on AIX")
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

//go:build darwin
//go:build darwin || aix

package config

Expand All @@ -19,12 +19,12 @@ func ProcessEventDataStreamSupported() bool {
return false
}

// RedisMonitoringSupported returns false on darwin as eBPF is not supported
// RedisMonitoringSupported returns false as eBPF is not supported
func RedisMonitoringSupported() bool {
return false
}

// HTTP2MonitoringSupported returns false on darwin as eBPF is not supported
// HTTP2MonitoringSupported returns false as eBPF is not supported
func HTTP2MonitoringSupported() bool {
return false
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/defaultpaths/path_nix.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

//go:build netbsd || openbsd || solaris || dragonfly || linux
//go:build netbsd || openbsd || solaris || dragonfly || linux || aix

package defaultpaths

Expand Down
12 changes: 12 additions & 0 deletions pkg/util/lsof/lsof_aix.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

//go:build aix

package lsof

func openFiles(_ int) (Files, error) {
return nil, ErrNotImplemented
}
14 changes: 14 additions & 0 deletions pkg/util/port/portlist/poller_aix.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2014-present Datadog, Inc.

//go:build aix

package portlist

import "errors"

func (p *Poller) init() {
p.initErr = errors.New("portlist polling not supported on AIX")
}
Loading