Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Handle case of empty metrics (#6050)
Adrian Gruntkowski533649c9d7d3
diff --git a/lib/plausible/prom_ex/striped_peep.ex b/lib/plausible/prom_ex/striped_peep.exindex 7baae9b1a3..613c09ec0e 100644--- a/lib/plausible/prom_ex/striped_peep.ex+++ b/lib/plausible/prom_ex/striped_peep.ex@@ -7,7 +7,7 @@ defmodule Plausible.PromEx.StripedPeep do@impl truedef scrape(name) do- Peep.get_all_metrics(name)+ (Peep.get_all_metrics(name) || [])|> Peep.Prometheus.export()|> IO.iodata_to_binary()end