|
1 | 1 | {% assign version = page.version.version | replace: ".", "" %} |
| 2 | +{% assign advanced_excluded_metrics = "sys.cpu.host.combined.percent-normalized|sys.host.disk.iopsinprogress|sql.mem.root.current|storage.write-stalls" | split: "|" %} |
2 | 3 | {% comment %}DEBUG: {{ version }}{% endcomment %} |
3 | 4 |
|
4 | 5 | {% comment %} STEP 1. Assign variables specific to deployment {% endcomment %} |
@@ -122,7 +123,9 @@ The **Usage** column explains why each metric is important to visualize and how |
122 | 123 | {% for metric in essential_metrics %} |
123 | 124 | {% comment %} STEP 4d. Exclude SQL metrics that will be placed in special categories {% endcomment %} |
124 | 125 | {% unless category_name == SQL %} |
125 | | - {% unless metric.name contains "backup" or metric.name contains "BACKUP" or metric.name contains "create_stats" %} |
| 126 | + {% comment %} Hide metrics that should not appear for advanced deployment {% endcomment %} |
| 127 | + {% unless include.deployment == 'advanced' and advanced_excluded_metrics contains metric.name %} |
| 128 | + {% unless metric.name contains "backup" or metric.name contains "BACKUP" or metric.name contains "create_stats" %} |
126 | 129 |
|
127 | 130 | {% comment %} Transforms to match datadog_id {% endcomment %} |
128 | 131 | {% assign input_metric = metric.name %} |
@@ -162,7 +165,8 @@ The **Usage** column explains why each metric is important to visualize and how |
162 | 165 | <td>{{ metric.how_to_use }}</td> |
163 | 166 | </tr> |
164 | 167 |
|
165 | | - {% endunless %}{% comment %}unless metric.name contains "backup" or metric.name contains "BACKUP" or metric.name contains "create_stats"{% endcomment %} |
| 168 | + {% endunless %}{% comment %}unless metric.name contains "backup" or metric.name contains "BACKUP" or metric.name contains "create_stats"{% endcomment %} |
| 169 | + {% endunless %}{% comment %}unless metric is excluded for advanced deployment{% endcomment %} |
166 | 170 | {% endunless %}{% comment %}unless category_name == SQL{% endcomment %} |
167 | 171 | {% endfor %}{% comment %}for metric in essential_metrics{% endcomment %} |
168 | 172 | {% endfor %}{% comment %}for layer in layer_names_array{% endcomment %} |
@@ -296,4 +300,4 @@ The **Usage** column explains why each metric is important to visualize and how |
296 | 300 | - [Visualize metrics in Grafana]({% link {{ page.version.version }}/monitor-cockroachdb-with-prometheus.md %}#step-5-visualize-metrics-in-grafana) |
297 | 301 | - [Custom Chart Debug Page]({% link {{ page.version.version }}/ui-custom-chart-debug-page.md %}) |
298 | 302 | - [Cluster API]({% link {{ page.version.version }}/cluster-api.md %}) |
299 | | -- [Essential Alerts]({% link {{ page.version.version }}/essential-alerts-self-hosted.md %}) |
| 303 | +- [Essential Alerts]({% link {{ page.version.version }}/essential-alerts-self-hosted.md %}) |
0 commit comments