Metric "consul.dns.domain_query" in New version 1.19.1

Hello, i would like to ask you, if there is something wrong on my side, but after upgrade from 1.18.0 to 1.19.1, i have lost the metric ? :confused:
No mention in change log, nothing

agent:
	check_monitors = 0
	check_ttls = 0
	checks = 0
	services = 0
build:
	prerelease =
	revision = 9f62fb41
	version = 1.19.1
	version_metadata =
consul:
	acl = enabled
	bootstrap = false
	known_datacenters = 1
	leader = false
	leader_addr = xx
	server = true
raft:
	applied_index = 8249610
	commit_index = 8249610
	fsm_pending = 0
	last_contact = 37.083169ms
	last_log_index = 8249610
	last_log_term = 80
	last_snapshot_index = 8238376
	last_snapshot_term = 78
	latest_configuration = xx
	latest_configuration_index = 0
	num_peers = 2
	protocol_version = 3
	protocol_version_max = 3
	protocol_version_min = 0
	snapshot_version_max = 1
	snapshot_version_min = 0
	state = Follower
	term = 80
runtime:
	arch = amd64
	cpu_count = 4
	goroutines = 538
	max_procs = 4
	os = linux
	version = go1.22.5
serf_lan:
	coordinate_resets = 0
	encrypted = true
	event_queue = 0
	event_time = 73
	failed = 1
	health_score = 0
	intent_queue = 0
	left = 0
	member_time = 87916
	members = 102
	query_queue = 0
	query_time = 2
serf_wan:
	coordinate_resets = 0
	encrypted = true
	event_queue = 0
	event_time = 1
	failed = 0
	health_score = 0
	intent_queue = 0
	left = 0
	member_time = 48
	members = 3
	query_queue = 0
Consul v1.19.1
Revision 9f62fb41
Build Date 2024-07-11T14:47:27Z

When i use /v1/agent/metrics on version 1.18.0, then i can see this metric but on the same endpoint on version 1.19.1, i can not see that

Hi @Spuxy,

Consul 1.19.0 switched to a new DNS implementation, which could be why the metric is not showing up.

ref: 1.19.x | Consul | HashiCorp Developer

As a workaround, you can switch back to the v1 implementation using the following config:

experiments = ["v1dns"]

yes but in upstream’s doc, there is still mention about that metric Agents - Enable Telemetry Metrics | Consul | HashiCorp Developer

My actual setup is that all cluster servers (masters) are upgraded to 1.19.1 but all clients have 1.18, and im worried right now, that when i have different versions between masters and clients, can causes this when i hit /v1/agent/metrics?

@Spuxy, Thanks for raising the GH issue regarding this.

Linking the issue here for future reference: upgrade 1.19.1 - lost of metric - consul.dns.domain_query · Issue #21574 · hashicorp/consul · GitHub