Giter VIP home page Giter VIP logo

Comments (7)

jeanralphaviles avatar jeanralphaviles commented on August 16, 2024

Is prometheus_speedtest reachable from prometheus?

Try logging into your prometheus container and try and hit /probe manually.

$ docker exec -it prometheus /bin/sh
/prometheus $ wget <IP address of prometheus_speedtest>:9516/probe -qO-
# HELP download_speed_bps Download speed (bit/s)
# TYPE download_speed_bps gauge
download_speed_bps 3.570142228663092e+07
# HELP upload_speed_bps Upload speed (bit/s)
# TYPE upload_speed_bps gauge
upload_speed_bps 1.5187454377341213e+07
# HELP ping_ms Latency (ms)
# TYPE ping_ms gauge
ping_ms 78.436
# HELP bytes_received Bytes received during test
# TYPE bytes_received gauge
bytes_received 4.5482514e+07
# HELP bytes_sent Bytes sent during test
# TYPE bytes_sent gauge
bytes_sent 2.052096e+07

It does take some time for it to respond. For me it's about 30 seconds.

from prometheus_speedtest.

joserf avatar joserf commented on August 16, 2024

from prometheus_speedtest.

jeanralphaviles avatar jeanralphaviles commented on August 16, 2024

Can't see the attachment. Could you upload it to a gist or something?

from prometheus_speedtest.

joserf avatar joserf commented on August 16, 2024

https://www.sendspace.com/filegroup/v%2BckuYFK%2FIXkYTNLAAjfDw

from prometheus_speedtest.

jeanralphaviles avatar jeanralphaviles commented on August 16, 2024

Thanks for the screenshots, this narrows it down to the prometheus configuration... or reachability from from prometheus to prometheus speedtest.

Can you post your prometheus config and a screenshot of your "Targets" page? If everything is working it should look like this.

image

from prometheus_speedtest.

joserf avatar joserf commented on August 16, 2024

Hello, sorry for the delay, I was doing some testing, I realized that it only works correctly without setting scrape_interval in scrape_configs.

it works:
global:
scrape_interval: 2m
scrape_timeout: 2m

scrape_configs:

  • job_name: 'Speed Test'
    metrics_path: / probe
    static_configs:
    • targets: ['prometheus_speedtest: 9516']

Does not work:
global:
scrape_interval: 15s
scrape_timeout: 2m

scrape_configs:

  • job_name: 'Speed Test'
    scrape_interval: 30m
    metrics_path: / probe
    static_configs:
    • targets: ['prometheus_speedtest: 9516']

from prometheus_speedtest.

Mario-Hofstaetter avatar Mario-Hofstaetter commented on August 16, 2024

@joserf The issue was your scrape_timeout is HIGHER than scrape_interval . I'm sure prometheus prints this in console, I did the same mistake but tested with promtool:

.\promtool.exe check config .\prometheus.yml                                                                              Checking .\prometheus.yml                                                                                                                                   FAILED: parsing YAML file .\prometheus.yml: scrape timeout greater than scrape interval for scrape config with job name "speedtest"

@jeanralphaviles I believe you can close this issue.

from prometheus_speedtest.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.