-
Notifications
You must be signed in to change notification settings - Fork 488
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into hackathon-xray-web-stream
- Loading branch information
Showing
383 changed files
with
12,377 additions
and
8,869 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package process | ||
|
||
import ( | ||
"time" | ||
|
||
"github.com/grafana/agent/component/discovery" | ||
) | ||
|
||
type Arguments struct { | ||
Join []discovery.Target `river:"join,attr,optional"` | ||
RefreshInterval time.Duration `river:"refresh_interval,attr,optional"` | ||
DiscoverConfig DiscoverConfig `river:"discover_config,block,optional"` | ||
} | ||
|
||
type DiscoverConfig struct { | ||
Cwd bool `river:"cwd,attr,optional"` | ||
Exe bool `river:"exe,attr,optional"` | ||
Commandline bool `river:"commandline,attr,optional"` | ||
Username bool `river:"username,attr,optional"` | ||
UID bool `river:"uid,attr,optional"` | ||
ContainerID bool `river:"container_id,attr,optional"` | ||
} | ||
|
||
var DefaultConfig = Arguments{ | ||
Join: nil, | ||
RefreshInterval: 60 * time.Second, | ||
DiscoverConfig: DiscoverConfig{ | ||
Cwd: true, | ||
Exe: true, | ||
Commandline: true, | ||
ContainerID: true, | ||
}, | ||
} | ||
|
||
func (args *Arguments) SetToDefault() { | ||
*args = DefaultConfig | ||
} |
Oops, something went wrong.