sysinfo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	HOST_SOURCE_DISPLAY_NAME   = "display_name"
	HOST_SOURCE_INSTANCE_ID    = "instance-id"
	HOST_SOURCE_AZURE_VM_ID    = "azure_vm_id"
	HOST_SOURCE_GCP_VM_ID      = "gcp_vm_id"
	HOST_SOURCE_ALIBABA_VM_ID  = "alibaba_vm_id"
	HOST_SOURCE_HOSTNAME       = "hostname"
	HOST_SOURCE_HOSTNAME_SHORT = "hostname_short"

	PROCESS_NAME_SOURCE_DAEMONTOOLS = "daemontools"
	PROCESS_NAME_SOURCE_SUPERVISOR  = "supervisor"
	PROCESS_NAME_SOURCE_SYSTEMD     = "systemd"
	PROCESS_NAME_SOURCE_SYSVINIT    = "sysvinit"
	PROCESS_NAME_SOURCE_UPSTART     = "upstart"
)

Variables

View Source
var (
	// Ordered list of which types of names to prefer for coming up with the agent identifier.
	// The first one in the list which we have will win.
	HOST_ID_TYPES = []string{
		HOST_SOURCE_INSTANCE_ID,
		HOST_SOURCE_AZURE_VM_ID,
		HOST_SOURCE_GCP_VM_ID,
		HOST_SOURCE_ALIBABA_VM_ID,
		HOST_SOURCE_DISPLAY_NAME,
		HOST_SOURCE_HOSTNAME,
	}

	// Ordered list of which types of process name sources we can use. The first one in the
	// list which has a match for a PID will win.
	PROCESS_NAME_SOURCES = []string{

		PROCESS_NAME_SOURCE_DAEMONTOOLS,
		PROCESS_NAME_SOURCE_SUPERVISOR,
		PROCESS_NAME_SOURCE_SYSTEMD,
		PROCESS_NAME_SOURCE_UPSTART,

		PROCESS_NAME_SOURCE_SYSVINIT,
	}
)

Functions

This section is empty.

Types

type HostAliases

type HostAliases struct {
	Alias  string `json:"alias"`
	Source string `json:"id"`
}

func (HostAliases) SortKey

func (self HostAliases) SortKey() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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