Skip to content

Commit

Permalink
chore: hardcode service name so queries aren't fired and cancelled be…
Browse files Browse the repository at this point in the history
…fore we clear the body
  • Loading branch information
gtk-grafana committed Sep 19, 2024
1 parent a97a501 commit 903c473
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export class ServiceSelectionScene extends SceneObjectBase<ServiceSelectionScene
if (serviceName.state.value === AGGREGATED_SERVICE_NAME) {
return `sum by (${LEVEL_VARIABLE_VALUE}) (sum_over_time({${AGGREGATED_SERVICE_NAME}=\`${service}\`} | logfmt | drop __error__ | unwrap count [$__auto]))`;
}
return `sum by (${LEVEL_VARIABLE_VALUE}) (count_over_time({${SERVICE_NAME_EXPR}=\`${service}\`} | drop __error__ [$__auto]))`;
return `sum by (${LEVEL_VARIABLE_VALUE}) (count_over_time({${SERVICE_NAME}=\`${service}\`} | drop __error__ [$__auto]))`;
}

private extendTimeSeriesLegendBus = (service: string, context: PanelContext, panel: VizPanel) => {
Expand Down

0 comments on commit 903c473

Please sign in to comment.