detection

package
v1.67.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const InfraAgentProcessName = "newrelic-infra"

Variables

This section is empty.

Functions

func GetInfraAgentProcess

func GetInfraAgentProcess() (int32, error)

GetInfraAgentProcess returns the pid for the infra-agent process.

func GetProcessID added in v1.67.3

func GetProcessID(processName string) (int32, error)

GetProcessID returns the pid for the given process.

func IsContainerized

func IsContainerized(pid int32, dockerAPIVersion, dockerContainerdNamespace string) (isContainerized bool, containerID string, err error)

IsContainerized is checking if a pid is running inside a docker container.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL