DockFlare v1.9.1 - Prometheus Metrics & Major Stability Enhancements #131
ChrispyBacon-dev
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
DockFlare v1.9.1 - Prometheus Metrics & Major Stability Enhancements
I'm thrilled to release DockFlare v1.9.1! This version introduces a highly requested feature for monitoring and observability: Prometheus Metrics.
This release is also packed with critical bug fixes and stability improvements that significantly enhance the reliability of core features like automatic rule cleanup and Access Policy management.
✨ New Feature: Prometheus Metrics Endpoint
You can now enable the built-in Prometheus metrics endpoint on the managed
cloudflaredagent to export a wide range of valuable data for use in tools like Grafana.How to Use It:
Simply add the new
CLOUDFLARED_METRICS_PORTvariable to your.envfile:🤖 Agent & Rule Management Improvements
CLOUDFLARED_METRICS_PORT) and recreate the agent container with the correct settings on restart.CLEANUP_INTERVAL_SECONDS) has been reduced from 300 to 60 seconds, making the automatic deletion of expired rules much more responsive.🛠️ Bug Fixes
allowed_idpsLabel Fixed: Resolved a critical bug that caused API errors when using theaccess.allowed_idpslabel. DockFlare now correctly constructs Access Policy rules using the modernlogin_methodkeyword, making the feature fully functional.📊 Example Grafana Dashboard Included
To help you get started immediately, a pre-configured and detailed Grafana dashboard is now included in the repository.
dashboard.jsonin theexamples/directory of the repository.How to Upgrade
To upgrade your Docker Compose deployment, run the following commands:
After upgrading, you can add the
CLOUDFLARED_METRICS_PORTvariable to your.envfile, and DockFlare will handle the rest.Quick Guide: How to Set Up a Local Prometheus & Grafana Stack
If you don't already have a monitoring stack, here is a minimal
docker-composesetup to get you started quickly.1. Directory Structure
Create the following folders and files alongside your main
docker-compose.yml:2. File Contents
A)
docker-compose.ymlAdd the following services to your existing
docker-compose.ymlfile:B)
prometheus.ymlThis file tells Prometheus where to find your
cloudflaredagent.C)
grafana-provisioning/datasources/datasource.ymlThis automatically adds Prometheus as a data source in Grafana.
3. How to Use
docker-compose up -d.http://prometheus.your-domain.com). Go to Status -> Targets. Thecloudflaredendpoint should be UP.http://metrics.your-domain.com), log in (default:admin/admin), and import thedashboard.jsonfile provided in theexamples/directory of the DockFlare repository.This discussion was created from the release DockFlare v1.9.1 - Prometheus Metrics & Major Stability Enhancements.
Beta Was this translation helpful? Give feedback.
All reactions