Skip to content

Commit

Permalink
fix: export prometheus failed
Browse files Browse the repository at this point in the history
  • Loading branch information
lzf575 committed Mar 4, 2025
1 parent 6f2448d commit 082c37d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/ingester/exporters/exporters.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ func IsExportField(tag *config.StructTags, exportFieldCategoryBits uint64, expor
if config.K8S_LABEL&exportFieldCategoryBits != 0 {
return true
}
// for category_tag, category_metrics
if tag.CategoryBit&exportFieldCategoryBits != 0 && tag.SubCategoryBit&exportFieldCategoryBits != 0 {
// for category_tag, category_metrics. If tag.SubCategoryBit does not exist, SubCategory matching is always successful.
if tag.CategoryBit&exportFieldCategoryBits != 0 && (tag.SubCategoryBit == config.UNKNOWN_CATEGORY || tag.SubCategoryBit&exportFieldCategoryBits != 0) {
return true
}

Expand Down

0 comments on commit 082c37d

Please sign in to comment.