Thanks, I'm hoping its just a simple setting change. I have included what our configurations look like.
When I check status of the service, its running and I can web to the server. When looking at the command-line flags in the portal its showing web-enable-remote-write-receiver as false. My understanding is this needs to be true (enabled) in order to process the info coming from the Check Point Gateway.
ptuttle@cp-ubuntu-skyline:/tmp/prometheus$ sudo systemctl status prometheus.service
? prometheus.service - Prometheus Server
Loaded: loaded (/etc/systemd/system/prometheus.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2023-05-05 12:59:02 UTC; 46min ago
Docs: https://prometheus.io/docs/introduction/overview/
Main PID: 5360 (prometheus)
Tasks: 8 (limit: 2234)
Memory: 37.6M
CPU: 24.773s
CGroup: /system.slice/prometheus.service
+-5360 /home/ptuttle/prometheus-2.38.0.linux-amd64/prometheus --config.file=/home/ptuttle/prometheus-2.38.0.linux-amd64/prometheus.yml
May 05 13:41:05 cp-ubuntu-skyline prometheus[5360]: ts=2023-05-05T13:41:05.261Z caller=dedupe.go:112 component=remote level=error remote_name=02f67d url=http://10.112.129.210:9090/api/v1/w>
May 05 13:41:25 cp-ubuntu-skyline prometheus[5360]: ts=2023-05-05T13:41:25.262Z caller=dedupe.go:112 component=remote level=error remote_name=02f67d url=http://10.112.129.210:9090/api/v1/w>
Here is the "promethues.service" I know its a little different from the sk but it was identical to the sk and We were seeing the same thing.
[Unit]
Description=Prometheus Server
Documentation=https://prometheus.io/docs/introduction/overview/
After-network=online.target
[Service]
User=root
Restart=on-failure
ExecStart=/home/ptuttle/prometheus-2.38.0.linux-amd64/prometheus --config.file=/home/ptuttle/prometheus-2.38.0.linux-amd64/prometheus.yml
--enable-feature=remote-write-receiver \
--web.listen-address=0.0.0.0:9090 \
--web.external-url=
--storage.tsdb.path=/data \
--web.console.templates=/etc/prometheus/consoles \
--web.console.libraries=/etc/prometheus/console_libraries \
--web.listen-address=0.0.0.0:9090 \
--web.enable-lifecycle
[Install]
WantedBy=multi-user.target
~
Here is the "promethues.yml" file
# my global config
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s).
remote_write:
- url: "http://10.112.129.210:9090/api/v1/write"
# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets:
# - alertmanager:9093
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
# - "first_rules.yml"
# - "second_rules.yml"
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: "prometheus"
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets: ["localhost:9090"]
~