# Prometheus のスクレイプジョブがメトリクスに到達できません

**URL:** https://meta.discourse.org/t/prometheus-scrape-job-cannot-reach-the-metrics/264902
**Category:** Self-hosting
**Tags:** prometheus
**Created:** [2023 年 5 月 13 日午後 5:23 UTC](https://meta.discourse.org/t/prometheus-scrape-job-cannot-reach-the-metrics/264902 "2023-05-13T17:23:40Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2023 年 5 月 15 日午前 9:39 UTC](https://meta.discourse.org/t/prometheus-scrape-job-cannot-reach-the-metrics/264902/9 "2023-05-15T09:39:16Z")

</div>

これは私の専門分野ではありませんが、トピックタイマーが取り込んだ投稿を調べて、関連性のあるものが見つかるか確認しました。もしかしたら、これらが見つかったかもしれません。（的外れでしたら申し訳ありません 🙂 🙏 ）

> [@Getting Discourse to see the Prometheus server IP](https://meta.discourse.org/t/getting-discourse-to-see-the-prometheus-server-ip/265015/5?u=jammydodger):
>
> Thanks! Enabled cloudflare.template.yml. slight_smile But if I understand correctly, That was just to disable rate limiting on traffic coming from cloudflare’s IP addresses. For now, This is what my prometheus config looks like, scrape\_configs: - job\_name: forum scrape\_interval: 5s scheme: https static\_configs: - targets: - forum-behind-cloudflare-dns-proxy.com Now, The issue I am facing is, Discourse doesn’t…

> [@Using Prometheous with Cloudflare](https://meta.discourse.org/t/using-prometheous-with-cloudflare/265022):
>
> Has anyone yet tried this behind cloudflare without opening metrics to the whole public? Problem is that the original IP of prometheus is not at the usual spot in HTTP headers when behind cloudflare (or basically any proxy). Is there any way to make this accessible via http only or add an additional (sub)domain to discourse to create an SSL cert for? having it accessible via IP or an additional subdomain that could be switched to transparent mode in Cloudflare would be two option. The other w…

---

_[View the full topic](https://meta.discourse.org/t/prometheus-scrape-job-cannot-reach-the-metrics/264902)._
