From 742019a025e07273bf709c4069c383a20d42a47d Mon Sep 17 00:00:00 2001
From: Hector <dev@hsmith.org>
Date: Mon, 30 Aug 2021 18:07:20 +0100
Subject: [PATCH] docs: update changelog

Update the project changelog.
Refactor the changelog structure to no longer be fully automated. It now
includes some manual tweaks.
Update the Makefile command to generate a new `CHANGELOG_gen.md` file
instead of overwriting the existing Changelog file.
---
 CHANGELOG.md | 24 ++++++++++++++++++++----
 Makefile     |  2 +-
 2 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1c523d0..ae23c6e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,7 +4,25 @@ All notable changes to this project will be documented in this file.
 
 The format is based on [Keep a Changelog], and this project adheres to [Semantic Versioning].
 
-## [Unreleased]## [0.1.0] - 2021-03-28
+## [Unreleased]
+*Collect metrics through fail2ban socket*
+
+### Added
+- (39133d0) feat: collect new up metric from fail2ban socket
+- (4da46f3) feat: export metrics with socket errors
+- (bd841c3) feat: set up metric to 0 if errors found
+- (1964dde) feat: export metrics for failed/banned counts
+- (2ab1f7d) feat: support reading fail2ban socket in docker
+- (1282d63) feat: new metric for enabled jails ([#1](https://gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/issues/1))
+
+### Fixed
+- (526b1c7) fix: update banned metrics to exclude expired bans ([#11](https://gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/issues/11))
+
+### Deprecated
+- Use of the fail2ban database has been deprecated. The exporter now collects metrics through the fail2ban socket file. See [#11](https://gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/-/issues/11) for more details.
+
+## [0.1.0] - 2021-03-28
+*Initial release*
 
 ### Added
 - (6355c9e) feat: fail on startup if database file does not exist ([#8](https://gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/issues/8))
@@ -18,13 +36,11 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic
 ### Fixed
 - (0842419) fix: compile tool without cgo_enabled flag
 
+## 0.0.0 - 2021-02-05
 
 ---
 
-*This changelog is automatically generated by [git-chglog]*
-
 [Keep a Changelog]: https://keepachangelog.com/en/1.0.0/
 [Semantic Versioning]: https://semver.org/spec/v2.0.0.html
-[git-chglog]: https://github.com/git-chglog/git-chglog
 [Unreleased]: https://gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/compare/0.1.0...main
 [0.1.0]: https://gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/compare/0.0.0...0.1.0
diff --git a/Makefile b/Makefile
index a48b4bb..097b4cd 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ format:
 	cd src/ && go vet $(go list ./... | grep -v /vendor/)
 
 generateChangelog:
-	./tools/git-chglog_linux_amd64 --config tools/chglog/config.yml 0.0.0.. > CHANGELOG.md
+	./tools/git-chglog_linux_amd64 --config tools/chglog/config.yml 0.0.0.. > CHANGELOG_gen.md
 
 build/snapshot:
 	./tools/goreleaser_linux_amd64 --snapshot --rm-dist --skip-publish