Hi, Please find the following output:
root@ARL-KUNAL:/home/kunal/Documents/Prometheus/prometheus-2.22.2.linux-amd64# systemctl cat prometheus.service # Warning: prometheus.service changed on disk, the version systemd has loaded is outdated. # This output shows the current version of the unit's original fragment and drop-in files. # If fragments or drop-ins were added or removed, they are not properly reflected in this output. # Run 'systemctl daemon-reload' to reload units. # /etc/systemd/system/prometheus.service [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 -- Thank You Kunal Khandelwal | Site Reliability Engineer Mobile.no.: 8982987243 Email-Id: kunal.khandel...@impelsys.com "Nothing is permanent is this wicked world, not even our troubles." On Wed, Nov 25, 2020 at 2:23 PM Christian Hoffmann < m...@hoffmann-christian.info> wrote: > 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 prometheus-users+unsubscr...@googlegroups.com > > <mailto:prometheus-users+unsubscr...@googlegroups.com>. > > 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 prometheus-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CACTqii9q_-MU9d%3DnaECThLfpZxEaRgJ-GY7KGSa2MoqehjOvVA%40mail.gmail.com.