Skip to content

https://wiki.archlinux.org/title/Prometheus

curl --verbose http://kibanauser:1234@127.0.0.1:8882
curl --verbose http://kibanauser:1234@127.0.0.1:8882
vi /etc/systemd/system/prometheus.service

[Unit]
Description=Prometheus Time Series Collection and Processing Server
Wants=network-online.target
After=network-online.target

[Service]
User=prometheus
Group=prometheus
Type=simple
ExecStart=/usr/local/bin/prometheus \
    --config.file /etc/prometheus/prometheus.yml \
    --storage.tsdb.path /var/lib/prometheus/ \
    --web.console.templates=/etc/prometheus/consoles \
    --web.console.libraries=/etc/prometheus/console_libraries

[Install]
WantedBy=multi-user.target       


[root@centos8 ~]# systemctl daemon-reload
[root@centos8 ~]# systemctl start prometheus
[root@centos8 ~]# systemctl enable prometheus
vi /etc/systemd/system/prometheus.service

[Unit]
Description=Prometheus Time Series Collection and Processing Server
Wants=network-online.target
After=network-online.target

[Service]
User=prometheus
Group=prometheus
Type=simple
ExecStart=/usr/local/bin/prometheus \
    --config.file /etc/prometheus/prometheus.yml \
    --storage.tsdb.path /var/lib/prometheus/ \
    --web.console.templates=/etc/prometheus/consoles \
    --web.console.libraries=/etc/prometheus/console_libraries

[Install]
WantedBy=multi-user.target       


[root@centos8 ~]# systemctl daemon-reload
[root@centos8 ~]# systemctl start prometheus
[root@centos8 ~]# systemctl enable prometheus