twitch_exporter icon indicating copy to clipboard operation
twitch_exporter copied to clipboard

twitch exporter not returning any metrics

Open coolapso opened this issue 7 months ago • 1 comments

Twitch exporter seems to not collect any metrics nor throw any logs. It also seems to be ignoring some flags as setting --log.level debug results in no extra logs and output seems to confirm so.

[coolapso@nebu]-[~/twitch_exporter]  main go v1.22.5
☸ virt01 ❯go run twitch_exporter.go --log.level debug \
        --twitch.client-id *  \
        --twitch.access-token *  \
        --twitch.channel cool4pso
ts=2024-07-20T14:41:42.026Z caller=twitch_exporter.go:250 level=info msg="Starting twitch_exporter" version="(version=, branch=, revision=unknown)"
ts=2024-07-20T14:41:42.026Z caller=twitch_exporter.go:251 level=info build_context="(go=go1.22.5, platform=linux/amd64, user=, date=, tags=unknown)"
ts=2024-07-20T14:41:42.027Z caller=tls_config.go:313 level=info msg="Listening on" address=[::]:9184
ts=2024-07-20T14:41:42.027Z caller=tls_config.go:316 level=info msg="TLS is disabled." http2=false address=[::]:9184

Metrics:

[coolapso@nebu]-[~/twitch_exporter]  main go v1.22.5
☸ virt01 ❯curl localhost:9184/metrics | grep twitch_
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  6235    0  6235    0     0  11224      0 --:--:-- --:--:-- --:--:-- 11214
# HELP twitch_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, goversion from which twitch_exporter was built, and the goos and goarch for the build.
# TYPE twitch_exporter_build_info gauge
twitch_exporter_build_info{branch="",goarch="amd64",goos="linux",goversion="go1.22.5",revision="unknown",tags="unknown",version=""} 1

For this I seem to have no clue where to start looking, would appreciate some help, ill be happy to work on it.

coolapso avatar Jul 20 '24 14:07 coolapso