mirror of
https://github.com/storytold/terraform-aws-observability-accelerator.git
synced 2026-10-09 00:09:43 +00:00
Fix: collector failing to scrape targets (#174)
* Move external labels to resource attributes * Avoid DDoS with using 0.0.0.0 * Pre-commit
This commit is contained in:
@@ -113,7 +113,7 @@ See examples using this Terraform modules in the **Amazon EKS** section of [this
|
|||||||
| <a name="input_tags"></a> [tags](#input\_tags) | Additional tags (e.g. `map('BusinessUnit`,`XYZ`) | `map(string)` | `{}` | no |
|
| <a name="input_tags"></a> [tags](#input\_tags) | Additional tags (e.g. `map('BusinessUnit`,`XYZ`) | `map(string)` | `{}` | no |
|
||||||
| <a name="input_target_secret_name"></a> [target\_secret\_name](#input\_target\_secret\_name) | Target secret in Kubernetes to store the Grafana API Key Secret | `string` | `"grafana-admin-credentials"` | no |
|
| <a name="input_target_secret_name"></a> [target\_secret\_name](#input\_target\_secret\_name) | Target secret in Kubernetes to store the Grafana API Key Secret | `string` | `"grafana-admin-credentials"` | no |
|
||||||
| <a name="input_target_secret_namespace"></a> [target\_secret\_namespace](#input\_target\_secret\_namespace) | Target namespace of secret in Kubernetes to store the Grafana API Key Secret | `string` | `"grafana-operator"` | no |
|
| <a name="input_target_secret_namespace"></a> [target\_secret\_namespace](#input\_target\_secret\_namespace) | Target namespace of secret in Kubernetes to store the Grafana API Key Secret | `string` | `"grafana-operator"` | no |
|
||||||
| <a name="input_tracing_config"></a> [tracing\_config](#input\_tracing\_config) | Configuration object for traces collection to AWS X-Ray | <pre>object({<br> otlp_grpc_endpoint = string<br> otlp_http_endpoint = string<br> send_batch_size = number<br> timeout = string<br> })</pre> | <pre>{<br> "otlp_grpc_endpoint": "0.0.0.0:4317",<br> "otlp_http_endpoint": "0.0.0.0:4318",<br> "send_batch_size": 50,<br> "timeout": "30s"<br>}</pre> | no |
|
| <a name="input_tracing_config"></a> [tracing\_config](#input\_tracing\_config) | Configuration object for traces collection to AWS X-Ray | <pre>object({<br> otlp_grpc_endpoint = string<br> otlp_http_endpoint = string<br> send_batch_size = number<br> timeout = string<br> })</pre> | <pre>{<br> "otlp_grpc_endpoint": "localhost:4317",<br> "otlp_http_endpoint": "localhost:4318",<br> "send_batch_size": 50,<br> "timeout": "30s"<br>}</pre> | no |
|
||||||
|
|
||||||
## Outputs
|
## Outputs
|
||||||
|
|
||||||
|
|||||||
@@ -36,9 +36,6 @@ spec:
|
|||||||
global:
|
global:
|
||||||
scrape_interval: {{ .Values.globalScrapeInterval }}
|
scrape_interval: {{ .Values.globalScrapeInterval }}
|
||||||
scrape_timeout: {{ .Values.globalScrapeTimeout }}
|
scrape_timeout: {{ .Values.globalScrapeTimeout }}
|
||||||
external_labels:
|
|
||||||
cluster: {{ .Values.ekscluster }}
|
|
||||||
region: {{ .Values.region }}
|
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
- job_name: 'kubernetes-kubelet'
|
- job_name: 'kubernetes-kubelet'
|
||||||
scrape_interval: {{ .Values.globalScrapeInterval }}
|
scrape_interval: {{ .Values.globalScrapeInterval }}
|
||||||
@@ -1775,6 +1772,8 @@ spec:
|
|||||||
endpoint: {{ .Values.ampurl }}
|
endpoint: {{ .Values.ampurl }}
|
||||||
auth:
|
auth:
|
||||||
authenticator: sigv4auth
|
authenticator: sigv4auth
|
||||||
|
resource_to_telemetry_conversion:
|
||||||
|
enabled: true
|
||||||
logging:
|
logging:
|
||||||
loglevel: warn
|
loglevel: warn
|
||||||
extensions:
|
extensions:
|
||||||
@@ -1790,6 +1789,17 @@ spec:
|
|||||||
batch/metrics:
|
batch/metrics:
|
||||||
timeout: 30s
|
timeout: 30s
|
||||||
send_batch_size: 500
|
send_batch_size: 500
|
||||||
|
attributes/metrics:
|
||||||
|
actions:
|
||||||
|
- key: cluster
|
||||||
|
action: upsert
|
||||||
|
value: {{ .Values.ekscluster }}
|
||||||
|
- key: region
|
||||||
|
action: upsert
|
||||||
|
value: {{ .Values.region }}
|
||||||
|
- key: account_id
|
||||||
|
action: upsert
|
||||||
|
value: {{ .Values.accountId }}
|
||||||
{{ if .Values.enableTracing }}
|
{{ if .Values.enableTracing }}
|
||||||
batch/traces:
|
batch/traces:
|
||||||
timeout: {{ .Values.tracingTimeout }}
|
timeout: {{ .Values.tracingTimeout }}
|
||||||
@@ -1800,7 +1810,7 @@ spec:
|
|||||||
pipelines:
|
pipelines:
|
||||||
metrics:
|
metrics:
|
||||||
receivers: [prometheus, otlp]
|
receivers: [prometheus, otlp]
|
||||||
processors: [batch/metrics]
|
processors: [batch/metrics, attributes/metrics]
|
||||||
exporters: [logging, prometheusremotewrite]
|
exporters: [logging, prometheusremotewrite]
|
||||||
{{ if .Values.enableTracing }}
|
{{ if .Values.enableTracing }}
|
||||||
traces:
|
traces:
|
||||||
|
|||||||
@@ -210,8 +210,8 @@ variable "tracing_config" {
|
|||||||
})
|
})
|
||||||
|
|
||||||
default = {
|
default = {
|
||||||
otlp_grpc_endpoint = "0.0.0.0:4317"
|
otlp_grpc_endpoint = "localhost:4317"
|
||||||
otlp_http_endpoint = "0.0.0.0:4318"
|
otlp_http_endpoint = "localhost:4318"
|
||||||
send_batch_size = 50
|
send_batch_size = 50
|
||||||
timeout = "30s"
|
timeout = "30s"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user