diff --git a/content/posts/16-a-beautiful-gitops-day-6/index.md b/content/posts/16-a-beautiful-gitops-day-6/index.md index 2c7cd88..702dc59 100644 --- a/content/posts/16-a-beautiful-gitops-day-6/index.md +++ b/content/posts/16-a-beautiful-gitops-day-6/index.md @@ -303,7 +303,7 @@ You should be able to log in `https://gitea.kube.rocks` with chosen admin creden ### Push a basic Web API project -Let's generate a basic .NET Web API project. Create a new dotnet project like following (you may install [last .NET SDK](https://dotnet.microsoft.com/en-us/download)): +Let's generate a basic .NET Web API project. Create a new dotnet 8 project like following (you may install [.NET 8 SDK](https://dotnet.microsoft.com/en-us/download)): ```sh mkdir kuberocks-demo @@ -311,7 +311,7 @@ cd kuberocks-demo dotnet new sln dotnet new gitignore dotnet new editorconfig -dotnet new webapi -o src/KubeRocks.WebApi +dotnet new webapi -o src/KubeRocks.WebApi --use-controllers dotnet sln add src/KubeRocks.WebApi git init git add . diff --git a/content/posts/17-a-beautiful-gitops-day-7/index.md b/content/posts/17-a-beautiful-gitops-day-7/index.md index 4f048f8..1d73915 100644 --- a/content/posts/17-a-beautiful-gitops-day-7/index.md +++ b/content/posts/17-a-beautiful-gitops-day-7/index.md @@ -193,7 +193,7 @@ Firstly create following files in root of your repo that we'll use for building {{< highlight host="kuberocks-demo" file="Dockerfile" >}} ```Dockerfile -FROM mcr.microsoft.com/dotnet/aspnet:7.0 +FROM mcr.microsoft.com/dotnet/aspnet:8.0 WORKDIR /publish COPY /publish . @@ -253,7 +253,7 @@ jobs: type: registry-image source: repository: mcr.microsoft.com/dotnet/sdk - tag: "7.0" + tag: "8.0" inputs: - name: source-code path: . diff --git a/content/posts/19-a-beautiful-gitops-day-9/index.md b/content/posts/19-a-beautiful-gitops-day-9/index.md index c926143..4e37a10 100644 --- a/content/posts/19-a-beautiful-gitops-day-9/index.md +++ b/content/posts/19-a-beautiful-gitops-day-9/index.md @@ -135,7 +135,11 @@ builder.Services.AddOpenTelemetry() { b .AddAspNetCoreInstrumentation() - .AddPrometheusExporter(); + .AddPrometheusExporter() + .AddMeter( + "Microsoft.AspNetCore.Hosting", + "Microsoft.AspNetCore.Server.Kestrel" + ); }); var app = builder.Build(); @@ -149,9 +153,7 @@ app.UseOpenTelemetryPrometheusScrapingEndpoint(); Relaunch app and go to `https://demo.kube.rocks/metrics` to confirm it's working. It should show metrics after each endpoint call, simply try `https://demo.kube.rocks/Articles`. -{{< alert >}} -.NET metrics are currently pretty basic, but the next .NET 8 version will provide far better metrics from internal components allowing some [useful dashboard](https://github.com/JamesNK/aspnetcore-grafana). -{{< /alert >}} +Now you can easily import ASP.NET [specific grafana dashboards](https://github.com/dotnet/aspire/tree/main/src/Grafana) for visualizing. #### Hide internal endpoints