Skip to content

Commit

Permalink
nessie control stats and ignore all dev versions when post stats (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
nopcoder authored Sep 21, 2020
1 parent fca59c9 commit e0410fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func (c *Config) GetStatsFlushInterval() time.Duration {

func (c *Config) GetStatsBufferedCollectorArgs() (processID string, opts []stats.BufferedCollectorOpts) {
var sender stats.Sender
if c.GetStatsEnabled() && Version != UnreleasedVersion {
if c.GetStatsEnabled() && !strings.HasPrefix(Version, UnreleasedVersion) {
sender = stats.NewHTTPSender(c.GetStatsAddress(), time.Now)
} else {
sender = stats.NewDummySender()
Expand Down
1 change: 1 addition & 0 deletions nessie/ops/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ services:
- LAKEFS_BLOCKSTORE_S3_CREDENTIALS_ACCESS_SECRET_KEY=${AWS_SECRET_ACCESS_KEY}
- LAKEFS_LOGGING_LEVEL=DEBUG
- LAKEFS_BLOCKSTORE_GS_CREDENTIALS_JSON
- LAKEFS_STATS_ENABLED
entrypoint: ["/app/wait-for", "postgres:5432", "--", "/app/lakefs", "run"]
postgres:
image: "postgres:11"
Expand Down

0 comments on commit e0410fd

Please sign in to comment.