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
cloudflared
agent to export a wide range of valuable data for use in tools like Grafana.How to Use It:
Simply add the new
CLOUDFLARED_METRICS_PORT
variable to your.env
file:🤖 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_idps
Label Fixed: Resolved a critical bug that caused API errors when using theaccess.allowed_idps
label. DockFlare now correctly constructs Access Policy rules using the modernlogin_method
keyword, 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.json
in 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_PORT
variable to your.env
file, 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-compose
setup 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.yml
Add the following services to your existing
docker-compose.yml
file:B)
prometheus.yml
This file tells Prometheus where to find your
cloudflared
agent.C)
grafana-provisioning/datasources/datasource.yml
This 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. Thecloudflared
endpoint should be UP.http://metrics.your-domain.com
), log in (default:admin
/admin
), and import thedashboard.json
file 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