You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Upgraded to Go 1.23 and upgraded deps
* Added implementation for metrics and status
* Added documentation for the health checks
* Fixed merge
* Adjusted docs
Copy file name to clipboardExpand all lines: README.md
+23-3Lines changed: 23 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,7 +99,7 @@ In your `.env` file or your system environment variables you can be configured:
99
99
| CLOUDFLARE_ZONES_IPV6 | comma-separated list of domains to update with new IPv6 addresses. |
100
100
| CLOUDFLARE_API_EMAIL | deprecated, your Cloudflare account email. |
101
101
| CLOUDFLARE_API_KEY | deprecated, your Cloudflare Global API key. |
102
-
| CLOUDFLARE_API_KEY_FILE | deprecated, path to a file containing your Cloudflare Global API key. |
102
+
| CLOUDFLARE_API_KEY_FILE | deprecated, path to a file containing your Cloudflare Global API key. It's recommended to use this over `CLOUDFLARE_API_KEY`.|
103
103
104
104
This service allows to update multiple records, an advanced example would be:
105
105
@@ -209,7 +209,7 @@ services:
209
209
env_file: ./updater.env
210
210
restart: unless-stopped
211
211
ports:
212
-
- 8080/tcp
212
+
- "8080/tcp"
213
213
```
214
214
215
215
With your secret configure in the `updater.env` file next to it (as `SOME_VARIABLE=<valua>`).
| METRICS_BIND | required, network interface to bind to, i.e. `:9876` |
234
+
| METRICS_TOKEN | token that has to be passed to the endpoints to authenticate |
235
+
| METRICS_TOKEN_FILE | path ot a file containing a token that has to be passed to the endpoints to authenticate. It's recommended to use this over `METRICS_TOKEN`. |
236
+
237
+
The endpoint for prometheus-compatible metrics is `/metrics`, the endpoint for the health check is `/healthz` and the
238
+
endpoint for liveness is `/liveness` on the configured network bind.
239
+
If you chose to use a token, you'll have to append it using the query like `/metrics?token=123456`.
240
+
241
+
The difference between the liveness and the health endpoint is that the health endpoint will return `503` if any
242
+
subsystem has an issue and `200` if not, while the liveness endpoint will always return `204` as long as the HTTP server
243
+
is able to respond.
244
+
227
245
## History & Credit
228
246
229
-
Most of the credit goes to [@adrianrudnik](https://github.com/adrianrudnik), who wrote and maintained the software for years. Meanwhile I stepped in at a later point when the repository was transferred to me to continue its basic maintenance should it be required.
247
+
Most of the credit goes to [@adrianrudnik](https://github.com/adrianrudnik), who wrote and maintained the software for
248
+
years. After he moved on I stepped in at a later point when the repository was transferred to me to continue its basic
0 commit comments