Create Twitch OAuth token here and copy it to docker-compose.yml. As well as yours Twitch nickname and selected twitch channel using #channelname
format.
Example:
...
TWITCH_TOKEN: 'oauth:pogu252454kekw' # Fake token for example
TWITCH_NICKNAME: 'foobar'
TWITCH_CHANNEL: '#lirik'
After that you can run the app using this command:
docker-compose up
*Requires docker-compose installed.
Prometheus now accessible at localhost:9090. Prometheus API Docs
For example to get the PPM metric you need to execute rate(ppm_total[1m]) * 60
query.
-
You can enable Grafana just by uncommenting these rows and accessing localhost:3000. It is provisioned and have example visualization and prometheus datasource.
-
# grafana: # image: grafana/grafana # depends_on: # - prometheus # ports: # - 3000:3000 # volumes: # - grafana_data:/var/lib/grafana # - ./grafana/provisioning/:/etc/grafana/provisioning/ # env_file: # - ./grafana/config.monitoring # networks: # - ppm-mon # restart: always```
- User and password is
admin:foobar
-