Permission denied sur dossier lors de l'installation
caller=query_logger.go:86 level=error component=activeQueryTracker msg="Error opening query log file" file=/prometheus/queries.active err="open /prometheus/queries.active: permission denied"
Fixed by changing the rights of the data folder in /appdata/prometheus
chown -R 65534:65534 data
global:
scrape_interval: 15s # By default, scrape targets every 15 seconds.
scrape_timeout: 10s
evaluation_interval: 1m
# Attach these labels to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
external_labels:
monitor: 'monitor'
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
# Options to override the global default, add to each jobs
# honor_timestamps: true
# scrape_interval: 15s
# metrics_path: /metrics
# scheme: http
# targets
- job_name: 'prometheus'
static_configs:
- targets: ["localhost:9090"]