Skip to content

Commit

Permalink
Merge pull request #78 from autometrics-dev/77-fix-latency-dashboard-…
Browse files Browse the repository at this point in the history
…query-to-use-build-info-fallback

Add build_info fallback to latency queries in Explorer dashboard
  • Loading branch information
brettimus authored Jul 17, 2023
2 parents f6f084a + 62f4dfd commit 79d53e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboards/Autometrics Function Explorer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 79d53e9

Please sign in to comment.