Skip to content

Commit

Permalink
Use new shared asset monitoring logic
Browse files Browse the repository at this point in the history
Signed-off-by: R.I.Pienaar <[email protected]>
  • Loading branch information
ripienaar committed Jun 21, 2024
1 parent e2e635c commit 80bf761
Show file tree
Hide file tree
Showing 13 changed files with 130 additions and 1,025 deletions.
10 changes: 5 additions & 5 deletions LOCAL_DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ JetStream Account Information:

The server sets up 3 accounts:

|Account|Description|
|-------|-----------|
|USER |General access for local development|
|SERVICE|Account for a service with wildcard imports/exports|
|SYSTEM |Account for monitoring purposes|
| Account | Description |
|---------|-----------------------------------------------------|
| USER | General access for local development |
| SERVICE | Account for a service with wildcard imports/exports |
| SYSTEM | Account for monitoring purposes |

From the `SERVICE` account we export subjects `service.>` and these are imported into the `USER` account on `imports.SERVICE.>`.

Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -811,11 +811,10 @@ this number of operations will result in a critical error
sumular to the lag on Sources and Mirrors but checks the lag in the Raft cluster.

`--msgs-warn=MSGS` and `--msgs-critical=MSGS` Checks the number of messages in the stream, if warn is smaller than
critical the check will alert for fewer messages than the thresholds. If warn is bigger than critical the logic will be
inverted ensuring that no more than the thresholds exist in the stream.
critical the check will alert for fewer messages than the thresholds.

`--subjects-warn=SUBJECTS` and `--subjects-critical=SUBJECTS` Checks the number of subjects in the stream, supports the
same inversion behaviour described above in `--msgs-warn`.
`--subjects-warn=SUBJECTS` and `--subjects-critical=SUBJECTS` Checks the number of subjects in the stream. If warn is
bigger than critical the logic will be inverted ensuring that no more than the thresholds exist in the stream.

##### Consumers

Expand Down
5 changes: 3 additions & 2 deletions cli/object_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ package cli
import (
"encoding/base64"
"fmt"
"github.com/nats-io/natscli/internal/util"
"io"
"os"
"path/filepath"
"sort"
"strings"
"time"

"github.com/nats-io/natscli/internal/util"

"github.com/AlecAivazis/survey/v2"
"github.com/choria-io/fisk"
"github.com/dustin/go-humanize"
Expand Down Expand Up @@ -79,7 +80,7 @@ NOTE: This is an experimental feature.
add.Flag("storage", "Storage backend to use (file, memory)").EnumVar(&c.storage, "file", "f", "memory", "m")
add.Flag("tags", "Place the store on servers that has specific tags").StringsVar(&c.placementTags)
add.Flag("cluster", "Place the store on a specific cluster").StringVar(&c.placementCluster)
add.Flag("metadata", "Adds metadata to the bucvket").PlaceHolder("META").StringMapVar(&c.metadata)
add.Flag("metadata", "Adds metadata to the bucket").PlaceHolder("META").StringMapVar(&c.metadata)
add.Flag("compress", "Compress the bucket data").BoolVar(&c.compression)

add.PreAction(c.parseLimitStrings)
Expand Down
Loading

0 comments on commit 80bf761

Please sign in to comment.