hey guys, I just read that in Prefect v1 there’s P...
# ask-community
j
hey guys, I just read that in Prefect v1 there’s Prometheus integration for Tasks https://docs-v1.prefect.io/api/latest/tasks/prometheus.html#pushgaugetogateway, is the similar integration coming/available in Prefect v2?
a
not yet, but you could use the same code from the v1 collection and put it into your flow or task in v2 (without the run method) - it's essentially Python - you could make it to a Block to store config data such as pushgateway_url you could also contribute this as a collection if you get something working 🙌 might be a good way to become a Prefect contributor
d
Just found this thread in a search. Wonder if this has been looked at?
a
nobody contributed Prometheus collection yet
j
Hi Dylan and James. I noted internally that there is interest in this integration.
🙌 1
gratitude thank you 1