Skip to content

Commit

Permalink
Merge pull request #158 from Skalador/update_docs
Browse files Browse the repository at this point in the history
Update docs
  • Loading branch information
gmeghnag authored May 13, 2024
2 parents a685396 + 210fc62 commit 7fa8422
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $ omc etcd status
```
- Retrive the prometheus alerts in `firing` or `pending` state:
```
$ omc alert rule -s firing,pending -o wide
$ omc prometheus alertrule -s firing,pending -o wide
GROUP RULE STATE AGE ALERTS ACTIVE SINCE
cluster-version UpdateAvailable firing 11s 1 27 Jan 22 14:32 UTC
logging_fluentd.alerts FluentdQueueLengthIncreasing pending 27s 1 29 Jan 22 11:48 UTC
Expand Down
8 changes: 5 additions & 3 deletions docs/subcmds/alert.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ It allows to retrieve the alerting rules [<sup class="omc-apex">1</sup>](https:/
## `groups`
Retrieve `PrometheusRules` grouped by component:
```yaml
omc alert groups
omc prometheus alertgroup insights -oyaml
```

1. :man_raising_hand: I'm a code annotation! I can contain `code`, __formatted
text__, images, ... basically anything that can be written in Markdown.

<details>
<summary>OUTPUT</summary>

```yaml
data:
groups:
Expand Down Expand Up @@ -88,7 +89,7 @@ status: success
## `rules`
PrometheusRules present in the cluster; it's possible to filter them, as an example by the status, if we are interested only for the `firing` ones we can execute:
```
$ omc alert rules -s firing
$ omc prometheus alertrules -s firing
RULE STATE AGE ALERTS ACTIVE SINCE
ClusterNotUpgradeable firing 10s 1 10 Jan 23 10:20 UTC
UpdateAvailable firing 17s 1 22 Jan 23 04:59 UTC
Expand All @@ -103,8 +104,9 @@ CsvAbnormalFailedOver2Min firing 21s 1 12 Jan 23 10:14 UTC

<details>
<summary> Get AlertingRules by group name</summary>

```
$ omc alert rule --group etcd
$ omc prometheus alertrule --group etcd
RULE STATE AGE ALERTS ACTIVE SINCE
etcdMembersDown inactive 9s 0 ----
etcdNoLeader inactive 9s 0 ----
Expand Down

0 comments on commit 7fa8422

Please sign in to comment.