Files
grafana/docs/sources/alerting/alerting-rules/edit-mimir-loki-namespace-group.md
Jack Baldry c1c48dd610 Use relative aliases for all non-current Grafana aliases (#60062)
* Use relative aliases for all non-current Grafana aliases

Prevents non-latest documentation "stealing" the page away from latest
and through permanent redirects for latest pages that no longer exist.

The redirected pages are indexed by search engines but our robots.txt
forbids them crawling the non-latest page.

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Remove aliases from shared pages

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Rewrite all current latest aliases to be next

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Fix typo in latest alias

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Remove all current page aliases

find docs/sources -type f -name '*.md' -exec sed -z -i 's#\n *- /docs/grafana/next/[^\n]*\n#\n#' {} \;
find docs/sources -type f -name '*.md' -exec sed -Ez -i 's#\n((aliases:\n *-)|aliases:\n)#\n\2#' {} \;

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Prettier

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2022-12-09 12:36:04 -04:00

2.2 KiB

aliases description keywords title weight
../unified-alerting/alerting-rules/edit-cortex-loki-namespace-group/
../unified-alerting/alerting-rules/edit-mimir-loki-namespace-group/
Edit Grafana Mimir or Loki rule groups and namespaces
grafana
alerting
guide
group
namespace
grafana mimir
loki
Grafana Mimir or Loki rule groups and namespaces 405

Grafana Mimir or Loki rule groups and namespaces

A namespace contains one or more groups. The rules within a group are run sequentially at a regular interval. The default interval is one (1) minute. You can rename Grafana Mimir or Loki rule namespaces and groups, and edit group evaluation intervals.

Group list

{{< figure src="/static/img/docs/alerting/unified/rule-list-edit-mimir-loki-icon-8-2.png" max-width="550px" caption="Alert details" >}}

Rename a namespace

To rename a namespace:

  1. In the Grafana menu, click the Alerting (bell) icon to open the Alerting page listing existing alerts.
  2. Find a Grafana Mimir or Loki managed rule with the group that belongs to the namespace you want to edit.
  3. Click the Edit (pen) icon.
  4. Enter a new name in the Namespace field, then click Save changes.

A new namespace is created and all groups are copied into this namespace from the old one. The old namespace is deleted.

Rename rule group or change the rule group evaluation interval

The rules within a group are run sequentially at a regular interval, the default interval is one (1) minute. You can modify this interval using the following instructions.

  1. n the Grafana menu, click the Alerting (bell) icon to open the Alerting page listing existing alerts.
  2. Find a Grafana Mimir or Loki managed rule with the group you want to edit.
  3. Click Edit (pen) icon.
  4. Modify the Rule group and Rule group evaluation interval information as necessary.
  5. Click Save changes.

When you rename the group, a new group with all the rules from the old group is created. The old group is deleted.

Group edit modal