Howdy
That is the correct part for the oil gauge sender. Being brass it shouldn't rust off like the last one, but it may not be brass, might be zinc plating. If it's zinc as in the pic below, it will still rust, may want to paint.
The sender has nut on the bottom, need a short open end...