Merge pull request #10721 from ncauchois/fix_prometheus_remote_write_dashboard
mixin: Use url filter on Remote Write dashboard
This commit is contained in:
commit
7a07a279c9
|
@ -117,7 +117,7 @@ local template = grafana.template;
|
||||||
(
|
(
|
||||||
prometheus_remote_storage_highest_timestamp_in_seconds{cluster=~"$cluster", instance=~"$instance"}
|
prometheus_remote_storage_highest_timestamp_in_seconds{cluster=~"$cluster", instance=~"$instance"}
|
||||||
-
|
-
|
||||||
ignoring(remote_name, url) group_right(instance) (prometheus_remote_storage_queue_highest_sent_timestamp_seconds{cluster=~"$cluster", instance=~"$instance"} != 0)
|
ignoring(remote_name, url) group_right(instance) (prometheus_remote_storage_queue_highest_sent_timestamp_seconds{cluster=~"$cluster", instance=~"$instance", url=~"$url"} != 0)
|
||||||
)
|
)
|
||||||
|||,
|
|||,
|
||||||
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}',
|
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}',
|
||||||
|
@ -134,7 +134,7 @@ local template = grafana.template;
|
||||||
clamp_min(
|
clamp_min(
|
||||||
rate(prometheus_remote_storage_highest_timestamp_in_seconds{cluster=~"$cluster", instance=~"$instance"}[5m])
|
rate(prometheus_remote_storage_highest_timestamp_in_seconds{cluster=~"$cluster", instance=~"$instance"}[5m])
|
||||||
-
|
-
|
||||||
ignoring (remote_name, url) group_right(instance) rate(prometheus_remote_storage_queue_highest_sent_timestamp_seconds{cluster=~"$cluster", instance=~"$instance"}[5m])
|
ignoring (remote_name, url) group_right(instance) rate(prometheus_remote_storage_queue_highest_sent_timestamp_seconds{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m])
|
||||||
, 0)
|
, 0)
|
||||||
|||,
|
|||,
|
||||||
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}',
|
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}',
|
||||||
|
@ -151,9 +151,9 @@ local template = grafana.template;
|
||||||
rate(
|
rate(
|
||||||
prometheus_remote_storage_samples_in_total{cluster=~"$cluster", instance=~"$instance"}[5m])
|
prometheus_remote_storage_samples_in_total{cluster=~"$cluster", instance=~"$instance"}[5m])
|
||||||
-
|
-
|
||||||
ignoring(remote_name, url) group_right(instance) (rate(prometheus_remote_storage_succeeded_samples_total{cluster=~"$cluster", instance=~"$instance"}[5m]) or rate(prometheus_remote_storage_samples_total{cluster=~"$cluster", instance=~"$instance"}[5m]))
|
ignoring(remote_name, url) group_right(instance) (rate(prometheus_remote_storage_succeeded_samples_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m]) or rate(prometheus_remote_storage_samples_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m]))
|
||||||
-
|
-
|
||||||
(rate(prometheus_remote_storage_dropped_samples_total{cluster=~"$cluster", instance=~"$instance"}[5m]) or rate(prometheus_remote_storage_samples_dropped_total{cluster=~"$cluster", instance=~"$instance"}[5m]))
|
(rate(prometheus_remote_storage_dropped_samples_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m]) or rate(prometheus_remote_storage_samples_dropped_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m]))
|
||||||
|||,
|
|||,
|
||||||
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
||||||
));
|
));
|
||||||
|
@ -166,7 +166,7 @@ local template = grafana.template;
|
||||||
min_span=6,
|
min_span=6,
|
||||||
)
|
)
|
||||||
.addTarget(prometheus.target(
|
.addTarget(prometheus.target(
|
||||||
'prometheus_remote_storage_shards{cluster=~"$cluster", instance=~"$instance"}',
|
'prometheus_remote_storage_shards{cluster=~"$cluster", instance=~"$instance", url=~"$url"}',
|
||||||
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
||||||
));
|
));
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ local template = grafana.template;
|
||||||
span=4,
|
span=4,
|
||||||
)
|
)
|
||||||
.addTarget(prometheus.target(
|
.addTarget(prometheus.target(
|
||||||
'prometheus_remote_storage_shards_max{cluster=~"$cluster", instance=~"$instance"}',
|
'prometheus_remote_storage_shards_max{cluster=~"$cluster", instance=~"$instance", url=~"$url"}',
|
||||||
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
||||||
));
|
));
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@ local template = grafana.template;
|
||||||
span=4,
|
span=4,
|
||||||
)
|
)
|
||||||
.addTarget(prometheus.target(
|
.addTarget(prometheus.target(
|
||||||
'prometheus_remote_storage_shards_min{cluster=~"$cluster", instance=~"$instance"}',
|
'prometheus_remote_storage_shards_min{cluster=~"$cluster", instance=~"$instance", url=~"$url"}',
|
||||||
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
||||||
));
|
));
|
||||||
|
|
||||||
|
@ -199,7 +199,7 @@ local template = grafana.template;
|
||||||
span=4,
|
span=4,
|
||||||
)
|
)
|
||||||
.addTarget(prometheus.target(
|
.addTarget(prometheus.target(
|
||||||
'prometheus_remote_storage_shards_desired{cluster=~"$cluster", instance=~"$instance"}',
|
'prometheus_remote_storage_shards_desired{cluster=~"$cluster", instance=~"$instance", url=~"$url"}',
|
||||||
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
||||||
));
|
));
|
||||||
|
|
||||||
|
@ -210,7 +210,7 @@ local template = grafana.template;
|
||||||
span=6,
|
span=6,
|
||||||
)
|
)
|
||||||
.addTarget(prometheus.target(
|
.addTarget(prometheus.target(
|
||||||
'prometheus_remote_storage_shard_capacity{cluster=~"$cluster", instance=~"$instance"}',
|
'prometheus_remote_storage_shard_capacity{cluster=~"$cluster", instance=~"$instance", url=~"$url"}',
|
||||||
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
||||||
));
|
));
|
||||||
|
|
||||||
|
@ -222,7 +222,7 @@ local template = grafana.template;
|
||||||
span=6,
|
span=6,
|
||||||
)
|
)
|
||||||
.addTarget(prometheus.target(
|
.addTarget(prometheus.target(
|
||||||
'prometheus_remote_storage_pending_samples{cluster=~"$cluster", instance=~"$instance"} or prometheus_remote_storage_samples_pending{cluster=~"$cluster", instance=~"$instance"}',
|
'prometheus_remote_storage_pending_samples{cluster=~"$cluster", instance=~"$instance", url=~"$url"} or prometheus_remote_storage_samples_pending{cluster=~"$cluster", instance=~"$instance", url=~"$url"}',
|
||||||
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
||||||
));
|
));
|
||||||
|
|
||||||
|
@ -257,7 +257,7 @@ local template = grafana.template;
|
||||||
span=3,
|
span=3,
|
||||||
)
|
)
|
||||||
.addTarget(prometheus.target(
|
.addTarget(prometheus.target(
|
||||||
'rate(prometheus_remote_storage_dropped_samples_total{cluster=~"$cluster", instance=~"$instance"}[5m]) or rate(prometheus_remote_storage_samples_dropped_total{cluster=~"$cluster", instance=~"$instance"}[5m])',
|
'rate(prometheus_remote_storage_dropped_samples_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m]) or rate(prometheus_remote_storage_samples_dropped_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m])',
|
||||||
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
||||||
));
|
));
|
||||||
|
|
||||||
|
@ -268,7 +268,7 @@ local template = grafana.template;
|
||||||
span=3,
|
span=3,
|
||||||
)
|
)
|
||||||
.addTarget(prometheus.target(
|
.addTarget(prometheus.target(
|
||||||
'rate(prometheus_remote_storage_failed_samples_total{cluster=~"$cluster", instance=~"$instance"}[5m]) or rate(prometheus_remote_storage_samples_failed_total{cluster=~"$cluster", instance=~"$instance"}[5m])',
|
'rate(prometheus_remote_storage_failed_samples_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m]) or rate(prometheus_remote_storage_samples_failed_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m])',
|
||||||
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
||||||
));
|
));
|
||||||
|
|
||||||
|
@ -279,7 +279,7 @@ local template = grafana.template;
|
||||||
span=3,
|
span=3,
|
||||||
)
|
)
|
||||||
.addTarget(prometheus.target(
|
.addTarget(prometheus.target(
|
||||||
'rate(prometheus_remote_storage_retried_samples_total{cluster=~"$cluster", instance=~"$instance"}[5m]) or rate(prometheus_remote_storage_samples_retried_total{cluster=~"$cluster", instance=~"$instance"}[5m])',
|
'rate(prometheus_remote_storage_retried_samples_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m]) or rate(prometheus_remote_storage_samples_retried_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m])',
|
||||||
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
||||||
));
|
));
|
||||||
|
|
||||||
|
@ -290,7 +290,7 @@ local template = grafana.template;
|
||||||
span=3,
|
span=3,
|
||||||
)
|
)
|
||||||
.addTarget(prometheus.target(
|
.addTarget(prometheus.target(
|
||||||
'rate(prometheus_remote_storage_enqueue_retries_total{cluster=~"$cluster", instance=~"$instance"}[5m])',
|
'rate(prometheus_remote_storage_enqueue_retries_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m])',
|
||||||
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}'
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue