feat: improve prometheus startup message

This commit is contained in:
Julien Neuhart
2021-12-03 14:14:36 +01:00
parent f376cd5ab1
commit 9cb6f44f72
2 changed files with 2 additions and 2 deletions

View File

@@ -150,7 +150,7 @@ func (mod Prometheus) Start() error {
// StartupMessage returns a custom startup message.
func (mod Prometheus) StartupMessage() string {
if mod.disableCollect {
return "application not started (collect disabled by user)"
return "collect disabled"
}
return "collecting metrics"

View File

@@ -296,8 +296,8 @@ func TestPrometheus_StartupMessage(t *testing.T) {
expectMessage string
}{
{
expectMessage: "application not started (collect disabled by user)",
disableCollect: true,
expectMessage: "collect disabled",
},
{
expectMessage: "collecting metrics",