diff --git a/dashboards/Autometrics Function Explorer.json b/dashboards/Autometrics Function Explorer.json index 9efcb4b..a881dcf 100644 --- a/dashboards/Autometrics Function Explorer.json +++ b/dashboards/Autometrics Function Explorer.json @@ -349,7 +349,7 @@ "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "label_replace(\n histogram_quantile(0.99, \n sum by (le, function, module, commit, version) (\n rate(function_calls_duration_bucket{function=~\"$function\"}[$__rate_interval])\n # Attach the `version` and `commit` labels from the `build_info` metric \n * on (instance, job) group_left(version, commit) last_over_time(build_info[$__rate_interval])\n )\n ),\n # Add the label {percentile_latency=\"99\"} to the time series\n \"percentile_latency\", \"99\", \"\", \"\"\n)\nor\nlabel_replace(\n histogram_quantile(0.95, \n sum by (le, function, module, commit, version) (\n rate(function_calls_duration_bucket{function=~\"$function\"}[$__rate_interval])\n # Attach the `version` and `commit` labels from the `build_info` metric \n * on (instance, job) group_left(version, commit) last_over_time(build_info[$__rate_interval])\n )\n ),\n # Add the label {percentile_latency=\"95\"} to the time series\n \"percentile_latency\", \"95\", \"\", \"\"\n)", + "expr": "label_replace(\n histogram_quantile(0.99, \n sum by (le, function, module, commit, version) (\n rate(function_calls_duration_bucket{function=~\"$function\"}[$__rate_interval])\n # Attach the `version` and `commit` labels from the `build_info` metric \n * on(instance, job) group_left(version, commit) (last_over_time(build_info[$__rate_interval]) or on (instance, job) up)\n )\n ),\n # Add the label {percentile_latency=\"99\"} to the time series\n \"percentile_latency\", \"99\", \"\", \"\"\n)\nor\nlabel_replace(\n histogram_quantile(0.95, \n sum by (le, function, module, commit, version) (\n rate(function_calls_duration_bucket{function=~\"$function\"}[$__rate_interval])\n # Attach the `version` and `commit` labels from the `build_info` metric \n * on(instance, job) group_left(version, commit) (last_over_time(build_info[$__rate_interval]) or on (instance, job) up)\n )\n ),\n # Add the label {percentile_latency=\"95\"} to the time series\n \"percentile_latency\", \"95\", \"\", \"\"\n)", "interval": "", "legendFormat": "", "range": true,