Fusehunt

Fusehunt

Tech, web, programming, home automation, networking, and geeky blog.

07 Nov 2020

Docker on Synology - Prometheus metrics and custom DNS

Synology makes Docker really easy, it even has it’s own nice little user interface. However this also means it’s very opinionated. Enabling the metrics endpoint or a custom DNS service is not available within the UI. However Richard Gibert has put together some great documentation explaining what to do.

Please take a look at https://richard.gibert.ca/docs/synology for more information:

Enable Prometheus Formatted Metrics for Synology Docker

  1. Edit /var/packages/Docker/etc/dockerd.json:
{
 "experimental" : true,
 "metrics-addr" : "0.0.0.0:9999",
}
  1. Restart the Docker package
synoservice --restart pkgctl-Docker

Set Custom DNS Servers

  1. Edit /var/packages/Docker/etc/dockerd.json:
{
 "dns": ["SERVER_0", "SERVER_1"]
}
  1. Restart the Docker package
comments powered by Disqus