twitch_exporter

command module
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 15 Imported by: 0

README

Twitch Exporter

CircleCI Docker Pulls Go Report Card

Export Twitch metrics to Prometheus.

To run it:

make
./twitch_exporter [flags]

Exported Metrics

Metric Meaning Labels
twitch_channel_up Is the twitch channel Online. username, game
twitch_channel_viewers_total Is the total number of viewers on an online twitch channel. username, game
twitch_channel_views_total Is the total number of views on a twitch channel. username
twitch_channel_followers_total Is the total number of follower on a twitch channel. username
twitch_channel_subscribers_total Is 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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL