command
module
Version:
v1.0.4
Opens a new window with list of versions in this module.
Published: Jul 29, 2024
License: MIT
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Twitch Exporter
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
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.