Skip to content

Commit

Permalink
feat(pull-mode): adds file discovery mechanism (#662)
Browse files Browse the repository at this point in the history
* add file discovery

* fix log error and deal with  kebab-case config  rules

* gomod

* remove extra line to pass go-lint check
  • Loading branch information
linthan committed Dec 29, 2021
1 parent 6c390b5 commit 35ce0b5
Show file tree
Hide file tree
Showing 3 changed files with 421 additions and 1 deletion.
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ require (
github.com/dgraph-io/ristretto v0.1.0 // indirect
github.com/fatih/color v1.10.0
github.com/felixge/fgprof v0.9.1
github.com/fsnotify/fsnotify v1.4.9
github.com/go-ole/go-ole v1.2.5 // indirect
github.com/golang-jwt/jwt v3.2.1+incompatible
github.com/golang/mock v1.6.0 // indirect
Expand Down Expand Up @@ -53,6 +54,7 @@ require (
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f
github.com/onsi/ginkgo v1.16.2
github.com/onsi/gomega v1.12.0
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.11.0
github.com/prometheus/common v0.32.1
github.com/pyroscope-io/client v0.0.0-20211206204731-3fd0a4b8239c
Expand Down
3 changes: 2 additions & 1 deletion pkg/cli/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import (
"golang.org/x/sync/errgroup"
"gopkg.in/yaml.v2"

// revive:disable:blank-imports register kubernetes discoverer
// revive:disable:blank-imports register discoverer
_ "github.com/pyroscope-io/pyroscope/pkg/scrape/discovery/file"
_ "github.com/pyroscope-io/pyroscope/pkg/scrape/discovery/kubernetes"

adhocserver "github.com/pyroscope-io/pyroscope/pkg/adhoc/server"
Expand Down

0 comments on commit 35ce0b5

Please sign in to comment.