Skip to content

Commit 79d53e9

Browse files
authored
Merge pull request #78 from autometrics-dev/77-fix-latency-dashboard-query-to-use-build-info-fallback
Add build_info fallback to latency queries in Explorer dashboard
2 parents f6f084a + 62f4dfd commit 79d53e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dashboards/Autometrics Function Explorer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@
349349
"uid": "${DS_PROMETHEUS}"
350350
},
351351
"editorMode": "code",
352-
"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)",
352+
"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)",
353353
"interval": "",
354354
"legendFormat": "",
355355
"range": true,

0 commit comments

Comments
 (0)