package
1.0.3
Repository: https://github.com/percona/telemetry-agent.git
Documentation: pkg.go.dev

# Functions

CleanupMetricsHistory removes all telemetry files from history directory that are older than threshold.
ProcessPGMetrics processes PG metrics and returns slice of *File.
ProcessPSMDBMetrics processes PSMDB metrics and returns slice of *File.
ProcessPSMetrics processes PS metrics and returns slice of *File.
ProcessPXCMetrics processes PXC metrics and returns slice of *File.
ScrapeHostMetrics gathers metrics about host where Telemetry Agent is running.
ScrapeInstalledPackages scrapes the installed packages on the host and returns a slice of Package structs along with any errors encountered.
WriteMetricsToHistory creates a new telemetry history file and writes the content of Percona Platform telemetry request into it.

# Constants

InstanceIDKey key name in telemetryFile with host instance ID.

# Structs

File struct used for storing parsed Pillar's or host metrics.
Package represents a software package with its name and version.
PackageRepository represents a repository where a software package is located.