Skip to content

Commit

Permalink
feat(meshmetrics): add dns metrics to basic profile
Browse files Browse the repository at this point in the history
Signed-off-by: Lukasz Dziedziak <[email protected]>
  • Loading branch information
lukidzi committed Dec 10, 2024
1 parent 86fd97e commit 6a790e2
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/kuma-dp/pkg/dataplane/metrics/profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,16 @@ var basicProfile = []selectorFunction{
Match: "envoy_cluster_membership_total",
}),
// end of dashboards
// start of dns stats
selectorToFilterFunction(v1alpha1.Selector{
Type: v1alpha1.PrefixSelectorType,
Match: "envoy_dns_filter",
}),
selectorToFilterFunction(v1alpha1.Selector{
Type: v1alpha1.PrefixSelectorType,
Match: "envoy_dns_cares",
}),
// end of dns stats
}

var basicProfileLabels = []selectorFunction{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,18 @@ envoy_server_memory_heap_size{envoy_cluster_name="example"} 1
# TYPE envoy_server_uptime counter
envoy_server_uptime{envoy_cluster_name="example"} 1

# TYPE envoy_dns_cares_not_found counter
envoy_dns_cares_not_found 1

# TYPE envoy_dns_cares_resolve_total counter
envoy_dns_cares_resolve_total 1

# TYPE envoy_dns_filter_srv_record_queries counter
envoy_dns_filter_srv_record_queries{envoy_dns_filter_prefix="kuma_dns"} 1

# TYPE envoy_dns_filter_unanswered_queries counter
envoy_dns_filter_unanswered_queries{envoy_dns_filter_prefix="kuma_dns"} 1

# TYPE envoy_dns_filter_unsupported_queries counter
envoy_dns_filter_unsupported_queries{envoy_dns_filter_prefix="kuma_dns"} 1

Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,18 @@ envoy_server_memory_heap_size{envoy_cluster_name="example"} 1

# TYPE envoy_server_uptime counter
envoy_server_uptime{envoy_cluster_name="example"} 1

# TYPE envoy_dns_cares_not_found counter
envoy_dns_cares_not_found{} 1

# TYPE envoy_dns_cares_resolve_total counter
envoy_dns_cares_resolve_total{} 1

# TYPE envoy_dns_filter_srv_record_queries counter
envoy_dns_filter_srv_record_queries{envoy_dns_filter_prefix="kuma_dns"} 1

# TYPE envoy_dns_filter_unanswered_queries counter
envoy_dns_filter_unanswered_queries{envoy_dns_filter_prefix="kuma_dns"} 1

# TYPE envoy_dns_filter_unsupported_queries counter
envoy_dns_filter_unsupported_queries{envoy_dns_filter_prefix="kuma_dns"} 1

0 comments on commit 6a790e2

Please sign in to comment.