<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Statistics and monitoring on </title>
    <link>https://emissary-ingress.dev/docs/4.1/topics/running/statistics/</link>
    <description>Recent content in Statistics and monitoring on </description>
    <generator>Hugo</generator>
    <language>en</language>
    <atom:link href="https://emissary-ingress.dev/docs/4.1/topics/running/statistics/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Envoy statistics with StatsD</title>
      <link>https://emissary-ingress.dev/docs/4.1/topics/running/statistics/envoy-statsd/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://emissary-ingress.dev/docs/4.1/topics/running/statistics/envoy-statsd/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;For an overview of other options for gathering statistics on&#xA;Emissary, see the &lt;a href=&#34;https://emissary-ingress.dev/docs/4.1/topics/running/&#34;&gt;Statistics and Monitoring&lt;/a&gt; overview.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;At the core of Emissary is &lt;a href=&#34;https://www.envoyproxy.io&#34;&gt;Envoy Proxy&lt;/a&gt;, which has built-in&#xA;support for exporting a multitude of statistics about its own&#xA;operations to StatsD (or to the modified DogStatsD used by Datadog).&lt;/p&gt;&#xA;&lt;p&gt;If enabled, then Emissary has Envoy expose this information via the&#xA;&lt;a href=&#34;https://github.com/etsy/statsd&#34;&gt;StatsD&lt;/a&gt; protocol.&#xA;To enable this, you will simply need to set the environment&#xA;variable &lt;code&gt;STATSD_ENABLED=true&lt;/code&gt; in Emissary&amp;rsquo;s deployment YAML:&lt;/p&gt;</description>
    </item>
    <item>
      <title>The metrics endpoint</title>
      <link>https://emissary-ingress.dev/docs/4.1/topics/running/statistics/8877-metrics/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://emissary-ingress.dev/docs/4.1/topics/running/statistics/8877-metrics/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;For an overview of other options for gathering statistics on&#xA;Emissary, see the &lt;a href=&#34;https://emissary-ingress.dev/docs/4.1/topics/running/&#34;&gt;Statistics and Monitoring&lt;/a&gt; overview.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Each Emissary pod exposes statistics and metrics for that pod at&#xA;&lt;code&gt;http://{POD}:8877/metrics&lt;/code&gt;.  The response is in the text-based&#xA;Prometheus &lt;a href=&#34;https://prometheus.io/docs/instrumenting/exposition_formats/&#34;&gt;exposition format&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;understanding-the-statistics&#34;&gt;Understanding the statistics&lt;/h2&gt;&#xA;&lt;p&gt;The Prometheus exposition format includes special &amp;ldquo;HELP&amp;rdquo; lines that&#xA;make the file self-documenting as to what specific statistics mean.&lt;/p&gt;&#xA;&lt;!--&#xA;&#xA;  TODO(lukeshu): Go in to more detail about Envoy&#39;s statistics; the&#xA;  discoverability of them in Envoy&#39;s docs is really bad.  The best&#xA;  thing to grep for in envoy.git is:&#xA;&#xA;     git grep -E &#39;, *(Gauge|Counter|Histogram) *,&#39; docs&#xA;&#xA;--&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;envoy_*&lt;/code&gt;: See the &lt;a href=&#34;https://www.envoyproxy.io/docs/envoy/v1.23.0/operations/admin.html#get--stats-prometheus&#34;&gt;Envoy documentation&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;ambassador_*&lt;/code&gt;:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;ambassador_edge_stack_*&lt;/code&gt; (not present in Emissary):&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;ambassador_edge_stack_go_*&lt;/code&gt;: See [&lt;code&gt;promethus.NewGoCollector()&lt;/code&gt;][].&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;ambassador_edge_stack_promhttp_*&lt;/code&gt; See &lt;a href=&#34;https://godoc.org/github.com/prometheus/client_golang/prometheus/promhttp#Handler&#34;&gt;&lt;code&gt;promhttp.Handler()&lt;/code&gt;&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;ambassador_edge_stack_process_*&lt;/code&gt;: See [&lt;code&gt;promethus.NewProcessCollector()&lt;/code&gt;][]..&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;ambassador_*_time_seconds&lt;/code&gt; (for &lt;code&gt;*&lt;/code&gt; = one of &lt;code&gt;aconf&lt;/code&gt;, &lt;code&gt;diagnostics&lt;/code&gt;, &lt;code&gt;econf&lt;/code&gt;, &lt;code&gt;fetcher&lt;/code&gt;, &lt;code&gt;ir&lt;/code&gt;, or &lt;code&gt;reconfiguration&lt;/code&gt;):&#xA;Gauges of how long the various core operations take in the diagd&#xA;process.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;ambassador_diagnostics_(errors|notices)&lt;/code&gt;: The number of&#xA;diagnostics errors and notices that would be shown in the&#xA;diagnostics UI or the Edge Policy Console.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;ambassador_diagnostics_info&lt;/code&gt;: &lt;a href=&#34;https://github.com/prometheus/client_python#info&#34;&gt;Info&lt;/a&gt;&#xA;about the Emissary install; all information is presented in&#xA;labels; the value of the Gauge is always &amp;ldquo;1&amp;rdquo;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;ambassador_process_*&lt;/code&gt;: See &lt;a href=&#34;https://github.com/prometheus/client_python#process-collector&#34;&gt;&lt;code&gt;prometheus_client.ProcessCollector&lt;/code&gt;&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;polling-the-8877metrics-endpoint-with-prometheus&#34;&gt;Polling the &lt;code&gt;:8877/metrics&lt;/code&gt; endpoint with Prometheus&lt;/h2&gt;&#xA;&lt;p&gt;To scrape metrics directly, follow the instructions for &lt;a href=&#34;../../../../howtos/prometheus&#34;&gt;Monitoring&#xA;with Prometheus and Grafana&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
