Coder Social home page Coder Social logo

prom-client-httprequestdurations's Issues

Define own buckets

Hi,

thanks for this tool! Would it be please possible to implement own bucket sizes to Histogram? Histogram supports this operation so it shouldn't be complicated (Metrics.CreateHistogram("my_histogram", "help text", buckets: new[] { 0, 0.2, 0.4, 0.6, 0.8, 0.9 });).

Thanks.

Martin

Add "IgnoreRoutesNotStartingWith" or alternative

Quite often services using convention '/api/...' to avoid conflicts with routes and for other reasons. It'll be beneficial to have some way of telling the framework to ignore all routes which don't match the convention.

Measure requests to Prometheus endpoint

Measure requests to Prometheus endpoint so that it is included, because from what I'm seeing it isn't.

Would allow us to understand how fast we can serve metrics.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/automerge.yml
.github/workflows/ci.yml
nuget
Directory.Build.props
  • StyleCop.Analyzers 1.1.118
  • Microsoft.SourceLink.GitHub 8.0.0
src/Prometheus.Client.HttpRequestDurations.csproj
  • Prometheus.Client 5.2.0
tests/Prometheus.Client.HttpRequestDurations.Tests.csproj
  • xunit.runner.visualstudio 2.8.1
  • xunit 2.8.1
  • coverlet.msbuild 6.0.2
  • coverlet.collector 6.0.2
  • Microsoft.NET.Test.Sdk 17.10.0

  • Check this box to trigger a request for Renovate to run again on this repository

Controller name as metric label as option with .UsePrometheusRequestDurations()

We are migrating our applications from Prometheus-net to Prometheus.Client.

Prometheus-net had an extension method to IApplicationBuilder called UseHttpMetrics(). With the implementation in Prometheus.Client.HttpRequestDurations, I have been unable to identify a way to incorporate the controller name as a label in the metric. We really need this as if we use the path instead -- we end up with significant label explosion due to many parameters that are inorporated into our api route paths.

Is there an existing way to get 'Controller' name as a label? and if not, is this something that could be added?

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.