Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/phpfpm/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func GetMetrics(ctx context.Context, cfg *config.Config) (map[string]*Result, er
Global: make(map[string]string),
}

scheme, address, path, err := ParseAddress(poolCfg.Socket, poolCfg.StatusPath)
scheme, address, path, err := ParseAddress(poolCfg.StatusSocket, poolCfg.StatusPath)
if err != nil {
logging.L().Error("ElasticPHP-agent Invalid FPM socket address: %v", slog.Any("err", err))
continue
Expand Down Expand Up @@ -165,7 +165,7 @@ func GetMetrics(ctx context.Context, cfg *config.Config) (map[string]*Result, er
}

func GetMetricsForPool(ctx context.Context, pool config.FPMPoolConfig) (*Result, error) {
scheme, address, path, err := ParseAddress(pool.Socket, pool.StatusPath)
scheme, address, path, err := ParseAddress(pool.StatusSocket, pool.StatusPath)
if err != nil {
return nil, fmt.Errorf("invalid FPM socket address: %w", err)
}
Expand Down
Loading