4. Open `config/exporter.properties`, ensure that `server-port` value is an open port that can be accessed by your Prometheus and change it if required.
5. Restart the server if you made changes in config.
### Configuring Prometheus
1. Open your Prometheus config file (it located at `/etc/prometheus/prometheus.yml` by default).
```bash
sudo nano /etc/prometheus/prometheus.yml
```
2. Add FabricExporter endpoint to the `scrape_configs` section.
Don't forget to replace `127.0.0.1` with address of your server and `25585` with port specified in `server-port` property in `exporter.properties` file.
```YAML
- job_name: 'fabric'
static_configs:
- targets: ['127.0.0.1:25585']
```
3. Restart Prometheus service.
```bash
sudo service prometheus restart
```
### Importing Grafana dashboard
If you want to use Grafana, you can use my dashboard as template.
I assume that you have already [created a Prometheus data source](https://prometheus.io/docs/visualization/grafana/) in Grafana.
So, let's import [dashboard for FabricExporter](https://grafana.com/grafana/dashboards/14492).
1. Log in to your Grafana and go to `Create -> Import` tab.
2. Type `14492` in "Import via grafana.com" field and click "Load".
3. On the next page change settings as you wish and click "Import".
## Configuring
After your server starts, FabricExporter will create `exporter.properties` file in the `config` folder.
You should use this file to configure the mod.
In this file you can see some general settings and metrics settings.