Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Review feedback.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
  • Loading branch information
tomwilkie committed May 13, 2019
commit 310897b607631eea6d14993bfdae61e2b3126608
4 changes: 2 additions & 2 deletions cmd/cortex/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
)

func init() {
prometheus.MustRegister(version.NewCollector("loki"))
prometheus.MustRegister(version.NewCollector("cortex"))
}

func main() {
Expand Down Expand Up @@ -48,7 +48,7 @@ func main() {
util.InitEvents(eventSampleRate)

// Setting the environment variable JAEGER_AGENT_HOST enables tracing
trace := tracing.NewFromEnv(cfg.Target.String())
trace := tracing.NewFromEnv("cortex-" + cfg.Target.String())
defer trace.Close()

t, err := cortex.New(cfg)
Expand Down
1 change: 1 addition & 0 deletions pkg/configs/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type Config struct {
MigrationsDir string
PasswordFile string

// Allow injection of mock DBs for unit testing.
Mock DB
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/cortex/cortex.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ type Config struct {
Worker frontend.WorkerConfig `yaml:"frontend_worker,omitempty"`
Frontend frontend.Config `yaml:"frontend,omitempty"`
TableManager chunk.TableManagerConfig `yaml:"table_manager,omitempty"`
Encoding encoding.Config // No yaml for this, it only works with flags.
Encoding encoding.Config `yaml:"-"` // No yaml for this, it only works with flags.

Ruler ruler.Config `yaml:"ruler,omitempty"`
ConfigStore config_client.Config `yaml:"config_store,omitempty"`
Expand Down