Hi,

On 11/25/20 9:40 AM, 'Kunal Khandelwal' via Prometheus Users wrote:
No, I didn't miss "s" that's cut, In my service file it has a proper name.
Ah, ok.

Well, here is my service file, can you tell me what I missed?
I don't spot any obvious problems at the first glance. However, I do notice that the file does not match the error message you posted. Line 14 in this file is the --config.file line, while the error message refers to --web.listen-address.

I still suspect that this is a systemd problem.

Can you confirm that systemd loaded the most recent version ("systemctl daemon-reload" if unsure)? Does the "systemctl cat prometheus.service" output match what you posted?

Kind regards,
Christian


[Unit]
Description=Prometheus
#Documentation=https://prometheus.io/docs/introduction/overview/
Wants=network-online.target
After=network-online.target

[Service]
User=prometheus
Restart=on-failure
Group=prometheus
Type=simple
ExecReload=/bin/kill -HUP $MAINPID
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 \
   --web.listen-address=0.0.0.0:9090

SyslogIdentifier=prometheus
Restart=always

[Install]
WantedBy=multi-user.target



On Wednesday, November 25, 2020 at 2:01:58 PM UTC+5:30 Christian Hoffmann wrote:

    Hi,

    On 11/25/20 9:19 AM, 'Kunal Khandelwal' via Prometheus Users wrote:
     > I am facing an issue while starting Prometheus Service in
    Ubuntu., it's
     > throwing the following:
    In the future, could you please start a new thread? The way you posted
    makes it appear that your issue is somehow related to the one from
    Danilo.

     > Nov 25 12:52:36 ARL-KUNAL systemd[1]:
     > /etc/systemd/system/prometheus.service:14: Unknown lvalue
     > '--web.listen-addres
     >
     > Can someone help me out ??
    You're missing an "s". The proper name is --web.listen-address.

    Also, the message sounds like systemd is complaining (not Prometheus).
    This would mean that your .service file has a syntax error. Sounds like
    an unintended line break or a missing line continuation character on
    the
    previous line (\).

    Kind regards,
    Christian

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/6511c918-0aef-4cef-8677-16e4eed7bb8dn%40googlegroups.com <https://groups.google.com/d/msgid/prometheus-users/6511c918-0aef-4cef-8677-16e4eed7bb8dn%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/3ae57867-ee60-9d92-5546-663ee0d2468e%40hoffmann-christian.info.

Reply via email to