-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nomad does not register HTTP tag for server in Consul #23384
Comments
Hi @BrianHicks! I wasn't able to reproduce what you're seeing on either 1.8.0 or the current tip of If you were to run the server with
Also, if you run the following command against one of the servers, what's the response body look like? nomad operator api '/v1/agent/self' | jq '.config.Consuls' |
How interesting! I don't see any such message when running in debug; here's the output:
And here's the output of the command: [
{
"Addr": "127.0.0.1:8501",
"AllowUnauthenticated": true,
"Auth": "",
"AutoAdvertise": true,
"CAFile": "",
"CertFile": "",
"ChecksUseAdvertise": false,
"ClientAutoJoin": true,
"ClientFailuresBeforeCritical": 0,
"ClientFailuresBeforeWarning": 0,
"ClientHTTPCheckName": "Nomad Client HTTP Check",
"ClientServiceName": "nomad-client",
"EnableSSL": true,
"GRPCAddr": "",
"GRPCCAFile": "",
"KeyFile": "",
"Name": "default",
"Namespace": "",
"ServerAutoJoin": true,
"ServerFailuresBeforeCritical": 0,
"ServerFailuresBeforeWarning": 0,
"ServerHTTPCheckName": "Nomad Server HTTP Check",
"ServerRPCCheckName": "Nomad Server RPC Check",
"ServerSerfCheckName": "Nomad Server Serf Check",
"ServerServiceName": "nomad",
"ServiceIdentity": null,
"ServiceIdentityAuthMethod": "nomad-workloads",
"ShareSSL": null,
"Tags": null,
"TaskIdentity": null,
"TaskIdentityAuthMethod": "nomad-workloads",
"Timeout": 5000000000,
"Token": "<redacted>",
"VerifySSL": true
}
] |
Thanks @BrianHicks. I see that your Consul configuration doesn't have a I wouldn't expect to see any tags in that case, of course, but maybe the local agent has a cached version floating around from an earlier config? |
We didn't hear back on this so I'm going to close it out for now. If you have more information, we'll be happy to reopen. |
Nomad version
Operating system and Environment details
NixOS 24.05 running on Hetzner cloud VMs.
Issue
When
advertise.http
is set, Nomad is not registering ahttp
tag with Consul.rpc
andserf
are registered, though.(This is blocking me from scraping job metrics with Prometheus.)
Reproduction steps
Run Nomad using this config:
(Plus a side config I have not shared that sets
consul.token
.)Expected Result
Nomad registers a
nomad
service withhttp
,rpc
, andserf
tags.Actual Result
Nomad only registers
rpc
andserf
tags.Nomad Server logs (if appropriate)
The text was updated successfully, but these errors were encountered: