Giter Club home page Giter Club logo

Comments (3)

lmangani avatar lmangani commented on June 24, 2024

Hello @senja7r this is mostly up to your ClickHouse query being a histogram.
Is there an example as of what you're trying to achieve?

from promcasa.

senja7r avatar senja7r commented on June 24, 2024

Hello, @lmangani.

There is a table log_nginx (see attachment lognginx.txt pls.) where nginx logs are written. The table is just an example, there are a lot of endpoints(url). I need a histogram of request durations for each endpoint(url) to export to VictoriaMetrics.

For example:

#HELP obrm_request_duration_seconds Histogram of latencies for HTTP requests.
#TYPE obrm_request_duration_seconds histogram
obrm_request_duration_seconds_count{url="obrm-core.merto.nt/htpm-engine/rest/engine"}
obrm_request_duration_seconds_sum{url="obrm-core.merto.nt/htpm-engine/rest/engine"}
obrm_request_duration_seconds_bucket{le="+Inf", url="obrm-core.merto.nt/htpm-engine/rest/engine"}
obrm_request_duration_seconds_bucket{le="12", url="obrm-core.merto.nt/htpm-engine/rest/engine"}
obrm_request_duration_seconds_bucket{le="10", url="obrm-core.merto.nt/htpm-engine/rest/engine"}
obrm_request_duration_seconds_bucket{le="5",url="obrm-core.merto.nt/htpm-engine/rest/engine"}
obrm_request_duration_seconds_bucket{le="2.5"url="obrm-core.merto.nt/htpm-engine/rest/engine"}
obrm_request_duration_seconds_bucket{le="1",url="obrm-core.merto.nt/htpm-engine/rest/engine"}
obrm_request_duration_seconds_bucket{le="0.5"url="obrm-core.merto.nt/htpm-engine/rest/engine"}
obrm_request_duration_seconds_bucket{le="0.25", url="obrm-core.merto.nt/htpm-engine/rest/engine"}
obrm_request_duration_seconds_bucket{le="0.1", url="obrm-core.merto.nt/htpm-engine/rest/engine"}
obrm_request_duration_seconds_bucket{le="0.05", url="obrm-core.merto.nt/htpm-engine/rest/engine"}
obrm_request_duration_seconds_bucket{le="0.025", url="obrm-core.merto.nt/htpm-engine/rest/engine"}
obrm_request_duration_seconds_bucket{le="0.01", url="obrm-core.merto.nt/htpm-engine/rest/engine"}
obrm_request_duration_seconds_bucket{le="0.005", url="obrm-core.merto.nt/htpm-engine/rest/engine"}


obrm_request_duration_seconds_count{url="obrm-core.merto.nt/djkm-aggregates/v2/process/id"}
obrm_request_duration_seconds_sum{url="obrm-core.merto.nt/djkm-aggregates/v2/process/id"}
obrm_request_duration_seconds_bucket{le="+Inf", url="obrm-core.merto.nt/djkm-aggregates/v2/process/id"}
obrm_request_duration_seconds_bucket{le="12", url="obrm-core.merto.nt/djkm-aggregates/v2/process/id"}
obrm_request_duration_seconds_bucket{le="10", url="obrm-core.merto.nt/djkm-aggregates/v2/process/id"}
obrm_request_duration_seconds_bucket{le="5",url="obrm-core.merto.nt/djkm-aggregates/v2/process/id"}
obrm_request_duration_seconds_bucket{le="2.5"url="obrm-core.merto.nt/djkm-aggregates/v2/process/id"}
obrm_request_duration_seconds_bucket{le="1",url="obrm-core.merto.nt/djkm-aggregates/v2/process/id"}
obrm_request_duration_seconds_bucket{le="0.5"url="obrm-core.merto.nt/djkm-aggregates/v2/process/id"}
obrm_request_duration_seconds_bucket{le="0.25", url="obrm-core.merto.nt/djkm-aggregates/v2/process/id"}
obrm_request_duration_seconds_bucket{le="0.1", url="obrm-core.merto.nt/djkm-aggregates/v2/process/id"}
obrm_request_duration_seconds_bucket{le="0.05", url="obrm-core.merto.nt/djkm-aggregates/v2/process/id"}
obrm_request_duration_seconds_bucket{le="0.025", url="obrm-core.merto.nt/djkm-aggregates/v2/process/id"}
obrm_request_duration_seconds_bucket{le="0.01", url="obrm-core.merto.nt/djkm-aggregates/v2/process/id"}
obrm_request_duration_seconds_bucket{le="0.005", url="obrm-core.merto.nt/djkm-aggregates/v2/process/id"}

and so on.

Thank you in advance.

lognginx.txt

from promcasa.

adubovikov avatar adubovikov commented on June 24, 2024

@senja7r can you please show your config (query) ?

from promcasa.

Related Issues (6)

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.