Connect Prometheus to internal Service

I'm following this Grafana integration guide (https://flower.readthedocs.io/en/latest/prometheus-integration.html#grafana-integration-guide) and attempting to connect Prometheus service to Flower. I can see that Flower is reachable internally as "celery-flower.railway.internal" so I've set that as the target in prometheus.yml
global:
scrape_interval: 15s
evaluation_interval: 15s

scrape_configs:
- job_name: prometheus
static_configs:
- targets: ['localhost:9090']
- job_name: flower
static_configs:
- targets:
- "celery-flower.railway.internal"
global:
scrape_interval: 15s
evaluation_interval: 15s

scrape_configs:
- job_name: prometheus
static_configs:
- targets: ['localhost:9090']
- job_name: flower
static_configs:
- targets:
- "celery-flower.railway.internal"
However Prometheus is not able to connect to this service, why is this? Thanks!
No description
No description
Solution:
you need to also specify a port
Jump to solution
5 Replies
Percy
Percy4mo ago
Project ID: f1b5f347-c845-4e49-a7a2-c861816cffd6
Charles_
Charles_OP4mo ago
f1b5f347-c845-4e49-a7a2-c861816cffd6
Solution
Brody
Brody4mo ago
you need to also specify a port
Charles_
Charles_OP4mo ago
Yesss, thanks all working now! Do you know if it's possible to configure Prometheus to fetch logs from a service?
Brody
Brody4mo ago
that likely requires docker socket access, so your app would instead need to send its logs to promethus
Want results from more Discord servers?
Add your server