Closed Skylarr-2dot0 closed 1 year ago
Can you add more details to this issue?
Can you go to localhost:8000/metrics
and see the metrics?
If the metrics are there, you can now update your Prometheus configuration to add your bot as a target:
scrape_configs:
- job_name: discordbot
static_configs:
- targets: ['localhost:8000']
Yep adding that to the config worked. Now my next question is, can custom metrics be added to this other than just what youve added?
Such as on_message listening to a guild for message counts etc for metrics
On Fri, 8 Sept 2023 at 13:13, Apollo-Roboto @.***> wrote:
Can you add any details to this issue?
Can you go to localhost:8000/metrics and see the metrics?
If the metrics are there, you can now update your Prometheus configuration to add your bot as a target:
scrape_configs:
- job_name: discordbot static_configs:
- targets: ['localhost:8000']
— Reply to this email directly, view it on GitHub https://github.com/Apollo-Roboto/discord.py-ext-prometheus/issues/11#issuecomment-1711988603, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCDLVUNCXNRMBVJJYU7ACRDXZNG37ANCNFSM6AAAAAA4P3VNJU . You are receiving this because you authored the thread.Message ID: @.***>
--
Bradley Morrison (Sky) Customer Experience Manager
wombo.ai https://wombo.ai/ Discord: skylarr#9515
Check out the prometheus-client package, you should be able to declare and use your own metrics anywhere you need them.
The PrometheusCog will handle the service and common metrics. Other custom metrics should be picked up.
Alright, You can close this out, though i would really appreciate if you could contact me on discord , i wont bug you much :P .skylarr.
On Fri, 8 Sept 2023 at 13:22, Apollo-Roboto @.***> wrote:
Check out the prometheus-client package https://github.com/prometheus/client_python, you should be able to declare and use your own metrics anywhere you need them.
The PrometheusCog will handle the service and common metrics. Other custom metrics should be picked up.
— Reply to this email directly, view it on GitHub https://github.com/Apollo-Roboto/discord.py-ext-prometheus/issues/11#issuecomment-1711997613, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCDLVUJ4SGSP426U4VCFAGDXZNH3VANCNFSM6AAAAAA4P3VNJU . You are receiving this because you authored the thread.Message ID: @.***>
--
Bradley Morrison (Sky) Customer Experience Manager
wombo.ai https://wombo.ai/ Discord: skylarr#9515
I'm glad to help :)
I dont see how to add this to prometheus so that i can add it to grafana... cog is loaded but yeah