Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
func NewCollector ¶
func NewCollector(instanceUuid, version string, db *db.DB, cache *cache.Cache, pricing *cloud_pricing.Manager, globalClickHouse *db.IntegrationClickhouse) *Collector
func (*Collector) RegisterRequest ¶
type InspectionOverride ¶
type ResourcesUsage ¶ added in v1.6.4
type Stats ¶
type Stats struct { Instance struct { Uuid string `json:"uuid"` Version string `json:"version"` DatabaseType string `json:"database_type"` } `json:"instance"` Integration struct { Prometheus bool `json:"prometheus"` PrometheusRefreshInterval int `json:"prometheus_refresh_interval"` NodeAgent bool `json:"node_agent"` NodeAgentVersions *utils.StringSet `json:"node_agent_versions"` KubeStateMetrics *bool `json:"kube_state_metrics"` InspectionOverrides map[model.CheckId]InspectionOverride `json:"inspection_overrides"` ApplicationCategories int `json:"application_categories"` AlertingIntegrations *utils.StringSet `json:"alerting_integrations"` CloudCosts bool `json:"cloud_costs"` Clickhouse bool `json:"clickhouse"` Tracing bool `json:"tracing"` Logs bool `json:"logs"` Profiles bool `json:"profiles"` } `json:"integration"` Stack struct { Clouds *utils.StringSet `json:"clouds"` Services *utils.StringSet `json:"services"` InstrumentedServices *utils.StringSet `json:"instrumented_services"` } `json:"stack"` Infra struct { Projects int `json:"projects"` Nodes int `json:"nodes"` CPUCores int `json:"cpu_cores"` Applications int `json:"applications"` Instances int `json:"instances"` Deployments int `json:"deployments"` DeploymentSummaries map[string]int `json:"deployment_summaries"` KernelVersions *utils.StringSet `json:"kernel_versions"` } `json:"infra"` UX struct { WorldLoadTimeAvg float32 `json:"world_load_time_avg"` AuditTimeAvg float32 `json:"audit_time_avg"` UsersByScreenSize map[string]int `json:"users_by_screen_size"` UsersByTheme map[string]int `json:"users_by_theme"` Users *utils.StringSet `json:"users"` UsersByRole map[string]int `json:"users_by_role"` PageViews map[string]int `json:"page_views"` SentNotifications map[db.IntegrationType]int `json:"sent_notifications"` } `json:"ux"` Performance struct { Constructor constructor.Profile `json:"constructor"` ResourcesUsage map[model.ApplicationId][]ResourcesUsage `json:"resources_usage"` } `json:"performance"` Profile struct { From int64 `json:"from"` To int64 `json:"to"` CPU string `json:"cpu"` Memory string `json:"memory"` } `json:"profile"` }
Click to show internal directories.
Click to hide internal directories.