The Stoplight Exporter

NOTE This component was deprecated with the v4.7 release of Stoplight Next, so it is not needed with a stable production deployment.

The Exporter component de-references JSON specifications to ensure all referenced files and external data sources are resolved when needed.

Networking Details

The default port for the Exporter component is TCP port 3031. The port can be customized using the PORT configuration variable.

The Exporter must be able to receive incoming connections from the following components:

  • User Clients (web browser or desktop application)
  • App
  • API
  • Prism

The Exporter must be able to make outgoing connections to the following components:

  • API

Component Dependencies

The Exporter is stateless, and has no component dependencies.


The Stoplight Exporter can be installed with Docker or via RPM package.

RPM Package

Prior to installing the RPM package, you will need to:

  • Install NodeJS

  • Have the Stoplight package repository installed and configured with your user-specific credentials

Installing NodeJS

To install NodeJS, run the following commands:

# make sure all current versions of nodejs are removed
sudo yum remove nodejs npm -y

# install nodejs
sudo rpm -Uvh

Once the installation has completed, verify the version installed with the command:

$ node --version

If you do not see a version starting v8.16, contact Stoplight support for assistance.

Setting up the Package Repository

You can do this by copying-and-pasting the contents below into a terminal:

# expose credentials to environment first

# write credentials to repo file
cat <<EOF | sudo tee /etc/yum.repos.d/stoplight.repo
name=Stoplight Package Repository

Make sure that the repository credentials are set before issuing the cat command above.

Installing the Exporter Package

Once the repository is configured properly, you can install the Exporter component using the command:

sudo yum install stoplight-exporter -y


To install the Exporter component with Docker, run the command below:

docker pull

Note, if you have not already authenticated with the Stoplight container registry, you will be prompted for credentials


To configure the Stoplight Exporter component, you will need to provide runtime values and connection details to the other necessary Stoplight components. The Exporter can be configured either by the configuration file or through the environment.

The same configuration variables can be used regardless of installation type (container or package-based).



The SL_APP_HOST is the public-facing URL for the Stoplight App.



The SL_API_HOST variable is the URL to the Stoplight API.



The SL_EXPORTER_HOST variable is the full URL to the Stoplight Exporter instance.


RPM Package

The Stoplight Exporter configuration is located at the location:


Be sure to customize any variables as needed to match your environment before starting the Exporter service.

Any changes to the Exporter configuration requires a service restart in order to take effect.


To expose these to the Docker runtime, either write them to a file and use the --env-file argument:

cat <<EOF>exporter-env-vars

docker run --env-file exporter-env-vars ...

Alternatively, you can expose them one at a time with the -e flag:

docker run -e SL_APP_HOST= ...


RPM Package

To start the Exporter server, run the command:

sudo systemctl start stoplight-exporter

Once started, you can see the status of the service using the command:

sudo systemctl status stoplight-exporter


To start the Exporter container, run the command:

docker run \
	--restart on-failure \
	--env-file exporter-env \
	-p 2345:3031 \

If started properly, the container should be marked with a healthy status after 30 seconds. Use the docker ps command to verify the container was started and is running properly.

Post-install Validations

Once the Exporter component is running, you can verify the installation was successful issuing an HTTP GET request to the root (/) endpoint:

# be sure to update the scheme, host, and port to match the installation port
curl -v http://localhost:3031/

If the Exporter was installed and configured properly, you will receive an HTTP 200 response back.