Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = []string{
"Receiver: hostmetrics",
"Exporters: Carbon",
}
View Source
var ServiceDetails = map[string]map[string]map[string]string{
"linux": {
"default": {
"configPath": "/etc/otelcol-contrib/config.yaml",
"startHint": "sudo systemctl start otelcol-contrib",
"restartHint": "sudo systemctl restart otelcol-contrib",
"receiver": "hostmetrics",
"exporter": "carbon",
},
},
"windows": {
"default": {
"exePath": "C:\\Program Files\\OpenTelemetry Collector Contrib\\otelcol-contrib.exe",
"configPath": "C:\\Program Files\\OpenTelemetry Collector Contrib\\config.yaml",
"startHint": "sc.exe start otelcol-contrib",
"restartHint": "Restart-Service otelcol-contrib",
"receiver": "hostmetrics",
"exporter": "carbon",
},
},
"darwin": {
"amd64": {
"configPath": "/usr/local/etc/otelcol-contrib/config.yaml",
"startHint": "launchctl load ~/Library/LaunchAgents/com.otelcol-contrib-agent.plist",
"restartHint": "launchctl stop/start otelcol-contrib-agent",
"receiver": "hostmetrics",
"exporter": "carbon",
},
},
}
Functions ¶
func GetServiceSettings ¶
func ValidateFilePath ¶
Types ¶
type Otel ¶
type Otel struct {
// contains filtered or unexported fields
}
func NewOtelAgent ¶
func (*Otel) InstallPipeline ¶
func (*Otel) UninstallPipeline ¶
Click to show internal directories.
Click to hide internal directories.