Running 5V status LEDs on 24V circuit?
First, take note that your SSR is drawn backwards in your schematic.

Most LED's are current driven devices that will illuminate properly with 10 to 15 mA of current. When this much current passes through the LED, it generally has about 2 volts across it. This means that you need a resistor that will have the other 22 volts across it when ~10 mA of current is passing through it.

A simple Ohm's law calculation of 22 volts / 0.010 amps shows that a resistor of ~ 2200 ohms should do the job. Then calculate the wattage rating of the resistor as 0.010 amps * 0.010 amps * 2200 ohms and you have 0.22 watts. For reliability sake, you should use at least a 0.5 watt resistor.

The LED is connected in parallel with the LED of your SSR with the same polarity as the LED in the SSR (recalling that your schematic shows it backwards).