From c59d04f42a405703e51ddb5b7cb22fe468154d49 Mon Sep 17 00:00:00 2001 From: Norbert Kwizera Date: Fri, 13 Dec 2024 13:38:42 +0200 Subject: [PATCH] Rename to use DeploymentID --- cmd/rp-indexer/main.go | 4 ++-- runtime/config.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/rp-indexer/main.go b/cmd/rp-indexer/main.go index b2308db..89179f8 100644 --- a/cmd/rp-indexer/main.go +++ b/cmd/rp-indexer/main.go @@ -75,8 +75,8 @@ func main() { logger.Error("unable to connect to database") } - if rt.Config.Deployment != "dev" { - rt.CW, err = cwatch.NewService(rt.Config.AWSAccessKeyID, rt.Config.AWSSecretAccessKey, rt.Config.AWSRegion, rt.Config.CloudwatchNamespace, rt.Config.Deployment) + if rt.Config.DeploymentID != "dev" { + rt.CW, err = cwatch.NewService(rt.Config.AWSAccessKeyID, rt.Config.AWSSecretAccessKey, rt.Config.AWSRegion, rt.Config.CloudwatchNamespace, rt.Config.DeploymentID) if err != nil { logger.Error("unable to create cloudwatch service") } diff --git a/runtime/config.go b/runtime/config.go index b19c03c..056b618 100644 --- a/runtime/config.go +++ b/runtime/config.go @@ -16,7 +16,7 @@ type Config struct { AWSRegion string `help:"region to use for AWS services, e.g. us-east-1"` CloudwatchNamespace string `help:"the namespace to use for cloudwatch metrics"` - Deployment string `help:"the deployment identifier to use for metrics"` + DeploymentID string `help:"the deployment identifier to use for metrics"` LibratoUsername string `help:"the username that will be used to authenticate to Librato"` LibratoToken string `help:"the token that will be used to authenticate to Librato"` @@ -43,7 +43,7 @@ func NewDefaultConfig() *Config { AWSRegion: "us-east-1", CloudwatchNamespace: "Temba", - Deployment: "dev", + DeploymentID: "dev", InstanceName: hostname,