empty response from /metrics with yet another cloudwatch exporter (yace)

21 views
Skip to first unread message

Matthew Bachmann

unread,
Jun 25, 2025, 9:58:37 AMJun 25
to Prometheus Users
I'm running yet another cloudwatch exporter, and /metrics is giving me a 200 response code with content-length 0. It's just fully empty.

# curl -vvv localhost:5000/metrics
* Host localhost:5000 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:5000...
* Connected to localhost (::1) port 5000
> GET /metrics HTTP/1.1
> Host: localhost:5000
> User-Agent: curl/8.7.1
> Accept: */*
>
* Request completely sent off
< HTTP/1.1 200 OK
< Content-Type: text/plain; version=0.0.4; charset=utf-8; escaping=underscores
< Date: Wed, 25 Jun 2025 11:28:18 GMT
< Content-Length: 0
<
* Connection #0 to host localhost left intact



There are no errors in the logs.

{"time":"2025-06-25T11:26:53.448965862Z","level":"INFO","source":"main.go:259","msg":"Parsing config","version":"custom-build"}
{"time":"2025-06-25T11:26:53.449409489Z","level":"INFO","source":"main.go:344","msg":"Yace startup completed","version":"custom-build","version":"custom-build","feature_flags":""}


It responds to a request for "/" as expected, with "Thanks for using YACE :)"

I would expect to at least see metadata about itself.

This is my config file:

"apiVersion": "v1alpha1"
"customNamespace":
  "addCloudwatchTimestamp": true
  "length": 300
  "metrics":
  - "name": "mem_used_percent"
  - "name": "netstat_tcp_established"
  - "name": "netstat_tcp_wait_time"
  - "name": "swap_used_percent"
  - "name": "disk_used_percent"
  - "name": "disk_inodes_free"
  - "name": "cpu_usage_idle"
  - "name": "cpu_usage_iowait"
  - "name": "cpu_usage_system"
  - "name": "cpu_usage_user"
  - "name": "diskio_io_time"
  - "name": "diskio_read_bytes"
  - "name": "diskio_reads"
  - "name": "diskio_write_bytes"
  - "name": "diskio_writes"
  "name": "CWAgent"
  "namespace": "CWAgent"
  "period": 300
  "regions":
  - "us-east-1"
  "statistics":
  - "Average"


Matthew Bachmann

unread,
Jun 25, 2025, 11:17:23 AMJun 25
to Prometheus Users
I just realized that my config file is garbage.  Please disregard my question.
Reply all
Reply to author
Forward
0 new messages