The Cloudflare Speedtest Exporter is a simple and efficient Prometheus exporter written in Python. It utilizes the CloudFlare Python CLI by Tom Evslin to provide valuable network speed metrics in Prometheus format. The exporter reports the 90th percentile speed data, which aligns with the Cloudflare site's reported values. It is based on Miguel de Carvalho's Ookla speedtest exporter.
Published on Docker Hub here.
This exporter offers a seamless way to monitor network performance by reporting key metrics such as ping latency, jitter, download speed, and upload speed. The tool is designed to be easily integrated with Prometheus, enabling you to visualize and set up alerts based on these metrics. The exporter's structure follows best practices, making it efficient and lightweight.
- Running the Exporter: The exporter is configured to work with Docker containers. By building the provided Docker image, you can deploy the exporter with ease.
- Metrics: The exporter provides the following metrics:
- Ping Latency
- Jitter
- Download Speed
- Upload Speed
- Server Location (city and region)
- Prometheus Integration: The exporter exposes metrics through a Prometheus-compatible endpoint. You can configure Prometheus to scrape these metrics and store them for analysis and visualization.
You can find the published Docker image on Docker Hub here.
- Clone this repository.
- Customize the exporter to fit your requirements.
- Build the Docker image using the provided Dockerfile.
- Deploy the Docker container and start gathering network speed metrics.
We welcome contributions! Please see here for details on how to contribute.
This project builds upon the valuable work of others and their contributions:
- Miguel de Carvalho: The project draws main inspiration from Miguel de Carvalho's Ookla speedtest exporter.
- Tom Evslin: The CloudFlare Python CLI by Tom Evslin serves as a crucial component for fetching network speed data.
This project is licensed under the GNU General Public License.
For more details, refer to the License file.