This repo contains Grafana dashboards designed to help you get monitor your DarkRift servers.
You will need DarkRift Pro in order to view metrics.
- Install Prometheus
- Install Grafana
- Add the following configuration to your DarkRift server's
Server.config
file<metrics enablePerMessageMetrics="true"> <metricsWriter type="PrometheusEndpoint" /> </metrics>
enablePerMessageMetrics
will slow down your server if you are running it under high load but will allow the dashboard to show additional metrics. Consider carefully whether you want that enabled. - Add the following configuration to your Prometheus server's
prometheus.yml
file underneathscrape_configs
- job_name: 'darkrift' static_configs: - targets: ['localhost:9796']
- Start your DarkRift server and your Prometheus server. To check the configuration so far navigate to http://localhost:9090 and search for metrics beginning with
darkrift
. - Start Grafana, login with username
admin
and passwordadmin
. - Configure a new data source in Grafana by going to
Configuration
(on the left bar) ->Data Sources
->Add Data Source
->Prometheus
. Set the URL to behttp://localhost:9090
and leave the name asPrometheus
. - Copy the JSON in darkrift.json and in Grafana go to
Create
(on the left bar) ->Import
. Paste your JSON there and clickLoad
.