SShortSingh.
Back to feed

How to Add Observability to ASP.NET Core APIs with Prometheus and Grafana

0
·4 views

A hands-on tutorial demonstrates how to implement observability in an ASP.NET Core Minimal API using Prometheus, Grafana, and Docker Compose. Developers learn to create custom metrics — including Counters and Histograms — via the prometheus-net.AspNetCore package, exposing data through a /metrics endpoint. Prometheus periodically scrapes this endpoint and stores time-series data, which Grafana then visualizes through configurable dashboards built with PromQL queries. The guide covers practical steps such as configuring Prometheus as a Grafana data source, using Docker Compose service names instead of localhost, and importing pre-built dashboards from Grafana Labs. The tutorial is aimed at teams monitoring APIs, microservices, and distributed ASP.NET Core systems that need to track request volume and operation duration over time.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Glance Unlock lets Mac users lock individual apps with face and blink detection

A developer has released Glance Unlock, a macOS menu bar app that allows users to lock specific applications rather than their entire Mac. Authentication works through on-device face detection combined with a blink check, with no data sent to external servers or stored locally as photos or video. The app currently supports Apple Silicon Macs running macOS 26 or newer and has not yet received Apple notarization, requiring manual installation steps. Users can also fall back to Touch ID or their macOS password if needed. The developer describes it as a lightweight privacy layer and not a replacement for system-level security features like FileVault or the macOS lock screen.

0
ProgrammingDEV Community ·

Code Tracker AI Plugin Launches on Product Hunt to Help Developers Understand Their Own Code

Solo developer Mona Hidalgo has launched Code Tracker AI (CTAI), a JetBrains IDE plugin designed to help developers understand existing code rather than generate new code faster. The tool provides real-time explanations of what functions do and why, flags issues with root-cause context, and automatically maintains 'Code Books' that log the reasoning behind coding decisions as work happens. Built from rural New Mexico without a team, CTAI runs on a custom architecture combining Git history, 60-plus security and quality checks, and an AI narrative engine that produces plain-English explanations. The plugin supports multi-model LLM routing across Claude, DeepSeek, Llama, Mistral, and Amazon Nova, and is available on the JetBrains Marketplace for IntelliJ, PyCharm, WebStorm, and Android Studio. Hidalgo says the tool targets a gap she repeatedly encountered: reconstructing the intent behind old or unfamiliar code, a problem she argues has grown more acute as AI-generated code outpaces developers' ability to comprehend it.

0
ProgrammingDEV Community ·

Stanford Builds 37,000-Agent AI System to Simulate Full Drug Development Pipeline

Stanford Medicine researchers published a study in Science on September 17, 2026, detailing a virtual biotech company composed of tens of thousands of AI agents covering the entire drug-development process. Led by Zhang and senior author Zou, the system identified candidate success signals and proposed an antibody-drug conjugate targeting B7-H3 using data predating January 2025. Notably, a pharmaceutical company independently reached a similar strategy months later, which subsequently received FDA breakthrough therapy designation — serving as an external validation of the system's outputs. The research highlights key design principles such as role specialization, shared memory, and human oversight over irreversible decisions. Experts note the findings carry broad implications for deep-tech startups, emphasizing the need for structured agent governance and rigorous audit trails over simply scaling up AI agents.

0
ProgrammingDEV Community ·

Java Collections Guide: When to Use List, Set, or Map in Real Projects

The Java Collections Framework provides three core data structures — List, Set, and Map — each suited to different programming needs. List preserves insertion order and allows duplicates, making it ideal for ordered sequences like task queues. Set enforces uniqueness with no guaranteed order by default, useful for scenarios like deduplicating social media posts. Map stores key-value pairs with unique keys, making it well-suited for lookups such as tracking product quantities in a shopping cart. Choosing the right collection and its specific implementation, such as ArrayList versus LinkedList or HashMap versus TreeMap, depends on the access patterns and ordering requirements of the use case.