Creating Dashboards with .NET 8’s New Metrics!

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024

Комментарии • 113

  • @julienraillard3567
    @julienraillard3567 Год назад +177

    Sounds really interesting, would really love to have a video from you explaining how to setup a prometheus and grafana instances in a real-world use case :)

  • @thabisom
    @thabisom Год назад +29

    Hi @Nick. Yes, please do a separate video for configuring Grafana from scratch. Thank you for all your hard work.

    • @Dominik-K
      @Dominik-K Год назад +2

      I would love to see more about Grafana and Prometheus too

  • @PanMaciek
    @PanMaciek Год назад +11

    Dashboards are tricky, having concise and readable dashboards is what I want in my life, that video would be super useful to get inspired 😄Who does not want to see numbers going up/down 😄

  • @MrVarsium
    @MrVarsium Год назад +11

    yes please, another nice video! and i'm glad that metrics are getting a boost, i would love to see a prometheus/grafana video next! ^^

  • @dauchande
    @dauchande Год назад +1

    Nice to see Grafana and Prometheus get the love they so richly deserve. Developers need to instrument their code more so they actually know what it's doing in Production.

  • @SupBoiii
    @SupBoiii Год назад +3

    More Prometheus and Grafana video please, this is a great one!

  • @poteb
    @poteb Год назад +6

    You can get full stats on all your endpoints without adding anything to each method. This way you won't forget to add them manually.
    Adding a few extra nugets and you can do this:
    services.AddOpenTelemetry().WithMetrics(m => m.AddAspNetCoreInstrumentation().AddHttpClientInstrumentation().AddRuntimeInstrumentation().AddProcessInstrumentation().AddPrometheusExporter()
    This will also give you metrics on the hosting environment. Brilliant stuff.
    We use Grafana a lot at work, but please do make a video about it, I might learn something new :)

  • @systemslave510
    @systemslave510 Год назад

    I want a *deep* dive into this. Been tring to figure out how to do it for a while. Thank you Nick

  • @IgorStojkovic
    @IgorStojkovic Год назад +34

    The key thing missing in all these "add metrics" tutorials is how to secure the /metrics endpoint so it is not available to users of your API. There are no good defaults or explanations on that and it can lead to security leaks.

    • @ahmedabd-a6
      @ahmedabd-a6 Год назад +2

      I was able to use basic auth to secure the /metrics endpoint

    • @Daniel15au
      @Daniel15au Год назад +3

      It's a regular HTTP endpoint so any middleware for protection of endpoints could be used.

  • @mrtac_
    @mrtac_ Год назад

    This .NET 8 built-in feature in combination with Prometheus & Grafana is incredible helpful for systems operation & observability. Thank you Nick for sharing this and also providing the Grafana dashboards!

  • @danielgil3825
    @danielgil3825 Год назад +9

    Would be great to have more grafana videos 😍

  • @xDan2710
    @xDan2710 Год назад +2

    This came right at the right time. I am in the process of building some Grafana dashboards with custom metrics for some of my applications, so this definitely will come in handy!
    I would definitely be interested in a more in-depth video.

  • @danclarkeuk
    @danclarkeuk Год назад +1

    Very nice. I'm already using Grafana and Prometheus, so will be super-easy to take advantage of these new metrics! The IMeterFactory is a really nice addition too! 🙂

  • @ikenwakochukwudi9395
    @ikenwakochukwudi9395 Год назад +1

    Good content Nick. I would love to see the detailed video on Grafana.

  • @benlewies8828
    @benlewies8828 Год назад +1

    This is an excellent development. Great video! Yes, definitely do an in-depth video!

  • @milans0713
    @milans0713 Год назад +1

    This is a superb stuff. Would love to have more content on Prometheus and Grafana with .NET Apps.

  • @fifty-plus
    @fifty-plus Год назад +9

    Prometheus and Grafana are very useful tools, Loki too. Good content as always Nick.

  • @yoanashih761
    @yoanashih761 Год назад +2

    Hi, Nick great content as always! Could you please do more video about telemetry and other devops-related topic? Thanks.

  • @AndyMehalick
    @AndyMehalick Год назад

    Whenever you ask: "would you like to see a separate video on X?" the answer is always YES! Anything related to OpenTelemetry would be awesome, Prometheus and Grafana included

  • @simeonnov
    @simeonnov Год назад +3

    This is interesting, thank you. I would love it if you made a video about ways to do reporting in .NET. Something similar to crystal reports but obviously the modern way of doing things. Are there any such tools?

  • @Subjective0
    @Subjective0 Год назад

    I had a super hard time trying to set it up for a school project. I would really love to learn how I actually should have done it!

  • @EzequielRegaldo
    @EzequielRegaldo Год назад

    Oh my godness ! We need it ! Please ! Thank you so much for this content Nick !

  • @portlyoldman
    @portlyoldman Год назад +1

    Yes please for Grafana, metrics arc videos!

  • @georgekopadze791
    @georgekopadze791 9 месяцев назад

    Hello Nick, Thank you for your effort to do that wonderful RUclips videos. Please, it's gonna be really useful if you create a video explaining grafana and prometheus. Thank you

  • @StephenYeadon
    @StephenYeadon Год назад

    Great content as always. A video on Graphana and Prometheus would be amazing. Possibly a video on something like Dapr would be good too and how you might incorporate the metrics with the sidecar metrics generated by dapr.

  • @antonmartyniuk
    @antonmartyniuk Год назад

    Looks great. Please make a video about Grafana and Dashboards in depth

  • @nepalxplorer
    @nepalxplorer Год назад +2

    yes want grafana videos, keep up the good work

  • @michaelweaver4439
    @michaelweaver4439 Год назад

    This looks amazing!! - more please!

  • @GiovanniOrlandoi7
    @GiovanniOrlandoi7 Год назад

    Great video! Would love more Prometheus and Grafana content.

  • @rmichaeldeutsch
    @rmichaeldeutsch Год назад +1

    Cool stuff! 😎
    Is there a way to ignore specific endpoints from metric tracking? (ex: healthchecks, metric scraping, etc.)

  • @gholdridge
    @gholdridge Год назад

    Looks great Nick - Love to see Grafana video too!

  • @jamesjanse3731
    @jamesjanse3731 Год назад

    Would love to see Grafana and Prometheus video!

  • @acmesoft
    @acmesoft Год назад

    I want a grafana video!. Good content as always!!!

  • @tanglesites
    @tanglesites Год назад

    That looks interesting. Now I want to build my own dashboards. You could put that into its own microservice on an api and use event sourcing to not only record but have the visual to aid your system as well. Then you can record how your system is communicating with eachother. I might incroporate this into my Capstone. Great video Nick, as usual.

  • @r-naotwo6290
    @r-naotwo6290 Год назад

    Yes! A video on prometheus and grafana pleeeeeaaase!

  • @marchenkoalexandr
    @marchenkoalexandr Год назад +2

    You definitely want take a look at OpenTelemetry Operator with its Autoinstrumentation, it will do the same and even more (traces) without the need to touch the app at all. (The only downside it is totally not ready yet for realistic usage, but is really promising)

  • @nove1398
    @nove1398 Год назад

    Yes more Grafana videos of course!

  • @JunaidBedford
    @JunaidBedford Год назад

    Yes Grafana videos. Thanks

  • @miguelcervantes629
    @miguelcervantes629 Год назад

    A grafana video would be great! Amazing video

  • @xavier.xiques
    @xavier.xiques Год назад

    Really interesting. Thanks Nick!

  • @devmarkmonster
    @devmarkmonster Год назад

    Interesting Video. The problem I always face is the amount of metrics that are shared by default. Same as logging, configuring it to right levels is very important. I’m afraid that the default metrics cause for GBs of data very easily.
    Another thing I could use some guidance on is the combination of logging, traces and metrics with Open Telemetry and what kind of visualization tool to use that supports all of them.

  • @samuelantony3934
    @samuelantony3934 Год назад

    Really interesting, please explain about the setup of prometheus.

  • @qniken8770
    @qniken8770 Год назад

    Great video as always. It would be nice if you could give us an example how to build up kestrel with prometheus and grafana :)

  • @Yupmoh
    @Yupmoh Год назад +1

    +1 for a Prometheus / Grafan video! :D

  • @hernanar3647
    @hernanar3647 Год назад

    This is a interesting topic, I might create whole a pipeline behavior to my framework from this. Thanks Nick!

  • @markhenderson5283
    @markhenderson5283 Год назад

    I was working on Grafana today. So I'd like to see a video about it.

  • @THILLAIRAJA24
    @THILLAIRAJA24 Год назад

    Thanks for sharing this.

  • @jackkendall6420
    @jackkendall6420 Год назад

    I would love to see your overview of OpenTelemetry in general!

  • @07309415
    @07309415 Год назад

    Would love a video on Grafana

  • @vamvdotnet
    @vamvdotnet Год назад

    Yes! Please create a YT video that goes deep in Grafana!

  • @JustNightmare
    @JustNightmare Год назад

    Graphana video would rock!

  • @DasturlashniOrganamiz
    @DasturlashniOrganamiz Год назад

    I have migrated my OSS project (called CashOverflow) to .NET 8. Live metrics is not supported yet. If I setup what you taught in my project, is it going to smoothly work in my prod as well? Or is there any additional setup needed for azure service app?

  • @sikor02
    @sikor02 Год назад +3

    When I saw _meterFactory.Create and meter.CreateCounter called whenever there's a GET request, I thought it was a mistake and you will always get 1 in Grafana in best case. Just by reading the code it looks like you create a new meter/instrument every time.

  • @youssefwael8
    @youssefwael8 Год назад +1

    Please make a video on exporting to OpenTelemetry Collector instead of Prometheus directly. Thank you and Keep Coding. 😁

    • @marchenkoalexandr
      @marchenkoalexandr Год назад +1

      You do not want separate them, even more you want Prometheus for automatic metrics from traces

  • @StigBrembo
    @StigBrembo Год назад

    Hi Nick. Have you stopped using minimal api? From your latest videos I only see you using controllers?

  • @evanboltsis
    @evanboltsis Год назад

    How about a full course on dometrain for grafana-prometheus and advanced metrics :)

  • @ytvandre
    @ytvandre Год назад

    Is this is a replacement for AppInsights telemetry SDK? Would love to see a video about integrating this with azure monitor

  • @Daniel15au
    @Daniel15au Год назад

    I'd recommend VictoriaMetrics instead of Prometheus. It's fully Prometheus-compatible (supports Prometheus endpoints and the Prometheus integration in Grafana), but the storage format is more efficient.

  • @Tymonello
    @Tymonello 11 месяцев назад

    How OpenTelemetry compares to AppMetrics? Is it better / newer /more features, or basically the same thing, but by other people?

  • @ClAddict
    @ClAddict Год назад

    Why was the meter created within the api call? Seems like that would new and dispose the metric way more frequently than it should.

  • @alainl8069
    @alainl8069 Год назад

    How to use metering and Grafana to monitor API services would be an interesting course in Dometrain

  • @thegautamnayak
    @thegautamnayak 11 месяцев назад

    Is decorater pattern a better place to write metrics logic?

  • @IgorRovitsky
    @IgorRovitsky Год назад

    Looks promising, but I wonder how this might be used in a situation when the API is replicated in Swarm or k8

  • @musigahstallone
    @musigahstallone 7 месяцев назад

    hello is this the same as the modern day aspire dashboard

  • @VladyslavHorbachov
    @VladyslavHorbachov Год назад

    We need Grafana video!

  • @nwr0x
    @nwr0x Год назад

    This is really nice, but I wonder where does dotnet-monitor lands with this.

  • @ghak992
    @ghak992 Год назад

    Yes please make the more depth video its look very promising,, thank u for shating

  • @dvanrooyen1434
    @dvanrooyen1434 Год назад

    Nick is there a log exporter for filebeats?

  • @obinnaokafor6252
    @obinnaokafor6252 Год назад

    Another amazing job by Microsoft and the dotnet team.

  • @williameisenman5538
    @williameisenman5538 Год назад

    Please Make a Dedicated Grafana Video. This is quite interesting, indeed.

  • @nocgod
    @nocgod Год назад

    the last point we have to solve is the redundant requirement to register the Meter by string in the exporter and create it in your code through a factory. its a cludge imho

  • @E_G_
    @E_G_ Год назад

    Great tool to use, thank you for sharing

  • @shokhrukhbekyursunjonov6203
    @shokhrukhbekyursunjonov6203 26 дней назад

    where can I find the source code?

  • @VladimirKhil
    @VladimirKhil Год назад

    What is the difference between app.UseOpenTelemetryPrometheusScrapingEndpoint() and app.MapPrometheusScrapingEndpoint() calls?

  • @R0ckyRocket
    @R0ckyRocket Год назад

    can it measure excecution time of a specific function ?

  • @sigtermnull
    @sigtermnull Год назад +1

    Where are the metrics stored until Prometheus takes them?

  • @RichardBeales
    @RichardBeales Год назад

    I think the meter / gauge instances are supposed to be re-used, we've seen problems with creating them on every request.

    • @EspenSkaufel
      @EspenSkaufel 11 месяцев назад

      They are, it is implemented in the DefaultMeterFactory

  • @zakariabenmassaoud
    @zakariabenmassaoud Год назад

    Yes please! Grafana Grafana Grafana, and maybe how to create metrics

  • @JonWoo
    @JonWoo Год назад

    So we don't need new relic anymore? :)

  • @bobmarley8334
    @bobmarley8334 9 месяцев назад

    Awesome ideia to not share the code or even a repository! Thanks!

  • @Levonfly
    @Levonfly Год назад

    Please separate video for Grafana

  • @mhDuke
    @mhDuke Год назад

    please do grafana video

  • @stoyangrigorov5634
    @stoyangrigorov5634 Год назад

    awesome

  • @orthodox-4-ever
    @orthodox-4-ever Год назад

    We want Grafana video 👋

  • @tuberklz
    @tuberklz 8 месяцев назад

    maybe graphana is on the way?

  • @teodorchirileanu
    @teodorchirileanu Год назад

    I want grana video!

  • @leadscollector
    @leadscollector Год назад +1

    Ahhh here we go. Danka

  • @StephenMoreira
    @StephenMoreira Год назад

    Yes.

  • @ryanzwe
    @ryanzwe Год назад

    Now this sounds interesting

  • @saidyeter
    @saidyeter Год назад

    nice haircut

  •  Год назад

    throw new Exception("Shit hit the fan");
    Good thing I'm not a fan then 😬

  • @UnbiasedThamizhan
    @UnbiasedThamizhan 4 месяца назад

    You are good but very fast please do it with patience

  • @soonhongng7037
    @soonhongng7037 5 месяцев назад

    In .NET 8, their latest package has changed DI methods
    its no longer, app.MapPrometheusScrapingEndpoint().
    rather, its either of following:
    1. app.UseOpenTelemetryPrometheusScrapingEndpoint();
    2. app.UseOpenTelemetryPrometheusScrapingEndpoint(
    context => context.Request.Path == "/internal/metrics"
    && context.Connection.LocalPort == 5067);