forked from DataDog/datadog-agent
-
Notifications
You must be signed in to change notification settings - Fork 2
/
common_nix.go
48 lines (40 loc) · 1.78 KB
/
common_nix.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// 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.
// +build netbsd openbsd solaris dragonfly linux
// +build !android
package common
import (
"path/filepath"
// Init packages
_ "github.com/StackVista/stackstate-agent/pkg/util/containers/providers/cgroup"
)
const (
// DefaultConfPath points to the folder containing datadog.yaml
DefaultConfPath = "/etc/datadog-agent"
// DefaultLogFile points to the log file that will be used if not configured
DefaultLogFile = "/var/log/datadog/agent.log"
// DefaultDCALogFile points to the log file that will be used if not configured
DefaultDCALogFile = "/var/log/datadog/cluster-agent.log"
//DefaultJmxLogFile points to the jmx fetch log file that will be used if not configured
DefaultJmxLogFile = "/var/log/datadog/jmxfetch.log"
// DefaultCheckFlareDirectory a flare friendly location for checks to be written
DefaultCheckFlareDirectory = "/var/log/datadog/checks/"
// DefaultJMXFlareDirectory a flare friendly location for jmx command logs to be written
DefaultJMXFlareDirectory = "/var/log/datadog/jmxinfo/"
)
var (
// PyChecksPath holds the path to the python checks from integrations-core shipped with the agent
PyChecksPath = filepath.Join(_here, "..", "..", "checks.d")
// DistPath holds the path to the folder containing distribution files
distPath = filepath.Join(_here, "dist")
)
// GetDistPath returns the fully qualified path to the 'dist' directory
func GetDistPath() string {
return distPath
}
// GetViewsPath returns the fully qualified path to the 'gui/views' directory
func GetViewsPath() string {
return filepath.Join(distPath, "views")
}