<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Metrics on Dapr Docs</title><link>https://v1-18.docs.dapr.io/operations/observability/metrics/</link><description>Recent content in Metrics on Dapr Docs</description><generator>Hugo</generator><language>en</language><atom:link href="https://v1-18.docs.dapr.io/operations/observability/metrics/index.xml" rel="self" type="application/rss+xml"/><item><title>Configure metrics</title><link>https://v1-18.docs.dapr.io/operations/observability/metrics/metrics-overview/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/operations/observability/metrics/metrics-overview/</guid><description>&lt;p>By default, each Dapr system process emits Go runtime/process metrics and has their own &lt;a href="https://github.com/dapr/dapr/blob/master/docs/development/dapr-metrics.md">Dapr metrics&lt;/a>.&lt;/p>
&lt;h2 id="prometheus-endpoint">Prometheus endpoint&lt;/h2>
&lt;p>The Dapr sidecar exposes a &lt;a href="https://prometheus.io/">Prometheus&lt;/a>-compatible metrics endpoint that you can scrape to gain a greater understanding of how Dapr is behaving.&lt;/p>
&lt;h2 id="configuring-metrics-using-the-cli">Configuring metrics using the CLI&lt;/h2>
&lt;p>The metrics application endpoint is enabled by default. You can disable it by passing the command line argument &lt;code>--enable-metrics=false&lt;/code>.&lt;/p>
&lt;p>The default metrics port is &lt;code>9090&lt;/code>. You can override this by passing the command line argument &lt;code>--metrics-port&lt;/code> to daprd.&lt;/p></description></item><item><title>How-To: Observe metrics with Prometheus</title><link>https://v1-18.docs.dapr.io/operations/observability/metrics/prometheus/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/operations/observability/metrics/prometheus/</guid><description>&lt;h2 id="setup-prometheus-locally">Setup Prometheus Locally&lt;/h2>
&lt;p>To run Prometheus on your local machine, you can either &lt;a href="https://v1-18.docs.dapr.io/operations/observability/metrics/prometheus/#install">install and run it as a process&lt;/a> or run it as a &lt;a href="https://v1-18.docs.dapr.io/operations/observability/metrics/prometheus/#Run-as-Container">Docker container&lt;/a>.&lt;/p>
&lt;h3 id="install">Install&lt;/h3>


&lt;div class="alert alert-warning" role="alert">
&lt;h4 class="alert-heading">Note&lt;/h4>

 You don&amp;rsquo;t need to install Prometheus if you plan to run it as a Docker container. Please refer to the &lt;a href="https://v1-18.docs.dapr.io/operations/observability/metrics/prometheus/#run-as-container">Container&lt;/a> instructions.

&lt;/div>

&lt;p>To install Prometheus, follow the steps outlined &lt;a href="https://prometheus.io/docs/prometheus/latest/getting_started/">here&lt;/a> for your OS.&lt;/p>
&lt;h3 id="configure">Configure&lt;/h3>
&lt;p>Now you&amp;rsquo;ve installed Prometheus, you need to create a configuration.&lt;/p></description></item><item><title>How-To: Observe metrics with Grafana</title><link>https://v1-18.docs.dapr.io/operations/observability/metrics/grafana/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/operations/observability/metrics/grafana/</guid><description>&lt;h2 id="available-dashboards">Available dashboards&lt;/h2>








&lt;ul class="nav nav-tabs" id="tabs-0" role="tablist">
 &lt;li class="nav-item">
 &lt;button class="nav-link active"
 id="tabs-00-00-tab" data-bs-toggle="tab" data-bs-target="#tabs-00-00" role="tab"
 data-td-tp-persist="system service" aria-controls="tabs-00-00" aria-selected="true">
 System Service
 &lt;/button>
 &lt;/li>&lt;li class="nav-item">
 &lt;button class="nav-link"
 id="tabs-00-01-tab" data-bs-toggle="tab" data-bs-target="#tabs-00-01" role="tab"
 data-td-tp-persist="sidecars" aria-controls="tabs-00-01" aria-selected="false">
 Sidecars
 &lt;/button>
 &lt;/li>&lt;li class="nav-item">
 &lt;button class="nav-link"
 id="tabs-00-02-tab" data-bs-toggle="tab" data-bs-target="#tabs-00-02" role="tab"
 data-td-tp-persist="actors" aria-controls="tabs-00-02" aria-selected="false">
 Actors
 &lt;/button>
 &lt;/li>
&lt;/ul>

&lt;div class="tab-content" id="tabs-0-content">
 &lt;div class="tab-body tab-pane fade show active"
 id="tabs-00-00" role="tabpanel" aria-labelled-by="tabs-00-00-tab" tabindex="0">
 &lt;p>The &lt;code>grafana-system-services-dashboard.json&lt;/code> template shows Dapr system component status, dapr-operator, dapr-sidecar-injector, dapr-sentry, and dapr-placement:&lt;/p>
&lt;img src="https://v1-18.docs.dapr.io/images/grafana-system-service-dashboard.png" alt="Screenshot of the system service dashboard" width=1200>

 &lt;/div>
 &lt;div class="tab-body tab-pane fade"
 id="tabs-00-01" role="tabpanel" aria-labelled-by="tabs-00-01-tab" tabindex="0">
 &lt;p>The &lt;code>grafana-sidecar-dashboard.json&lt;/code> template shows Dapr sidecar status, including sidecar health/resources, throughput/latency of HTTP and gRPC, Actor, mTLS, etc.:&lt;/p></description></item><item><title>How-To: Set-up New Relic to collect and analyze metrics</title><link>https://v1-18.docs.dapr.io/operations/observability/metrics/newrelic/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/operations/observability/metrics/newrelic/</guid><description>&lt;h2 id="prerequisites">Prerequisites&lt;/h2>
&lt;ul>
&lt;li>Perpetually &lt;a href="https://newrelic.com/signup?ref=dapr">free New Relic account&lt;/a>, 100 GB/month of free data ingest, 1 free full access user, unlimited free basic users&lt;/li>
&lt;/ul>
&lt;h2 id="background">Background&lt;/h2>
&lt;p>New Relic offers a Prometheus OpenMetrics Integration.&lt;/p>
&lt;p>This document explains how to install it in your cluster, either using a Helm chart (recommended).&lt;/p>
&lt;h2 id="installation">Installation&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>Install Helm following the official instructions.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Add the New Relic official Helm chart repository following &lt;a href="https://github.com/newrelic/helm-charts/blob/master/README.md#installing-charts">these instructions&lt;/a>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Run the following command to install the New Relic Logging Kubernetes plugin via Helm, replacing the placeholder value YOUR_LICENSE_KEY with your &lt;a href="https://docs.newrelic.com/docs/accounts/accounts-billing/account-setup/new-relic-license-key">New Relic license key&lt;/a>:&lt;/p></description></item><item><title>How-To: Set up Azure Monitor to search logs and collect metrics</title><link>https://v1-18.docs.dapr.io/operations/observability/metrics/azure-monitor/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/operations/observability/metrics/azure-monitor/</guid><description>&lt;h2 id="prerequisites">Prerequisites&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="https://docs.microsoft.com/azure/aks/">Azure Kubernetes Service&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://docs.microsoft.com/azure/azure-monitor/insights/container-insights-overview">Enable Azure Monitor For containers in AKS&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://kubernetes.io/docs/tasks/tools/">kubectl&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://helm.sh/">Helm 3&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="enable-prometheus-metric-scrape-using-config-map">Enable Prometheus metric scrape using config map&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>Make sure that Azure Monitor Agents (AMA) are running.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>$ kubectl get pods -n kube-system
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>NAME READY STATUS RESTARTS AGE
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>...
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>ama-logs-48kpv 2/2 Running &lt;span style="color:#0000cf;font-weight:bold">0&lt;/span> 2d13h
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>ama-logs-mx24c 2/2 Running &lt;span style="color:#0000cf;font-weight:bold">0&lt;/span> 2d13h
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>ama-logs-rs-f9bbb9898-vbt6k 1/1 Running &lt;span style="color:#0000cf;font-weight:bold">0&lt;/span> 30h
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>ama-logs-sm2mz 2/2 Running &lt;span style="color:#0000cf;font-weight:bold">0&lt;/span> 2d13h
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>ama-logs-z7p4c 2/2 Running &lt;span style="color:#0000cf;font-weight:bold">0&lt;/span> 2d13h
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>...
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Apply config map to enable Prometheus metrics endpoint scrape.&lt;/p></description></item></channel></rss>