https://github.com/gildesmarais/matomo-to-influx
📯Push Matomo stats to influxDB. Can optionally run in Docker.
https://github.com/gildesmarais/matomo-to-influx
docker influxdb matomo monitoring piwik ruby
Last synced: 8 months ago
JSON representation
📯Push Matomo stats to influxDB. Can optionally run in Docker.
- Host: GitHub
- URL: https://github.com/gildesmarais/matomo-to-influx
- Owner: gildesmarais
- Archived: true
- Created: 2019-04-04T16:29:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-05T08:04:47.000Z (over 4 years ago)
- Last Synced: 2024-07-31T20:49:14.740Z (over 1 year ago)
- Topics: docker, influxdb, matomo, monitoring, piwik, ruby
- Language: Ruby
- Homepage:
- Size: 4.88 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# matomo-to-influx
A quickly written [ruby](https://www.ruby-lang.org/en/) script, pushing [matomo](https://matomo.org) stats to [influxDB](https://www.influxdata.com), running in [Docker](https://www.youtube.com/watch?v=DLzxrzFCyOs).
## Build and run with Docker
1. Clone this repo and `cd` into it.
2. Create a file called `env` with the required variables (see `env.example`).
3. `docker build -t matomo-to-influx -f ./Dockerfile .`
4. `docker run -d --env-file=./env matomo-to-influx`
## Usage without Docker
```sh
bundle install
# export the variables in your shell session
ruby app.rb
```