Skip to content

Grafana Kindling WorkLoad Detail 无法查看只有出流量的pod #517

@llhhbc

Description

@llhhbc

Is your feature request related to a problem? Please describe.

测试发下,如果这个pod只有出去的流量,没有入流量,无法在Kindling WorkLoad Detail界面中筛选出该pod

Describe the solution you'd like

func getKindlingPrefix(isServer bool) string {
	var kindMark string
	if isServer {
		kindMark = EntityPrefix
	} else {
		kindMark = TopologyPrefix
	}
	return NPMPrefixKindling + "_" + kindMark + "_"
}

这里有明确的限制,只有isServer的流量,会生成 kindling_entity_request_total指标,而只有出口流量,则只会生成kindling_topology_request_total指标,导致界面上无法筛选。筛选规则为:label_values(kindling_entity_request_total{namespace ="$namespace"} , workload_name)

Describe alternatives you've considered

我尝试改成{__name__=~"kindling_topology_request_total|kindling_entity_request_total"},但标签不统一。可能需要单独出一个针对这种只有出口流量的页面。

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions