Skip to content

Commit

Permalink
Merge pull request #52 from checkr/zz/new-relic
Browse files Browse the repository at this point in the history
Add new relic monitoring
  • Loading branch information
zhouzhuojie authored Oct 24, 2017
2 parents db56d3e + e4c853c commit a5db1f5
Show file tree
Hide file tree
Showing 278 changed files with 20,747 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ ENV FLAGR_DB_DBDRIVER=sqlite3
ENV FLAGR_DB_DBCONNECTIONSTR=/data/demo_sqlite3.db
ENV FLAGR_RECORDER_ENABLED=false
ENV HOST=0.0.0.0
ENV PORT=18000

RUN cd ./browser/flagr-ui/ && yarn install && yarn run build
RUN make build

EXPOSE 18000
CMD make run
CMD ./flagr
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 a5db1f5

Please sign in to comment.