Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure. https://www.consul.io
Go to file
Melissa Kam c112a6632d
[CC-7042] Update and enable the HCP metrics sink in the HCP manager (#20072)
* Option to set HCP client at runtime

Allows us to initially set a nil HCP client for the
telemetry provider and update it later.

* Set telemetry provider HCP client in HCP manager

Set the telemetry provider as a dependency and pass it to
the manager. Update the telemetry provider's HCP client
when the HCP manager starts.

* Add a provider interface for the metrics client

This provider will allow us to configure and reconfigure the
retryable HTTP client and the headers for the metrics client.

* Move HTTP retryable client to separate file

Copied directly from the metrics client.

* Abstract HCP specific values in HTTP client

Remove HCP specific references and instead initiate with
a generic TLS configuration and authentication source.

* Set up HTTP client and headers in the provider

Move setup from the metrics client to the HCP telemetry
provider.

* Update the telemetry provider in the HCP manager

Initialize the provider without the HCP configs and then update
it in the HCP manager to enable it.

* Improve test assertion, fix method comment

* Move client provider to metrics client

* Stop the manager on setup error

* Add separate lock for http configuration

* Start telemetry provider in HCP manager

* Update HCP client and config as part of Run

* Remove option to set config at initialization

* Simplify and clean up setting HCP configs

* Add test for telemetry provider Run method

* Fix race condition

* Use clone of HTTP headers

* Only allow initial update and run once
2024-01-16 10:46:12 -06:00
.changelog [NET-4968] Upgrade Go to 1.21 (#20062) 2024-01-12 09:57:38 -05:00
.github always run agent tests alone on their own runner (#20199) 2024-01-12 13:40:31 -07:00
.release [NET-6969] security: Re-enable Go Module + secrets security scans for release branches (#19978) 2023-12-21 15:11:05 +00:00
acl [NET-6640] Adds "Policy" BindType to BindingRule (#19499) 2023-11-20 13:11:08 +00:00
agent [CC-7042] Update and enable the HCP metrics sink in the HCP manager (#20072) 2024-01-16 10:46:12 -06:00
api [NET-4968] Upgrade Go to 1.21 (#20062) 2024-01-12 09:57:38 -05:00
bench Gets benchmarks running again and does a rough pass for 0.7.1. 2016-11-29 13:02:26 -08:00
build-support In-Memory gRPC (#19942) 2024-01-12 11:54:07 -05:00
command add acl token (#20086) 2024-01-16 08:25:50 -08:00
connect Retry lint fixes (#19151) 2023-12-06 12:11:32 -05:00
contributing Move contributing to docs 2021-08-30 16:17:09 -04:00
docs Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
envoyextensions [NET-7009] security: update x/crypto to 0.17.0 (#20023) 2023-12-21 20:11:19 +00:00
grafana NET-6862: adding disk-io and disk usage metrics to k8s grafana dashboard (#20169) 2024-01-16 22:14:17 +05:30
grpcmocks/proto-public Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
internal In-Memory gRPC (#19942) 2024-01-12 11:54:07 -05:00
ipaddr [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
lib remove the skipping of slow tests in go-tests-ce and go-test-enterprise (#20139) 2024-01-10 20:39:34 -07:00
logging In-Memory gRPC (#19942) 2024-01-12 11:54:07 -05:00
proto Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
proto-public In-Memory gRPC (#19942) 2024-01-12 11:54:07 -05:00
sdk [DO NOT MERGE UNTIL EOY] update year in LICENSE and copywrite files (#19780) 2024-01-02 08:41:12 -08:00
sentinel Remove old build tags (#19128) 2023-10-10 10:58:06 -04:00
service_os Remove old build tags (#19128) 2023-10-10 10:58:06 -04:00
snapshot [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
test integ test: import missing changes from ent (#20187) 2024-01-12 13:27:36 -05:00
test-integ upgrade test (LTS): utility functions to support ent users (#20186) 2024-01-12 18:35:44 -05:00
testing/deployer upgrade test (LTS): utility functions to support ent users (#20186) 2024-01-12 18:35:44 -05:00
testrpc feat(v2): add consul service and workloads to catalog (#20077) 2024-01-03 15:14:42 -05:00
tlsutil [Cloud][CC-6925] Updates to pushing server state (#19682) 2023-12-04 10:25:18 -05:00
tools/internal-grpc-proxy [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
troubleshoot NET-6943 - Replace usage of deprecated Envoy field envoy.config.router.v3.WeightedCluster.total_weight. (#20011) 2023-12-22 19:49:44 +00:00
types [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
ui fix: stop re-clicking dc dropdown in dc-switch test (#20127) 2024-01-09 11:39:38 -07:00
version test: add test helper to detect if the current build is enterprise (#19201) 2023-11-13 10:30:07 -06:00
website docs: fix partition target in samenessgroups (#20192) 2024-01-15 18:23:42 +02:00
.copywrite.hcl [DO NOT MERGE UNTIL EOY] update year in LICENSE and copywrite files (#19780) 2024-01-02 08:41:12 -08:00
.dockerignore Update the scripting 2018-06-14 21:42:47 -04:00
.gitignore add peering_commontopo tests [NET-3700] (#17951) 2023-07-18 16:41:30 -07:00
.go-version [NET-4968] Upgrade Go to 1.21 (#20062) 2024-01-12 09:57:38 -05:00
.golangci.yml [NET-4968] Upgrade Go to 1.21 (#20062) 2024-01-12 09:57:38 -05:00
.grpcmocks.yaml In-Memory gRPC (#19942) 2024-01-12 11:54:07 -05:00
.pre-commit-config.yaml unhack: add pre-commit guidelines (#19617) 2023-11-15 10:57:40 -06:00
CHANGELOG.md update changelog (#19966) 2023-12-15 10:03:01 -08:00
Dockerfile Dockerfile: bump up to `ubi-minimal:9.3` (#20014) 2023-12-21 11:55:20 -08:00
Dockerfile-windows Envoy Integration Test Windows (#18007) 2023-07-21 20:26:00 +05:30
LICENSE [DO NOT MERGE UNTIL EOY] update year in LICENSE and copywrite files (#19780) 2024-01-02 08:41:12 -08:00
Makefile [NET-4968] Upgrade Go to 1.21 (#20062) 2024-01-12 09:57:38 -05:00
README.md Update README.md (#19413) 2023-10-31 08:45:47 -07:00
buf.work.yaml [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
go.mod In-Memory gRPC (#19942) 2024-01-12 11:54:07 -05:00
go.sum In-Memory gRPC (#19942) 2024-01-12 11:54:07 -05:00
main.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
scan.hcl [NET-6969] security: Re-enable Go Module + secrets security scans for release branches (#19978) 2023-12-21 15:11:05 +00:00

README.md

Consul logo Consul

License: BUSL-1.1 Docker Pulls Go Report Card

Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.

Consul provides several key features:

  • Multi-Datacenter - Consul is built to be datacenter aware, and can support any number of regions without complex configuration.

  • Service Mesh - Consul Service Mesh enables secure service-to-service communication with automatic TLS encryption and identity-based authorization. Applications can use sidecar proxies in a service mesh configuration to establish TLS connections for inbound and outbound connections with Transparent Proxy.

  • API Gateway - Consul API Gateway manages access to services within Consul Service Mesh, allow users to define traffic and authorization policies to services deployed within the mesh.

  • Service Discovery - Consul makes it simple for services to register themselves and to discover other services via a DNS or HTTP interface. External services such as SaaS providers can be registered as well.

  • Health Checking - Health Checking enables Consul to quickly alert operators about any issues in a cluster. The integration with service discovery prevents routing traffic to unhealthy hosts and enables service level circuit breakers.

  • Dynamic App Configuration - An HTTP API that allows users to store indexed objects within Consul, for storing configuration parameters and application metadata.

Consul runs on Linux, macOS, FreeBSD, Solaris, and Windows and includes an optional browser based UI. A commercial version called Consul Enterprise is also available.

Please note: We take Consul's security and our users' trust very seriously. If you believe you have found a security issue in Consul, please responsibly disclose by contacting us at security@hashicorp.com.

Quick Start

A few quick start guides are available on the Consul website:

Documentation

Full, comprehensive documentation is available on the Consul website: https://consul.io/docs

Contributing

Thank you for your interest in contributing! Please refer to CONTRIBUTING.md for guidance. For contributions specifically to the browser based UI, please refer to the UI's README.md for guidance.