hashicorp / hashicorp/consul

Configure custom metadata on gRPC healthchecks

Open
#12,686 5 comments 0 reactions 1 assignee Claimed by @Amier3 View on GitHub
help-wanted theme/health-checks type/enhancement
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

#### Feature Description

When configuring gRPC healthchecks, it might be useful to add metadata to the gRPC request, similarly to what we can do for HTTP healthchecks with HTTP headers.

Considering the example retrieved from your docs with added fields:

```
check = {
id = "mem-util"
name = "Service health status"
grpc = "127.0.0.1:12345/my_service"
grpc_use_tls = true
+ grpc_metadata = {
+ user-agent = "xxxx"
+ }
interval = "10s"
}
```

#### Use Case(s)

It can be used to:
* Set specific metadata keys to identify that the request is coming from Consul
* Set specific tracing information

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.