blob: c6bf43dddf0b6ebe88a73c5772a6cf47587d67f4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- tool/util/util.go.orig 1979-11-29 23:00:00 UTC
+++ tool/util/util.go
@@ -33,6 +33,7 @@ const (
OsTypeLinux = "linux"
OsTypeWindows = "windows"
OsTypeDarwin = "darwin"
+ OsTypeFreeBSD = "freebsd"
MapKeyMetricsCollectionInterval = "metrics_collection_interval"
MapKeyInstances = "resources"
@@ -71,6 +72,9 @@ func ConfigFilePath() string {
}
func ConfigFilePath() string {
+ if sysruntime.GOOS == "freebsd" {
+ return "/opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.json"
+ }
return filepath.Join(CurPath(), configJsonFileName)
}
|