{"id":97,"date":"2022-04-11T15:46:27","date_gmt":"2022-04-11T13:46:27","guid":{"rendered":"https:\/\/blubb.fish\/?p=97"},"modified":"2022-04-11T15:46:28","modified_gmt":"2022-04-11T13:46:28","slug":"matrix-statistics","status":"publish","type":"post","link":"https:\/\/blubb.fish\/index.php\/2022\/04\/11\/matrix-statistics\/","title":{"rendered":"Matrix statistics"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Set up the statistics service for your messaging server<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Additional information: <a href=\"https:\/\/github.com\/spantaleev\/matrix-docker-ansible-deploy\/blob\/master\/docs\/configuring-playbook-prometheus-grafana.md\" data-type=\"URL\" data-id=\"https:\/\/github.com\/spantaleev\/matrix-docker-ansible-deploy\/blob\/master\/docs\/configuring-playbook-prometheus-grafana.md\">here<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">stats.&lt;your-domain&gt; DNS entry has to exist<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">add the following to the inventory\/host_vars\/matrix.\/vars.yml file<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>matrix_prometheus_enabled: true\n\nmatrix_prometheus_node_exporter_enabled: true\n\nmatrix_grafana_enabled: true\n\nmatrix_grafana_anonymous_access: false\n\n# This has no relation to your Matrix user id. It can be any username you'd like.\n# Changing the username subsequently won't work.\nmatrix_grafana_default_admin_user: \"&lt;username&gt;\"\n\n# Changing the password subsequently won't work.\nmatrix_grafana_default_admin_password: \"&lt;secret-pass&gt;\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now run the setup again<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ansible-playbook -i inventory\/hosts setup.yml --tags=setup-all<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">restart the services<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ansible-playbook -i inventory\/hosts setup.yml --tags=start<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now you should be able to login to https:\/\/stats.&lt;your-domain&gt;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"993\" height=\"788\" src=\"https:\/\/blubb.fish\/wp-content\/uploads\/2022\/03\/grafana.png\" alt=\"\" class=\"wp-image-98\" srcset=\"https:\/\/blubb.fish\/wp-content\/uploads\/2022\/03\/grafana.png 993w, https:\/\/blubb.fish\/wp-content\/uploads\/2022\/03\/grafana-300x238.png 300w, https:\/\/blubb.fish\/wp-content\/uploads\/2022\/03\/grafana-768x609.png 768w\" sizes=\"auto, (max-width: 993px) 100vw, 993px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Set up the statistics service for your messaging server Additional information: here stats.&lt;your-domain&gt; DNS entry has to exist add the following to the inventory\/host_vars\/matrix.\/vars.yml file Now run the setup again restart the services Now you should be able to login to https:\/\/stats.&lt;your-domain&gt;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,10],"tags":[],"class_list":["post-97","post","type-post","status-publish","format-standard","hentry","category-linux","category-matrix"],"_links":{"self":[{"href":"https:\/\/blubb.fish\/index.php\/wp-json\/wp\/v2\/posts\/97","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blubb.fish\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blubb.fish\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blubb.fish\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blubb.fish\/index.php\/wp-json\/wp\/v2\/comments?post=97"}],"version-history":[{"count":2,"href":"https:\/\/blubb.fish\/index.php\/wp-json\/wp\/v2\/posts\/97\/revisions"}],"predecessor-version":[{"id":109,"href":"https:\/\/blubb.fish\/index.php\/wp-json\/wp\/v2\/posts\/97\/revisions\/109"}],"wp:attachment":[{"href":"https:\/\/blubb.fish\/index.php\/wp-json\/wp\/v2\/media?parent=97"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blubb.fish\/index.php\/wp-json\/wp\/v2\/categories?post=97"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blubb.fish\/index.php\/wp-json\/wp\/v2\/tags?post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}