{"result":{"depiction_url":null,"edges":{"hasreference":{"objects":[{"created":"2026-10-07T11:13:40Z","object_id":{"id":3078,"is_a":["text","documentation","adminguide"],"name":"admin_health_checks","title":{"_type":"trans","tr":{"en":"Check that a site is working"}},"uri":"https:\/\/zotonic.com\/id\/3078"},"seq":1},{"created":"2026-10-07T11:13:40Z","object_id":{"id":3004,"is_a":["text","documentation","developerguide"],"name":"developer_slow_requests","title":{"_type":"trans","tr":{"en":"A page is slow"}},"uri":"https:\/\/zotonic.com\/id\/3004"},"seq":2}],"predicate":{"id":2774,"is_a":["meta","predicate"],"name":"hasreference","title":{"_type":"trans","tr":{"en":"Documentation reference"}},"uri":"https:\/\/zotonic.com\/id\/hasreference"}},"subject":{"objects":[{"created":"2026-10-07T11:13:40Z","object_id":{"id":2557,"is_a":["categorization","keyword","keyword_information_type"],"name":"zotonic_topic_cookbook_recipe","title":"Cookbook recipe","uri":"https:\/\/zotonic.com\/id\/2557"},"seq":1},{"created":"2026-10-07T11:13:40Z","object_id":{"id":2566,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_operator","title":"Operator","uri":"https:\/\/zotonic.com\/id\/2566"},"seq":2},{"created":"2026-10-07T11:13:40Z","object_id":{"id":2607,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_logging_and_monitoring","title":"Logging and monitoring","uri":"https:\/\/zotonic.com\/id\/2607"},"seq":3},{"created":"2026-10-07T11:13:40Z","object_id":{"id":2688,"is_a":["categorization","keyword","keyword_quality"],"name":"zotonic_topic_performance","title":"Performance","uri":"https:\/\/zotonic.com\/id\/2688"},"seq":4}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"id":1318,"is_a":["text","documentation","cookbook"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1318"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_cookbook_exometer","page_url":{"en":"https:\/\/zotonic.com\/cookbook\/1318\/inspect-and-export-zotonic-metrics","x-default":"https:\/\/zotonic.com\/cookbook\/1318\/inspect-and-export-zotonic-metrics"},"preview_url":null,"resource":{"body":{"_type":"trans","tr":{"en":"<p>Zotonic collects metrics through Exometer. Connect to the running node with <code>bin\/zotonic shell<\/code> and list the available metrics for a site:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-erlang\">exometer:find_entries([site, garden]).\n<\/code><\/pre>\n<p>Use a name from that result with <code>exometer:info(Name, datapoints)<\/code> and <code>exometer:get_value(Name)<\/code>. Generate a few requests and repeat the read to confirm the metric changes. Press <strong>Ctrl-C twice<\/strong> to leave the remote shell.<\/p>\n<p>Current site metrics use <code>[site, Site, System, What]<\/code>; the old <code>[zotonic, Site, webzmachine, requests]<\/code> examples are not a reliable subscription target. Counters\/rates and duration histograms expose different datapoints. Discover them instead of subscribing to <code>value<\/code> everywhere.<\/p>\n<p>For export, choose a reporter that is actually installed with your deployment. Inspect the dependency version&#39;s reporter options and configure it under <code>exometer_core<\/code> in <code>erlang.config<\/code>, then subscribe to the selected names and datapoints. Zotonic also has its own MQTT statistics reporter; see <code>z_stats<\/code> and <code>z_exometer_mqtt<\/code> for the installed implementation.<\/p>\n<p>Test that the destination receives samples with the expected units, site labels and interval. Shell-only reporter changes disappear after restart. Do not assume a third-party Graphite, StatsD or SNMP reporter is bundled merely because an old cookbook listed it.<\/p>"}},"category_id":{"id":318,"is_a":["meta","category"],"name":"cookbook","title":{"_type":"trans","tr":{"en":"Cookbook"}},"uri":"https:\/\/test.zotonic.com\/id\/318"},"content_group_id":{"id":339,"is_a":["meta","content_group"],"name":"default_content_group","title":{"_type":"trans","tr":{"en":"Default Content Group"}},"uri":"https:\/\/zotonic.com\/id\/default_content_group"},"created":"2020-05-30T05:47:18Z","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"doc_editorial_bundle":true,"doc_editorial_edges":{"hasreference":[3004,3078],"subject":[2557,2566,2607,2688]},"github_url":"https:\/\/github.com\/zotonic\/zotonic\/tree\/master\/doc\/cookbook\/exometer.rst","is_authoritative":true,"is_dependent":false,"is_featured":false,"is_protected":false,"is_published":true,"is_unfindable":false,"language":["en"],"modified":"2026-10-07T11:13:49Z","modifier_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"name":"doc_cookbook_exometer","pivot_geocode":null,"pivot_location_lat":null,"pivot_location_lng":null,"privacy":0,"publication_end":"9999-06-01T00:00:00Z","publication_start":"2022-02-15T10:01:42Z","slug":"inspect-and-export-zotonic-metrics","summary":{"_type":"trans","tr":{"en":"Discover actual metrics before configuring subscriptions."}},"title":{"_type":"trans","tr":{"en":"Inspect and export Zotonic metrics"}},"title_slug":{"_type":"trans","tr":{"en":"inspect-and-export-zotonic-metrics"}},"tz":"UTC","uri":null,"version":33,"visible_for":0},"uri":"https:\/\/zotonic.com\/id\/1318","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1318"}},"status":"ok"}