Skip to content

Commit

Permalink
help text
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Feb 5, 2024
1 parent 2d3ad73 commit 62ce8ce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/crowdsec-cli/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,20 +445,20 @@ func (cli *cliMetrics) newShowCmd() *cobra.Command {
)

cmd := &cobra.Command{
Use: "show",
Use: "show [type]...",
Short: "Display all or part of the available metrics.",
Long: `Fetch metrics from a Local API server and display them, optionally filtering on specific types.`,
Example: `# Show all Metrics, skip empty tables
cscli metrics show
# Use an alias: "engine", "lapi" or "appsec" to show a group of metrics
cscli metrics show engine
# Show some specific metrics, show empty tables, connect to a different url
cscli metrics show acquisition parsers buckets stash --url http://lapi.local:6060/metrics
# Show metrics in json format
cscli metrics show acquisition parsers buckets stash -o json
# Use the "engine" alias to show all engine-related metrics
cscli metrics show engine`,
cscli metrics show acquisition parsers buckets stash -o json`,
// Positional args are optional
DisableAutoGenTag: true,
RunE: func(_ *cobra.Command, args []string) error {
Expand Down

0 comments on commit 62ce8ce

Please sign in to comment.