Hi there -
I am trying to use PromEx to instrument my app. I’m following this guide, but I’m missing something. I’ve configured the prometheus
datasource in grafana cloud. When I visit https://<my app>.fly.dev/metrics
I see my application metrics from PromEx. The default PromEx dashboards get created when my app deploys, but they are just empty. Here’s an abbreviated version of my fly.toml:
app = "myapp"
kill_signal = "SIGTERM"
kill_timeout = 5
processes = []
[metrics]
port = 4000
path = "/metrics"
[env]
[experimental]
allowed_public_ports = []
auto_rollback = true
[[services]]
http_checks = []
internal_port = 4000
processes = ["app"]
protocol = "tcp"
script_checks = []
I tried using the default config from the docs and I started getting the default fly metrics in my grafana cloud instance:
[metrics]
port = 9091
path = “/metrics”
However, reverting back to port = 4000
doesn’t seem to do anything as no matter which port I specify I get the default fly metrics and nothing else. Ideally, I’d have both the default fly metrics and my custom app metrics, any on how to configure it correctly?