summaryrefslogtreecommitdiff
path: root/internal/config
diff options
context:
space:
mode:
Diffstat (limited to 'internal/config')
-rw-r--r--internal/config/common.go14
-rw-r--r--internal/config/config.go2
2 files changed, 5 insertions, 11 deletions
diff --git a/internal/config/common.go b/internal/config/common.go
index f0f1a94..a09a3ad 100644
--- a/internal/config/common.go
+++ b/internal/config/common.go
@@ -9,13 +9,10 @@ type CommonConfig struct {
// The log strategy to use, one of
// stdout: only log to stdout (useful when used with systemd)
// daily: create a log file for every day
- LogStrategy string
- LogDir string
- CacheDir string
- TmpDir string `json:",omitempty"`
- PProfEnable bool `json:",omitempty"`
- PProfPort int `json:",omitempty"`
- PProfBindAddress string `json:",omitempty"`
+ LogStrategy string
+ LogDir string
+ CacheDir string
+ TmpDir string `json:",omitempty"`
}
// Create a new default configuration.
@@ -28,8 +25,5 @@ func newDefaultCommonConfig() *CommonConfig {
LogDir: "log",
CacheDir: "cache",
TmpDir: "/tmp",
- PProfEnable: false,
- PProfPort: 6060,
- PProfBindAddress: "0.0.0.0",
}
}
diff --git a/internal/config/config.go b/internal/config/config.go
index 239bfd1..7241276 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -9,7 +9,7 @@ import (
// ControlUser is used for various DTail specific operations.
const ControlUser string = "DTAIL-CONTROL-USER"
-// ScheduledUser is used for scheduled queries.
+// ScheduleUser is used for scheduled queries.
const ScheduleUser string = "DTAIL-SCHEDULE-USER"
// Client holds a DTail client configuration.