From 9de8a394d6116cef39e650d6bf890d40168df4de Mon Sep 17 00:00:00 2001 From: Ilya Mashchenko <ilya@netdata.cloud> Date: Fri, 4 Aug 2023 19:31:46 +0300 Subject: [PATCH] meta: align left metrics, alerts, and config options (#15749) --- integrations/templates/alerts.md | 4 ++-- integrations/templates/metrics.md | 6 +++--- integrations/templates/setup.md | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/integrations/templates/alerts.md b/integrations/templates/alerts.md index 61e8c23725..ca8bd66e6e 100644 --- a/integrations/templates/alerts.md +++ b/integrations/templates/alerts.md @@ -4,8 +4,8 @@ The following alerts are available: -| Alert name | On metric | Description | -|:------------:|:---------:|:-----------:| +| Alert name | On metric | Description | +|:------------|:----------|:------------| [% for alert in entry.alerts %] | [ [[ alert.name ]] ]([[ alert.link ]]) | [[ alert.metric ]] | [[ alert.info ]] | [% endfor %] diff --git a/integrations/templates/metrics.md b/integrations/templates/metrics.md index b4c619f796..95fa7504be 100644 --- a/integrations/templates/metrics.md +++ b/integrations/templates/metrics.md @@ -18,8 +18,8 @@ The scope defines the instance that the metric belongs to. An instance is unique [% if scope.labels %] Labels: -| Label | Description | -|:-----------:|:----------------:| +| Label | Description | +|:-----------|:----------------| [% for label in scope.labels %] | [[ label.name ]] | [[ label.description ]] | [% endfor %] @@ -31,7 +31,7 @@ Metrics: | Metric | Dimensions | Unit |[% for a in entry.metrics.availability %] [[ a ]] |[% endfor %] -|:------:|:----------:|:----:|[% for a in entry.metrics.availability %]:---:|[% endfor %] +|:------|:----------|:----|[% for a in entry.metrics.availability %]:---:|[% endfor %] [% for metric in scope.metrics %] | [[ metric.name ]] | [% for d in metric.dimensions %][[ d.name ]][% if not loop.last %], [% endif %][% endfor %] | [[ metric.unit ]] |[% for a in entry.metrics.availability %] [% if not metric.availability|length or a in metric.availability %]•[% else %] [% endif %] |[% endfor %] diff --git a/integrations/templates/setup.md b/integrations/templates/setup.md index 1281467f2c..101f5bcbc8 100644 --- a/integrations/templates/setup.md +++ b/integrations/templates/setup.md @@ -63,7 +63,7 @@ There is no configuration file. {% details summary="[[ entry.setup.configuration.options.folding.title ]]" %} [% endif %] | Name | Description | Default | Required | -|:----:|:-----------:|:-------:|:--------:| +|:----|:-----------|:-------|:--------:| [% for item in entry.setup.configuration.options.list %] | [[ item.name ]] | [[ item.description ]] | [[ item.default ]] | [[ item.required ]] | [% endfor %]