5 Answer(s)
-
0
Probably, you are running prometheus on docker but not the applications on docker. That's why it can not bind container name to endpoint.
If you are not running the solution on docker, you may have to change the prometheus static_config targets such as -targets: ['auth-server'] to -targets: ['host.docker.internal:44322']
From infrastructure docs. Change all the target hosts to
host:docker.internal:<port>
. -
0
-
0
ProductServiceHttpApiHostModule has some missing configuration for mapping metrics end point.
Please update
OnApplicationInitialization
method:app.UseConfiguredEndpoints();
to
app.UseConfiguredEndpoints(endpoints => endpoints.MapMetrics());
This is fixed and will be available from next version.
-
0
Excellent, thanks for speedy reply...appreciate it...all good now.
Cheers,
Mike
-
0
Closing the issue. This will be fixed after version 5.1.3.
I have refunded your question.
Thanks for reporting.