On 12/08/2022 06:46, nina guo wrote:
what i want to implement is to scrape and evaluate one kind of metrics
not so frequently, I want to adjust the interval to 1d or 2d,
something like this.
On Friday, August 12, 2022 at 11:06:15 AM UTC+8 nina guo wrote:
Hi, I received following error.
- job_name: TLS Connection
scrape_interval: 1d
evaluation_interval: 1d
metrics_path: /probe
params:
module: [smtp_starttls]
file_sd_configs:
- files:xxx
kubectl logs prometheus -c prometheus -n monitoring
level=error ts=2022-08-12T03:03:50.120Z caller=main.go:347
msg="Error loading config
(--config.file=/etc/prometheus/prometheus.yml)" err="parsing YAML
file /etc/prometheus/prometheus.yml: yaml: unmarshal errors:\n
line 54: field evaluation_interval not found in type
config.ScrapeConfig"
Two things here:
1. There is no entry called "evaluation_interval" within a scrape
config, so that needs removing to clear the unmarshal error.
2. The maximum sensible scrape interval is around 2-3 minutes, so 1 day
is far too long. With a longer interval you will end up with stale time
series and "gaps" in all your graphs.
--
Stuart Clark
--
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/903f4c47-1a79-fc56-6f71-039caf0aa400%40Jahingo.com.