With today’s release of flyctl
v0.1.93, it’s now possible to specify a separate custom metrics configuration per process group on V2 apps. This makes it easier to collect custom metrics across a set of process groups that export custom metrics on different ports.
The new syntax is similar to mounts per process group: you can now add an additional [[metrics]]
section (note the double brackets for an array of tables), each with a processes
key to specify the process-group mapping:
[processes]
web = "bin/rails fly:server"
cron = "supercronic /app/crontab"
[[metrics]]
port = 9394
path = "/metrics"
processes = ["web"]
[[metrics]]
port = 9746
path = "/metrics"
processes = ["cron"]
I know some of you have asked about this feature previously. Hope this addition is helpful!