jookies / jasmin

Jasmin - Open source SMS gateway
http://jasminsms.com
Other
1.01k stars 550 forks source link

Monitoring metrics update #1082

Closed Integration-IT closed 1 year ago

Integration-IT commented 1 year ago

Hi,

http://127.0.0.1:1401/metrics is down in some case, because the package has not been updated like git repo version.

The curl command returns 404 in case package does not have server.py updated with metrics path and if metrics.py is not in endpoints path.

The last trouble is http://127.0.0.1:1401/metrics is not compliant with prometheus because the datasource will call http://127.0.0.1:1401/metrics/api/v1/query to get stats and not http://127.0.0.1:1401/metrics.

Regards, MonkeyTester.

farirat commented 1 year ago

Hello @Integration-IT

Please provide further information: which package ? pypi/rpm/deb ? and which os version ?

As for the prometheus metrics, i'm getting what it's supposed to provide, here's a grafana dashboard i'm working on actually:

Screen Shot 2022-10-17 at 11 19 22 PM
Integration-IT commented 1 year ago

hello @farirat ,

This is my lab env:

Now all files are clean and get release integrity.

curl 127.0.0.1:1401/metrics results are correct.

But still can't understand how did you configure your grafana.

In my case i am using Prometheus Data Source - Native Plugin from external server to get remote metrics directly from target url on port 1401.

farirat commented 1 year ago

This is my prometheus config:

scrape_configs:
  - job_name: jasmin
    static_configs:
      - targets:
          - 'jasmin:1401'
  - job_name: rabbitmq
    static_configs:
      - targets:
          - 'rabbit-mq:15692'
Integration-IT commented 1 year ago

Fully worked.