Error starting Prometheus when using ExecStart=/usr/bin/prometheus $ARGS

Hello ,

Just started to work with Prometheus migrating from Zabbix , I have installed new installation under Ubuntu 20.04 server

I am trying to make Prometheus work with TLS and basic authentication, i have created web config file web-config.yml and self signed cert and key , in prometheus.yml i have set as following sown below, and also the web-config.yml.

Now when i try to set Prometheus to point to web-config.yml , i am editing

/etc/default/prometheus

and adding following below line , but as soon a i start Prometheus its fail , without option its start normally, but without my config , any thing i missed or wrong added option?

Please advice

Thanks

# Set the command-line arguments to pass to the server.
ARGS="--web.config.file=/etc/prometheus/web-config.yml"

prometheus.yml

scrape_configs:

  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.

  - job_name: 'prometheus'

    scheme: https

    basic_auth:

      username: prometheus

      password: xxxxxxx

    tls_config:

      ca_file: node_exporter.crt

      insecure_skip_verify: true

web-config.yml

tls_server_config:
 cert_file: node_exporter.crt
 key_file: node_exporter.key
basic_auth_users:
 prometheus: $2a$12$6DdRU0KfsKuD9C.35UDeveeYIvSxxxxxxxxKjo9R8PBDgKYa