Skip to content

Commit

Permalink
Add new relic monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzhuojie committed Oct 23, 2017
1 parent db56d3e commit 21afce7
Show file tree
Hide file tree
Showing 277 changed files with 20,745 additions and 5 deletions.
14 changes: 13 additions & 1 deletion Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,11 @@
[[constraint]]
branch = "master"
name = "github.com/meatballhat/negroni-logrus"

[[constraint]]
name = "github.com/newrelic/go-agent"
version = "1.9.0"

[[constraint]]
branch = "master"
name = "github.com/yadvendar/negroni-newrelic-go-agent"
7 changes: 6 additions & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ var Config = struct {
DBDriver string `env:"FLAGR_DB_DBDRIVER" envDefault:"mysql"`
DBConnectionStr string `env:"FLAGR_DB_DBCONNECTIONSTR" envDefault:"root:@tcp(127.0.0.1:18100)/flagr?parseTime=true"`

CORSEnabled bool `env:"FLAGR_CORS_ENABLED" envDefault:"true"`
CORSEnabled bool `env:"FLAGR_CORS_ENABLED" envDefault:"true"`

SentryEnabled bool `env:"FLAGR_SENTRY_ENABLED" envDefault:"false"`
SentryDSN string `env:"FLAGR_SENTRY_DSN" envDefault:""`

NewRelicEnabled bool `env:"FLAGR_NEWRELIC_ENABLED" envDefault:"false"`
NewRelicAppName string `env:"FLAGR_NEWRELIC_NAME" envDefault:"flagr"`
NewRelicKey string `env:"FLAGR_NEWRELIC_KEY" envDefault:""`

EvalCacheRefreshTimeout time.Duration `env:"FLAGR_EVALCACHE_REFRESHTIMEOUT" envDefault:"59s"`
EvalCacheRefreshInterval time.Duration `env:"FLAGR_EVALCACHE_REFRESHINTERVAL" envDefault:"3s"`

Expand Down
18 changes: 15 additions & 3 deletions swagger_gen/restapi/configure_flagr.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

192 changes: 192 additions & 0 deletions vendor/github.com/newrelic/go-agent/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions vendor/github.com/newrelic/go-agent/CONTRIBUTING.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 21afce7

Please sign in to comment.