aws-observability / terraform-aws-observability-accelerator

Open source project to help accelerate and ease observability setup on AWS environments
https://aws-observability.github.io/terraform-aws-observability-accelerator/
Apache License 2.0
288 stars 84 forks source link

[FEATURE] Custom collector config #196

Closed ktibi closed 1 year ago

ktibi commented 1 year ago

Once infrastructure monitoring is up and running, it should be possible to collect customizable sources of metrics.

It should be possible to add customizable configuration code for the scrape_configs part to create custom jobs.

For example, collect a prometheus endpoint directly from the adot collector.

Example :

module "eks_monitoring" {
.....
custom_jobs = <<EOF
  - job_name: nxrm
    scrape_interval: 15s
    scrape_timeout: 10s
    metrics_path: /service/metrics/prometheus
    scheme: http
    basic_auth:
      username: admin
      password: admin123
    static_configs:
    - targets:
      - host.docker.internal:8081
EOF
....
}