Skip to content
Webinar - July 10: Cut Infra Costs by 80% with Smarter DRAM, NVMe & Cloud Storage StrategyRegister now

Start monitoring stack components

This page describes how to start each of the monitoring stack components after you install and configure them. The components described here include the Aerospike Prometheus Exporter, Prometheus, and the Grafana server.

  1. On the system where Prometheus is installed, start the Aerospike Prometheus Exporter with the following command:

    systemctl start aerospike-prometheus-exporter.service
  2. Start Prometheus. We recommend running it as a service, though you can also run it as a binary file.

    1. Create a systemd unit file.

    2. Create the file /usr/lib/systemd/system/prometheus.service and include the following content:

      # cat /usr/lib/systemd/system/prometheus.service
      [Unit]
      Description=Prometheus Service
      Documentation=https://prometheus.io/docs/introduction/overview/
      Wants=network.target
      After=network-online.target
      [Service]
      ExecStart=/usr/local/bin/prometheus --config.file /etc/prometheus/prometheus.yml --storage.tsdb.path /var/lib/prometheus/
      [Install]
      WantedBy=multi-user.target
    3. Reload daemons with the following command:

      systemctl daemon-reload
    4. Start Prometheus with the following command:

      systemctl start prometheus.service
  3. Start the Grafana server with the following command:

    systemctl start grafana-server
Feedback