https://github.com/thetorminal/zabbix-github-traffic
Track the traffic on your github repo: views, clones, watchers, stargazers
https://github.com/thetorminal/zabbix-github-traffic
github github-api github-stats zabbix zabbix-templates
Last synced: 1 day ago
JSON representation
Track the traffic on your github repo: views, clones, watchers, stargazers
- Host: GitHub
- URL: https://github.com/thetorminal/zabbix-github-traffic
- Owner: thetorminal
- Created: 2025-02-27T21:46:12.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-18T23:41:23.000Z (6 months ago)
- Last Synced: 2025-07-19T04:02:17.995Z (6 months ago)
- Topics: github, github-api, github-stats, zabbix, zabbix-templates
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zabbix Github Repository Traffic Monitoring
Monitoring of the traffic on your github repository with Zabbix.
## Description
Based on the official Github Template from Zabbix: [Zabbix Template - Github](https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/github_http?at=release/7.2)
Shows amount of traffic on your github repository. View the Dashboard in the template to get an overview over:
* Stargazers
* Watchers
* Unqiue and all views
* Unique and all clones
Example Dashboard:

Tested with:
* Zabbix Server 7.0.5
* Github API 2022-11-28
## Getting Started
### Dependencies
* Github with an access token
* Zabbix Server
### Installing
#### Github:
* Get an access token for your Github account [Github Access Tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)
#### On Zabbix frontend server:
- download and import the template `github-repository-traffic.yaml`
- create a new host (named like your repo), add the template `Github repository traffic` to the host and add Interface "Agent" (127.0.0.1:10050)
Add following MACROS to the new host:
- {$GITHUB.API.TOKEN} = your API Token
- {$GITHUB.REPO.NAME} = name of your repo you want to monitor
- {$GITHUB.REPO.OWNER} = name of owner of repo
Now you can view the traffic on your github repository. Use the dashboard from the template, or add the items to your own dashboard!
## Informations
API Reference "REST API endpoints for repository traffic":
* [Github API - Traffic](https://docs.github.com/en/rest/metrics/traffic?apiVersion=2022-11-28)
## Version History
* 0.1
* Initial Release
## Acknowledgments
* [Zabbix Template - Github](https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/github_http?at=release/7.2)
* [Github API - Traffic](https://docs.github.com/en/rest/metrics/traffic?apiVersion=2022-11-28)