Skip to content

Commit

Permalink
Rename 'Standard' to 'Main'
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Pracucci <marco@pracucci.com>
  • Loading branch information
pracucci committed Aug 27, 2024
1 parent 20c6bcd commit 6fb2db8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13685,7 +13685,7 @@ data:
},
{
"selected": false,
"text": "Standard",
"text": "Main",
"value": "cluster=~\"$cluster\"\\, job=~\"($namespace)/((cortex|mimir|mimir-backend.*|mimir-read.*|querier.*|query-frontend.*|query-scheduler.*))\""
},
{
Expand All @@ -13694,7 +13694,7 @@ data:
"value": "cluster=~\"$cluster\"\\, job=~\"($namespace)/((ruler-querier.*|ruler-query-frontend.*|ruler-query-scheduler.*))\""
}
],
"query": "All : cluster=~\"$cluster\"\\, job=~\"($namespace)/((cortex|mimir|mimir-backend.*|mimir-read.*|querier.*|query-frontend.*|query-scheduler.*|ruler-querier.*|ruler-query-frontend.*|ruler-query-scheduler.*))\",Standard : cluster=~\"$cluster\"\\, job=~\"($namespace)/((cortex|mimir|mimir-backend.*|mimir-read.*|querier.*|query-frontend.*|query-scheduler.*))\",Remote ruler : cluster=~\"$cluster\"\\, job=~\"($namespace)/((ruler-querier.*|ruler-query-frontend.*|ruler-query-scheduler.*))\"",
"query": "All : cluster=~\"$cluster\"\\, job=~\"($namespace)/((cortex|mimir|mimir-backend.*|mimir-read.*|querier.*|query-frontend.*|query-scheduler.*|ruler-querier.*|ruler-query-frontend.*|ruler-query-scheduler.*))\",Main : cluster=~\"$cluster\"\\, job=~\"($namespace)/((cortex|mimir|mimir-backend.*|mimir-read.*|querier.*|query-frontend.*|query-scheduler.*))\",Remote ruler : cluster=~\"$cluster\"\\, job=~\"($namespace)/((ruler-querier.*|ruler-query-frontend.*|ruler-query-scheduler.*))\"",
"skipUrlSync": false,
"type": "custom",
"useTags": false
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions operations/mimir-mixin-compiled/dashboards/mimir-queries.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions operations/mimir-mixin/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@
alertmanager: ['alertmanager', 'cortex', 'mimir', 'mimir-backend.*'],
overrides_exporter: ['overrides-exporter', 'mimir-backend.*'],

// The following arejob matchers used to select all components in the read path.
standard_read_path: std.uniq(std.sort(self.query_frontend + self.query_scheduler + self.querier)),
ruler_read_path: std.uniq(std.sort(self.ruler_query_frontend + self.ruler_query_scheduler + self.ruler_querier)),
// The following are job matchers used to select all components in the read path.
main_read_path: std.uniq(std.sort(self.query_frontend + self.query_scheduler + self.querier)),
remote_ruler_read_path: std.uniq(std.sort(self.ruler_query_frontend + self.ruler_query_scheduler + self.ruler_querier)),

// The following are job matchers used to select all components in a given "path".
write: ['distributor.*', 'ingester.*', 'mimir-write.*'],
Expand Down
6 changes: 3 additions & 3 deletions operations/mimir-mixin/dashboards/queries.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ local filename = 'mimir-queries.json';
// (e.g. cortex_query_frontend_* metrics are only exposed by query-frontend) or on metrics
// that have other labels that allow to distinguish the component (e.g. component="query-frontend").
.addCustomTemplate('Read path', 'read_path_matcher', [
{ label: 'All', value: $.jobMatcher(std.uniq(std.sort($._config.job_names.standard_read_path + $._config.job_names.ruler_read_path))) },
{ label: 'Standard', value: $.jobMatcher($._config.job_names.standard_read_path) },
{ label: 'Remote ruler', value: $.jobMatcher($._config.job_names.ruler_read_path) },
{ label: 'All', value: $.jobMatcher(std.uniq(std.sort($._config.job_names.main_read_path + $._config.job_names.remote_ruler_read_path))) },
{ label: 'Main', value: $.jobMatcher($._config.job_names.main_read_path) },
{ label: 'Remote ruler', value: $.jobMatcher($._config.job_names.remote_ruler_read_path) },
])
.addRow(
$.row('Query-frontend')
Expand Down

0 comments on commit 6fb2db8

Please sign in to comment.