Skip to content

Commit

Permalink
fix: log sample group by (#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
masaimu authored Jun 3, 2024
1 parent 3272941 commit 5253e57
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,9 @@ private QueryProto.Datasource buildSampleDatasource(DataSource dataSource, Trigg
long end = TimeRangeUtil.getEndTimestamp(alarmTime, dataSource);
String metric = dataSource.getMetric() + "_logsamples";

QueryProto.Datasource.Builder builder = QueryProto.Datasource.newBuilder().setStart(start)
.setEnd(end).setMetric(metric).addAllFilters(filterConvert(dataSource.getFilters()))
.setAggregator("sample").addAllGroupBy(Collections.singletonList("app"));
QueryProto.Datasource.Builder builder =
QueryProto.Datasource.newBuilder().setStart(start).setEnd(end).setMetric(metric)
.addAllFilters(filterConvert(dataSource.getFilters())).setAggregator("sample");
return builder.build();
}

Expand Down

0 comments on commit 5253e57

Please sign in to comment.