-
Notifications
You must be signed in to change notification settings - Fork 334
Datadog Integration #3407
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
Merged
Merged
Datadog Integration #3407
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
8b6a9d8
datadog-integration: updated consul-server agent telemetry-config.jso…
natemollica-nm d27ea03
datadog-integration: updated consul-server agent telemetry-config.jso…
natemollica-nm 8a922e5
changelog entry update
natemollica-nm e792599
datadog-integration: updated consul-server agent server.config (enabl…
natemollica-nm 3b27810
curt pr review changes (minus extraConfig templating verification cha…
natemollica-nm f66f0f3
global.metrics.AgentMetrics -> global.metrics.enableAgentMetrics
natemollica-nm 2dc237b
dogstatsd and otlp mutually exclusive verification checks
natemollica-nm e4a234a
breaking changes now incorporated into consul.validateExtraConfig hel…
natemollica-nm 6c7d488
extraConfig hash updates post merge conflict update
natemollica-nm 8e7fd4c
fix helpers.tpl consul.extraConfig from merge --> /consul/tmp/extra-c…
natemollica-nm f88bf52
update changelog .txt to match new PR number
natemollica-nm 96692a2
updated server-statefulset.yaml to correct ad.datadoghq.com/consul.lo…
natemollica-nm ae4ac1a
fix helpers.tpl consul.extraConfig from merge --> /consul/tmp/extra-c…
natemollica-nm d01568a
fix helpers.tpl consul.extraConfig from merge --> /consul/tmp/extra-c…
natemollica-nm 307991b
update UDP dogstatsdPort behavior to exclude including a port value i…
natemollica-nm a139223
update _helpers.tpl consul.ValidateDatadogConfiguration func to accou…
natemollica-nm 2d3f39b
update server-statefulset.yaml to exclude prometheus.io/ annotations …
natemollica-nm 5559f02
update server-statefulset.yaml to exclude prometheus.io/ annotations …
natemollica-nm 436884b
correct otlp protocol helpers.tpl check to lower-case the protocol to…
natemollica-nm 0c4a8b4
fix server-acl-init command_test.go for datadog token policy - datace…
natemollica-nm 85abcc8
add in server-statefulset bats test for extraConfig validation testing
natemollica-nm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| ```release-note:feature | ||
| helm: introduces `global.metrics.datadog` overrides to streamline consul-k8s datadog integration. | ||
| helm: introduces `server.enableAgentDebug` to expose agent [`enable_debug`](https://developer.hashicorp.com/consul/docs/agent/config/config-files#enable_debug) configuration. | ||
| helm: introduces `global.metrics.disableAgentHostName` to expose agent [`telemetry.disable_hostname`](https://developer.hashicorp.com/consul/docs/agent/config/config-files#telemetry-disable_hostname) configuration. | ||
| helm: introduces `global.metrics.enableHostMetrics` to expose agent [`telemetry.enable_host_metrics`](https://developer.hashicorp.com/consul/docs/agent/config/config-files#telemetry-enable_host_metrics) configuration. | ||
| helm: introduces `global.metrics.prefixFilter` to expose agent [`telemetry.prefix_filter`](https://developer.hashicorp.com/consul/docs/agent/config/config-files#telemetry-prefix_filter) configuration. | ||
| helm: introduces `global.metrics.datadog.dogstatsd.dogstatsdAddr` to expose agent [`telemetry.dogstatsd_addr`](https://developer.hashicorp.com/consul/docs/agent/config/config-files#telemetry-dogstatsd_addr) configuration. | ||
| helm: introduces `global.metrics.datadog.dogstatsd.dogstatsdTags` to expose agent [`telemetry.dogstatsd_tags`](https://developer.hashicorp.com/consul/docs/agent/config/config-files#telemetry-dogstatsd_tags) configuration. | ||
| helm: introduces required `ad.datadoghq.com/` annotations and `tags.datadoghq.com/` labels for integration with [Datadog Autodiscovery](https://docs.datadoghq.com/integrations/consul/?tab=containerized) and [Datadog Unified Service Tagging](https://docs.datadoghq.com/getting_started/tagging/unified_service_tagging/?tab=kubernetes#serverless-environment) for Consul. | ||
| helm: introduces automated unix domain socket hostPath mounting for containerized integration with datadog within consul-server statefulset. | ||
| helm: introduces `global.metrics.datadog.otlp` override options to allow OTLP metrics forwarding to Datadog Agent. | ||
| control-plane: adds `server-acl-init` datadog agent token creation for datadog integration. | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| {{- if .Values.global.metrics.datadog.enabled }} | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: Role | ||
| metadata: | ||
| name: {{ template "consul.fullname" . }}-datadog-metrics | ||
| namespace: {{ .Release.Namespace }} | ||
| labels: | ||
| app: datadog | ||
| heritage: {{ .Release.Service }} | ||
| release: {{ .Release.Name }} | ||
| component: agent | ||
| {{- if (or (and .Values.global.openshift.enabled .Values.server.exposeGossipAndRPCPorts) .Values.global.enablePodSecurityPolicies) }} | ||
| {{- if .Values.global.enablePodSecurityPolicies }} | ||
| rules: | ||
| - apiGroups: ["policy"] | ||
| resources: ["podsecuritypolicies"] | ||
| resourceNames: | ||
| - {{ template "consul.fullname" . }}-datadog-metrics | ||
| verbs: | ||
| - use | ||
| {{- end }} | ||
| {{- if (and .Values.global.openshift.enabled .Values.server.exposeGossipAndRPCPorts ) }} | ||
| - apiGroups: ["security.openshift.io"] | ||
| resources: ["securitycontextconstraints"] | ||
| resourceNames: | ||
| - {{ template "consul.fullname" . }}-datadog-metrics | ||
| verbs: | ||
| - use | ||
| {{- end }} | ||
| {{- else}} | ||
| rules: | ||
| - apiGroups: [ "" ] | ||
| resources: [ "secrets" ] | ||
| resourceNames: | ||
| - {{ .Release.Namespace }}-datadog-agent-metrics-acl-token | ||
| verbs: [ "get", "watch", "list" ] | ||
| {{- end }} | ||
| {{- end }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| {{- if .Values.global.metrics.datadog.enabled }} | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: RoleBinding | ||
| metadata: | ||
|
natemollica-nm marked this conversation as resolved.
|
||
| name: {{ template "consul.fullname" . }}-datadog-metrics | ||
| namespace: {{ .Release.Namespace }} | ||
| labels: | ||
| app: {{ template "consul.name" . }} | ||
| chart: {{ template "consul.chart" . }} | ||
| heritage: {{ .Release.Service }} | ||
| release: {{ .Release.Name }} | ||
| component: agent | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| apiGroup: "" | ||
| name: datadog-agent | ||
| namespace: datadog | ||
| - kind: ServiceAccount | ||
| apiGroup: "" | ||
| name: datadog-cluster-agent | ||
| namespace: datadog | ||
| roleRef: | ||
| kind: Role | ||
| name: {{ template "consul.fullname" . }}-datadog-metrics | ||
| apiGroup: "" | ||
| {{- end }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.