Comments (1)
I figured out that UseMetrics() needs to appear after ConfigureWebHostDefaults() like shown below. I can now see global tags.
Program.cs:
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
})
.UseMetrics(options => // <-- must appear after ConfigureWebHostDefaults above or will not see global tags
{
options.EndpointOptions = endpointOptions =>
{
endpointOptions.MetricsTextEndpointOutputFormatter = new MetricsPrometheusTextOutputFormatter();
endpointOptions.MetricsEndpointOutputFormatter = new MetricsPrometheusProtobufOutputFormatter();
endpointOptions.EnvironmentInfoEndpointEnabled = false;
};
});
from appmetrics.
Related Issues (20)
- how to publish metrics on service startup
- AppMetrics Maintenance Plan HOT 3
- Dynamic OutputMetrics via configuration
- InfluxDB not created on pushing metrics using HTTPS
- Reporter App.Metrics.Reporting.InfluxDb2.InfluxDbMetricsReporter FlushAsync failed
- Has AppMetrics been abandoned? HOT 4
- Potential new .NET runtime metrics APIs HOT 1
- Does the project still alive HOT 2
- Net6: runtime error 'Synchronous operations are disallowed'
- Using all data instead of Reservoir Sampling
- App Metrics Issue {"value": 0}
- ResetOnReporting is not passed to base ctor, BucketHistogram is not working properly
- net6 App.Metrics.Extensions.Reporting.ElasticSearch ?
- Formatters.GrafanaCloudHostedMetrics will send interval 0
- see memory usage
- AppMetrics generates a ton of string and string[]
- AppMetrics usage causes Native AoT build issues
- Metrics are not reported to InfluxDb v2 HOT 1
- Is this project still alive HOT 1
- AppMetrics compatibility with Opentelemetry automatic instrumentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appmetrics.