Sign inSign up

damoun/twitch-exporter

By damoun

•Updated 7 months ago

Export Twitch metrics to Prometheus.

Image
Monitoring & observability
0

7.0K

damoun/twitch-exporter repository overview

⁠Twitch Exporter

CircleCI Docker Pulls Go Report Card

Export Twitch⁠ metrics to Prometheus⁠.

To run it:

make
./twitch_exporter [flags]

⁠Exported Metrics

MetricMeaningLabels
twitch_channel_upIs the twitch channel Online.username, game
twitch_channel_viewers_totalIs the total number of viewers on an online twitch channel.username, game
twitch_channel_views_totalIs the total number of views on a twitch channel.username
twitch_channel_followers_totalIs the total number of follower on a twitch channel.username
twitch_channel_subscribers_totalIs the total number of subscriber on a twitch channel.username, tier, gifted
⁠Flags
./twitch_exporter --help
  • twitch.channel: The name of a twitch channel.
  • twitch.client-id: The client ID to request the New Twitch API (helix).
  • twitch.access-token: The access token to request the New Twitch API (helix).
  • log.format: Set the log target and format. Example: logger:syslog?appname=bob&local=7 or logger:stdout?json=true
  • log.level: Logging level. info by default.
  • version: Show application version.
  • web.listen-address: Address to listen on for web interface and telemetry.
  • web.telemetry-path: Path under which to expose metrics.

⁠Useful Queries

TODO

⁠Using Docker

You can deploy this exporter using the damoun/twitch-exporter⁠ Docker image.

For example:

docker pull damoun/twitch-exporter

docker run -d -p 9184:9184 \
        damoun/twitch-exporter \
        --twitch.client-id <secret> \
        --twitch.access-token <secret> \
        --twitch.channel dam0un

Tag summary

Content type

Image

Digest

sha256:733ab88ec…

Size

9.4 MB

Last updated

almost 2 years ago

docker pull damoun/twitch-exporter