Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/metrixio/docker
This tool lets you easily gather data about downloads, stars, and followers from Docker. It works with Prometheus and Grafana to collect data.
https://github.com/metrixio/docker
collector grafana metrics php81 prometheus prometheus-metrics roadrunner spiral-framework
Last synced: 5 days ago
JSON representation
This tool lets you easily gather data about downloads, stars, and followers from Docker. It works with Prometheus and Grafana to collect data.
- Host: GitHub
- URL: https://github.com/metrixio/docker
- Owner: metrixio
- License: mit
- Created: 2022-12-23T22:09:48.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-26T22:04:54.000Z (about 2 years ago)
- Last Synced: 2024-11-15T21:51:48.619Z (2 months ago)
- Topics: collector, grafana, metrics, php81, prometheus, prometheus-metrics, roadrunner, spiral-framework
- Language: PHP
- Homepage: https://dashboard.metrixio.dev/
- Size: 1.48 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker metrics collector
![docker](https://user-images.githubusercontent.com/773481/209433247-decbb4f6-e722-4862-8063-d4e4f0bf3c29.png)
This tool lets you easily gather data about downloads, stars, and followers from Docker Hub.
It works with Prometheus and Grafana to collect data from Docker, store it in Prometheus, and create visualizations with Grafana. You can use Grafana to customize the data you collect and create dashboards that fit your needs.
We hope you find it helpful!
## Dashboard
![image](https://user-images.githubusercontent.com/773481/209438291-a887500d-7425-4f95-88db-f05261d728e6.png)
## Usage
Check out the documentation in the [dashboard](https://github.com/metrixio/dashboard) repository. That should give you all the details you need to get going.
```dotenv
# Docker repository names to follow (comma separated)
DOCKER_REPOSITORIES= ...
```### Docker
```yaml
version: "3.7"services:
docker-metrics:
image: ghcr.io/metrixio/docker:latest
environment:
DOCKER_REPOSITORIES: ...
restart: on-failureprometheus:
image: prom/prometheus
volumes:
- ./runtime/prometheus:/prometheus
restart: alwaysgrafana:
image: grafana/grafana
depends_on:
- prometheus
ports:
- 3000:3000
volumes:
- ./runtime/grafana:/var/lib/grafana
restart: always
```### Local server
```bash
composer create-project metrixio/docker
```Define the repositories you want to track in `.env` file
```dotenv
DOCKER_REPOSITORIES=spiral/roadrunner,...
```Once the project is installed and configured you can start application server:
```bash
./rr serve
```Metrics will be available on http://127.0.0.1:2112.
> **Note**:
> To fix unable to open metrics page, change metrics address in RoadRunner config file to `127.0.0.1:2112`.-----
The package is built with some of the best tools out there for PHP. It's powered by [Spiral Framework](https://github.com/spiral/framework/), which makes it super fast and efficient, and it uses [RoadRunner](https://github.com/roadrunner-server/roadrunner) as the server, which is a really great tool for collecting metrics data for Prometheus.