Documentation
¶
Overview ¶
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
Index ¶
- func AllMetricsPage(ctx context.Context, c *collector.DataCollector, basePath string) (templ.Component, error)
- func AllMetricsPageContent(metrics []collector.MetricEntry, basePath string) templ.Component
- func CollectorDetailPage(ctx context.Context, c *collector.DataCollector, h *collector.DataHistory, ...) (templ.Component, error)
- func CollectorDetailPageContent(detail *collector.CollectorDetail, metricsData *collector.MetricsData, ...) templ.Component
- func ErrorPage(code int, title, message, retryURL string) templ.Component
- func ExtensionsPage(ctx context.Context, registry *contributor.ContributorRegistry, ...) (templ.Component, error)
- func ExtensionsPageContent(extensions []ExtensionInfo, basePath string) templ.Component
- func HealthPage(ctx context.Context, c *collector.DataCollector, h *collector.DataHistory) (templ.Component, error)
- func HealthPageContent(health *collector.HealthData, healthChart chart.Data, hasHistory bool) templ.Component
- func InternalErrorPage(detail string) templ.Component
- func MetricDetailPage(ctx context.Context, c *collector.DataCollector, h *collector.DataHistory, ...) (templ.Component, error)
- func MetricDetailPageContent(detail *collector.MetricDetail, bucketChart chart.Data, ...) templ.Component
- func MetricsPage(ctx context.Context, c *collector.DataCollector, h *collector.DataHistory, ...) (templ.Component, error)
- func MetricsPageContent(report *collector.MetricsReport, metricsData *collector.MetricsData, ...) templ.Component
- func NotFoundPage(basePath string) templ.Component
- func OverviewPage(ctx context.Context, c *collector.DataCollector, h *collector.DataHistory, ...) (templ.Component, error)
- func OverviewPageContent(overview *collector.OverviewData, health *collector.HealthData, ...) templ.Component
- func ServiceUnavailablePage(retryURL string) templ.Component
- func ServicesPage(ctx context.Context, c *collector.DataCollector) (templ.Component, error)
- func ServicesPageContent(services []collector.ServiceInfo) templ.Component
- func TraceDetailPage(ctx context.Context, store *collector.TraceStore, traceID string, ...) (templ.Component, error)
- func TraceDetailPageContent(detail *collector.TraceDetail, basePath string) templ.Component
- func TracesPage(ctx context.Context, store *collector.TraceStore, basePath string) (templ.Component, error)
- func TracesPageContent(traces []collector.TraceSummary, stats collector.TraceStats, basePath string) templ.Component
- type ExtensionInfo
- type HTTPSummary
- type PathMetricEntry
- type RuntimeSummary
- type SystemSummary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllMetricsPage ¶ added in v1.2.0
func AllMetricsPage(ctx context.Context, c *collector.DataCollector, basePath string) (templ.Component, error)
AllMetricsPage collects data and returns the full metrics list page component.
func AllMetricsPageContent ¶ added in v1.2.0
func AllMetricsPageContent(metrics []collector.MetricEntry, basePath string) templ.Component
AllMetricsPageContent renders the dedicated full metrics list page with search and filters.
func CollectorDetailPage ¶ added in v1.2.0
func CollectorDetailPage(ctx context.Context, c *collector.DataCollector, h *collector.DataHistory, name string, basePath string) (templ.Component, error)
CollectorDetailPage collects data and returns the collector detail page component.
func CollectorDetailPageContent ¶ added in v1.2.0
func CollectorDetailPageContent(detail *collector.CollectorDetail, metricsData *collector.MetricsData, entries []collector.MetricEntry, statusChart chart.Data, methodChart chart.Data, basePath string) templ.Component
CollectorDetailPageContent renders the collector detail page.
func ErrorPage ¶
ErrorPage renders an error page with appropriate styling for the given status code.
func ExtensionsPage ¶ added in v1.2.0
func ExtensionsPage(ctx context.Context, registry *contributor.ContributorRegistry, basePath string) (templ.Component, error)
ExtensionsPage collects extension info from the registry and returns the page component.
func ExtensionsPageContent ¶ added in v1.2.0
func ExtensionsPageContent(extensions []ExtensionInfo, basePath string) templ.Component
ExtensionsPageContent renders the extensions listing page with a grid of extension cards.
func HealthPage ¶
func HealthPage(ctx context.Context, c *collector.DataCollector, h *collector.DataHistory) (templ.Component, error)
HealthPage collects data and returns the health page component.
func HealthPageContent ¶ added in v1.0.0
func HealthPageContent(health *collector.HealthData, healthChart chart.Data, hasHistory bool) templ.Component
HealthPageContent renders the health checks page with service statuses and history chart.
func InternalErrorPage ¶
InternalErrorPage renders a 500 error page.
func MetricDetailPage ¶ added in v1.2.0
func MetricDetailPage(ctx context.Context, c *collector.DataCollector, h *collector.DataHistory, name string, basePath string) (templ.Component, error)
MetricDetailPage collects data and returns the metric detail page component.
func MetricDetailPageContent ¶ added in v1.2.0
func MetricDetailPageContent(detail *collector.MetricDetail, bucketChart chart.Data, timeSeriesChart chart.Data, hasTimeSeries bool, basePath string) templ.Component
MetricDetailPageContent renders the metric detail page.
func MetricsPage ¶
func MetricsPage(ctx context.Context, c *collector.DataCollector, h *collector.DataHistory, basePath string) (templ.Component, error)
MetricsPage collects data and returns the metrics overview page component.
func MetricsPageContent ¶ added in v1.0.0
func MetricsPageContent(report *collector.MetricsReport, metricsData *collector.MetricsData, typeChart chart.Data, trendChart chart.Data, hasHistory bool, recentMetrics []collector.MetricEntry, basePath string) templ.Component
MetricsPageContent renders the metrics overview page with stats, charts, and recent metrics.
func NotFoundPage ¶
NotFoundPage renders a 404 error page.
func OverviewPage ¶
func OverviewPage(ctx context.Context, c *collector.DataCollector, h *collector.DataHistory, pluginWidgets []contributor.ResolvedWidget, basePath string) (templ.Component, error)
OverviewPage collects data and returns the overview page component.
func OverviewPageContent ¶ added in v1.0.0
func OverviewPageContent(overview *collector.OverviewData, health *collector.HealthData, serviceChart chart.Data, hasHistory bool, pluginWidgets []contributor.ResolvedWidget, basePath string) templ.Component
OverviewPageContent renders the dashboard overview page with stats, charts, health summary, and plugin widgets.
func ServiceUnavailablePage ¶
ServiceUnavailablePage renders a 503 error page with optional auto-retry.
func ServicesPage ¶
ServicesPage collects data and returns the services page component.
func ServicesPageContent ¶ added in v1.0.0
func ServicesPageContent(services []collector.ServiceInfo) templ.Component
ServicesPageContent renders the services list page with improved cards.
func TraceDetailPage ¶ added in v1.2.0
func TraceDetailPage(ctx context.Context, store *collector.TraceStore, traceID string, basePath string) (templ.Component, error)
TraceDetailPage is the constructor that builds the trace detail page.
func TraceDetailPageContent ¶ added in v1.2.0
func TraceDetailPageContent(detail *collector.TraceDetail, basePath string) templ.Component
TraceDetailPageContent renders the full trace detail view with waterfall timeline.
func TracesPage ¶ added in v1.2.0
func TracesPage(ctx context.Context, store *collector.TraceStore, basePath string) (templ.Component, error)
TracesPage is the constructor that builds the traces list page.
func TracesPageContent ¶ added in v1.2.0
func TracesPageContent(traces []collector.TraceSummary, stats collector.TraceStats, basePath string) templ.Component
TracesPageContent renders the traces list page with stats, filters, and table.
Types ¶
type ExtensionInfo ¶ added in v1.2.0
type ExtensionInfo struct {
Name string
DisplayName string
Icon string
Version string
Layout string
EntryPath string
WidgetCount int
PageCount int
IsCore bool
}
ExtensionInfo holds display data for a single extension on the extensions listing page.
type HTTPSummary ¶ added in v1.2.0
type HTTPSummary struct {
ErrorRate string
RPS string
AvgDuration string
ActiveRequests string
AvgRequestSize string
AvgResponseSize string
TotalRequests string
}
HTTPSummary contains summary stats for the HTTP collector.
type PathMetricEntry ¶ added in v1.2.0
PathMetricEntry contains per-path HTTP metric data.
Source Files
¶
- chart_helpers.go
- error_templ.go
- extensions_helpers.go
- extensions_templ.go
- health_helpers.go
- health_templ.go
- metrics_all_templ.go
- metrics_collector_detail_templ.go
- metrics_detail_helpers.go
- metrics_detail_templ.go
- metrics_helpers.go
- metrics_templ.go
- overview_helpers.go
- overview_templ.go
- services_helpers.go
- services_templ.go
- trace_detail_templ.go
- traces_helpers.go
- traces_templ.go