mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-10 04:49:02 +08:00
chore: use count instead of count distinct (#7711)
Signed-off-by: Shivanshu Raj Shrivastava <shivanshu1333@gmail.com>
This commit is contained in:
parent
c322657666
commit
b60588a749
@ -82,6 +82,15 @@ func BuildDomainList(thirdPartyApis *ThirdPartyApis) (*v3.QueryRangeParamsV3, er
|
|||||||
Operator: v3.FilterOperatorExists,
|
Operator: v3.FilterOperatorExists,
|
||||||
Value: "",
|
Value: "",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Key: v3.AttributeKey{
|
||||||
|
Key: "kind_string",
|
||||||
|
DataType: v3.AttributeKeyDataTypeString,
|
||||||
|
IsColumn: true,
|
||||||
|
},
|
||||||
|
Operator: "=",
|
||||||
|
Value: "Client",
|
||||||
|
},
|
||||||
}, thirdPartyApis.Filters),
|
}, thirdPartyApis.Filters),
|
||||||
},
|
},
|
||||||
Expression: "endpoints",
|
Expression: "endpoints",
|
||||||
@ -121,6 +130,15 @@ func BuildDomainList(thirdPartyApis *ThirdPartyApis) (*v3.QueryRangeParamsV3, er
|
|||||||
Operator: v3.FilterOperatorExists,
|
Operator: v3.FilterOperatorExists,
|
||||||
Value: "",
|
Value: "",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Key: v3.AttributeKey{
|
||||||
|
Key: "kind_string",
|
||||||
|
DataType: v3.AttributeKeyDataTypeString,
|
||||||
|
IsColumn: true,
|
||||||
|
},
|
||||||
|
Operator: "=",
|
||||||
|
Value: "Client",
|
||||||
|
},
|
||||||
}, thirdPartyApis.Filters),
|
}, thirdPartyApis.Filters),
|
||||||
},
|
},
|
||||||
Expression: "lastseen",
|
Expression: "lastseen",
|
||||||
@ -160,6 +178,15 @@ func BuildDomainList(thirdPartyApis *ThirdPartyApis) (*v3.QueryRangeParamsV3, er
|
|||||||
Operator: v3.FilterOperatorExists,
|
Operator: v3.FilterOperatorExists,
|
||||||
Value: "",
|
Value: "",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Key: v3.AttributeKey{
|
||||||
|
Key: "kind_string",
|
||||||
|
DataType: v3.AttributeKeyDataTypeString,
|
||||||
|
IsColumn: true,
|
||||||
|
},
|
||||||
|
Operator: "=",
|
||||||
|
Value: "Client",
|
||||||
|
},
|
||||||
}, thirdPartyApis.Filters),
|
}, thirdPartyApis.Filters),
|
||||||
},
|
},
|
||||||
Expression: "rps",
|
Expression: "rps",
|
||||||
@ -179,13 +206,13 @@ func BuildDomainList(thirdPartyApis *ThirdPartyApis) (*v3.QueryRangeParamsV3, er
|
|||||||
QueryName: "error",
|
QueryName: "error",
|
||||||
DataSource: v3.DataSourceTraces,
|
DataSource: v3.DataSourceTraces,
|
||||||
StepInterval: defaultStepInterval,
|
StepInterval: defaultStepInterval,
|
||||||
AggregateOperator: v3.AggregateOperatorCountDistinct,
|
AggregateOperator: v3.AggregateOperatorCount,
|
||||||
AggregateAttribute: v3.AttributeKey{
|
AggregateAttribute: v3.AttributeKey{
|
||||||
Key: "span_id",
|
Key: "span_id",
|
||||||
DataType: v3.AttributeKeyDataTypeString,
|
DataType: v3.AttributeKeyDataTypeString,
|
||||||
IsColumn: true,
|
IsColumn: true,
|
||||||
},
|
},
|
||||||
TimeAggregation: v3.TimeAggregationCountDistinct,
|
TimeAggregation: v3.TimeAggregationCount,
|
||||||
SpaceAggregation: v3.SpaceAggregationSum,
|
SpaceAggregation: v3.SpaceAggregationSum,
|
||||||
Filters: &v3.FilterSet{
|
Filters: &v3.FilterSet{
|
||||||
Operator: "AND",
|
Operator: "AND",
|
||||||
@ -209,6 +236,15 @@ func BuildDomainList(thirdPartyApis *ThirdPartyApis) (*v3.QueryRangeParamsV3, er
|
|||||||
Operator: v3.FilterOperatorExists,
|
Operator: v3.FilterOperatorExists,
|
||||||
Value: "",
|
Value: "",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Key: v3.AttributeKey{
|
||||||
|
Key: "kind_string",
|
||||||
|
DataType: v3.AttributeKeyDataTypeString,
|
||||||
|
IsColumn: true,
|
||||||
|
},
|
||||||
|
Operator: "=",
|
||||||
|
Value: "Client",
|
||||||
|
},
|
||||||
}, thirdPartyApis.Filters),
|
}, thirdPartyApis.Filters),
|
||||||
},
|
},
|
||||||
Expression: "error",
|
Expression: "error",
|
||||||
@ -229,13 +265,13 @@ func BuildDomainList(thirdPartyApis *ThirdPartyApis) (*v3.QueryRangeParamsV3, er
|
|||||||
QueryName: "total_span",
|
QueryName: "total_span",
|
||||||
DataSource: v3.DataSourceTraces,
|
DataSource: v3.DataSourceTraces,
|
||||||
StepInterval: defaultStepInterval,
|
StepInterval: defaultStepInterval,
|
||||||
AggregateOperator: v3.AggregateOperatorCountDistinct,
|
AggregateOperator: v3.AggregateOperatorCount,
|
||||||
AggregateAttribute: v3.AttributeKey{
|
AggregateAttribute: v3.AttributeKey{
|
||||||
Key: "span_id",
|
Key: "span_id",
|
||||||
DataType: v3.AttributeKeyDataTypeString,
|
DataType: v3.AttributeKeyDataTypeString,
|
||||||
IsColumn: true,
|
IsColumn: true,
|
||||||
},
|
},
|
||||||
TimeAggregation: v3.TimeAggregationCountDistinct,
|
TimeAggregation: v3.TimeAggregationCount,
|
||||||
SpaceAggregation: v3.SpaceAggregationSum,
|
SpaceAggregation: v3.SpaceAggregationSum,
|
||||||
Filters: &v3.FilterSet{
|
Filters: &v3.FilterSet{
|
||||||
Operator: "AND",
|
Operator: "AND",
|
||||||
@ -250,6 +286,15 @@ func BuildDomainList(thirdPartyApis *ThirdPartyApis) (*v3.QueryRangeParamsV3, er
|
|||||||
Operator: v3.FilterOperatorExists,
|
Operator: v3.FilterOperatorExists,
|
||||||
Value: "",
|
Value: "",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Key: v3.AttributeKey{
|
||||||
|
Key: "kind_string",
|
||||||
|
DataType: v3.AttributeKeyDataTypeString,
|
||||||
|
IsColumn: true,
|
||||||
|
},
|
||||||
|
Operator: "=",
|
||||||
|
Value: "Client",
|
||||||
|
},
|
||||||
}, thirdPartyApis.Filters),
|
}, thirdPartyApis.Filters),
|
||||||
},
|
},
|
||||||
Expression: "total_span",
|
Expression: "total_span",
|
||||||
@ -292,6 +337,15 @@ func BuildDomainList(thirdPartyApis *ThirdPartyApis) (*v3.QueryRangeParamsV3, er
|
|||||||
Operator: v3.FilterOperatorExists,
|
Operator: v3.FilterOperatorExists,
|
||||||
Value: "",
|
Value: "",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Key: v3.AttributeKey{
|
||||||
|
Key: "kind_string",
|
||||||
|
DataType: v3.AttributeKeyDataTypeString,
|
||||||
|
IsColumn: true,
|
||||||
|
},
|
||||||
|
Operator: "=",
|
||||||
|
Value: "Client",
|
||||||
|
},
|
||||||
}, thirdPartyApis.Filters),
|
}, thirdPartyApis.Filters),
|
||||||
},
|
},
|
||||||
Expression: "p99",
|
Expression: "p99",
|
||||||
@ -366,6 +420,15 @@ func BuildDomainInfo(thirdPartyApis *ThirdPartyApis) (*v3.QueryRangeParamsV3, er
|
|||||||
Operator: v3.FilterOperatorExists,
|
Operator: v3.FilterOperatorExists,
|
||||||
Value: "",
|
Value: "",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Key: v3.AttributeKey{
|
||||||
|
Key: "kind_string",
|
||||||
|
DataType: v3.AttributeKeyDataTypeString,
|
||||||
|
IsColumn: true,
|
||||||
|
},
|
||||||
|
Operator: "=",
|
||||||
|
Value: "Client",
|
||||||
|
},
|
||||||
}, thirdPartyApis.Filters),
|
}, thirdPartyApis.Filters),
|
||||||
},
|
},
|
||||||
Expression: "endpoints",
|
Expression: "endpoints",
|
||||||
@ -406,6 +469,15 @@ func BuildDomainInfo(thirdPartyApis *ThirdPartyApis) (*v3.QueryRangeParamsV3, er
|
|||||||
Operator: v3.FilterOperatorExists,
|
Operator: v3.FilterOperatorExists,
|
||||||
Value: "",
|
Value: "",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Key: v3.AttributeKey{
|
||||||
|
Key: "kind_string",
|
||||||
|
DataType: v3.AttributeKeyDataTypeString,
|
||||||
|
IsColumn: true,
|
||||||
|
},
|
||||||
|
Operator: "=",
|
||||||
|
Value: "Client",
|
||||||
|
},
|
||||||
}, thirdPartyApis.Filters),
|
}, thirdPartyApis.Filters),
|
||||||
},
|
},
|
||||||
Expression: "p99",
|
Expression: "p99",
|
||||||
@ -439,6 +511,15 @@ func BuildDomainInfo(thirdPartyApis *ThirdPartyApis) (*v3.QueryRangeParamsV3, er
|
|||||||
Operator: v3.FilterOperatorExists,
|
Operator: v3.FilterOperatorExists,
|
||||||
Value: "",
|
Value: "",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Key: v3.AttributeKey{
|
||||||
|
Key: "kind_string",
|
||||||
|
DataType: v3.AttributeKeyDataTypeString,
|
||||||
|
IsColumn: true,
|
||||||
|
},
|
||||||
|
Operator: "=",
|
||||||
|
Value: "Client",
|
||||||
|
},
|
||||||
}, thirdPartyApis.Filters),
|
}, thirdPartyApis.Filters),
|
||||||
},
|
},
|
||||||
Expression: "error_rate",
|
Expression: "error_rate",
|
||||||
@ -471,6 +552,15 @@ func BuildDomainInfo(thirdPartyApis *ThirdPartyApis) (*v3.QueryRangeParamsV3, er
|
|||||||
Operator: v3.FilterOperatorExists,
|
Operator: v3.FilterOperatorExists,
|
||||||
Value: "",
|
Value: "",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Key: v3.AttributeKey{
|
||||||
|
Key: "kind_string",
|
||||||
|
DataType: v3.AttributeKeyDataTypeString,
|
||||||
|
IsColumn: true,
|
||||||
|
},
|
||||||
|
Operator: "=",
|
||||||
|
Value: "Client",
|
||||||
|
},
|
||||||
}, thirdPartyApis.Filters),
|
}, thirdPartyApis.Filters),
|
||||||
},
|
},
|
||||||
Expression: "lastseen",
|
Expression: "lastseen",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user