
cuigh/prometheusGitHub: [***]
yaml- job_name: swarm scrape_interval: 15s scrape_timeout: 10s metrics_path: /metrics scheme: http swarm_sd_configs: - api_server: [***] # api_version: 1.32 # group: xxx # network: xxx # refresh_interval: 10s # timeout: 15s relabel_configs: # Add a service label - source_labels: [__meta_swarm_service] target_label: service # Add a node ip label - source_labels: [__meta_swarm_node_ip] target_label: node_ip # Add a node name label - source_labels: [__meta_swarm_node_name] target_label: node_name
You can add several labels to control scraping:
prometheus.enable - Requiredprometheus.port - Requiredprometheus.network - Optional, 'host' or any other overlay network which prometheus and service both attached toprometheus.path - Optional, default is /metricsprometheus.group - Optional, must match with group option of swarm_sd_configsprometheus.mode - Optional, 'task' or 'service', default is taskmanifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务