Configuration
global:
scrape_interval: 1m
scrape_timeout: 10s
evaluation_interval: 1m
external_labels:
cluster: scit-spirion.com
rule_files:
- /etc/config/recording_rules.yml
- /etc/config/alerting_rules.yml
- /etc/config/rules
- /etc/config/alerts
scrape_configs:
- job_name: blackbox
honor_timestamps: true
params:
module:
- http_2xx
scrape_interval: 1m
scrape_timeout: 10s
metrics_path: /probe
scheme: http
static_configs:
- targets:
- https://svc-agentcontroller.scit-spirion.com/api/healthcheck
- https://svc-dataassetinventory.scit-spirion.com/api/healthcheck
- https://svc-datawatcher.scit-spirion.com/api/healthcheck
- https://svc-heartbeat.scit-spirion.com/api/healthcheck
- https://identity-authority.scit-spirion.com/api/healthcheck
- https://svc-incidentdefinition.scit-spirion.com/api/healthcheck
- https://svc-incidentmanagement.scit-spirion.com/api/healthcheck
- https://svc-incidentpersistence.scit-spirion.com/api/healthcheck
- https://svc-infrastructure.scit-spirion.com/api/healthcheck
- https://svc-ingress.scit-spirion.com/api/healthcheck
- https://svc-org.scit-spirion.com/api/healthcheck
- https://svc-registration.scit-spirion.com/api/healthcheck
- https://svc-remediation.scit-spirion.com/api/healthcheck
- https://svc-reporting.scit-spirion.com/api/healthcheck
- https://svc-sdmtranslator.scit-spirion.com/api/healthcheck
- https://svc-sdmtranslator-i.scit-spirion.com/api/healthcheck
- https://svc-searchcontroller.scit-spirion.com/api/healthcheck
- https://svc-searchhistory.scit-spirion.com/api/healthcheck
- https://svc-searchpersistence.scit-spirion.com/api/healthcheck
- https://svc-tasksscheduler.scit-spirion.com/api/healthcheck
- https://svc-utility.scit-spirion.com/api/healthcheck
- https://compliance-association.scit-spirion.com/api/v1/association/healthcheck
- https://compliance-datasubjectrequest.scit-spirion.com/api/datasubjectrequests/healthcheck
- https://compliance-fulltext.scit-spirion.com/api/v1/FulltextSearch/healthcheck
- https://compliance-piidatatypes.scit-spirion.com/api/healthcheck
- https://compliance-subjectrequest.scit-spirion.com/api/v2/healthcheck
relabel_configs:
- source_labels: [__address__]
separator: ;
regex: (.*)
target_label: __param_target
replacement: $1
action: replace
- source_labels: [__param_target]
separator: ;
regex: (.*)
target_label: instance
replacement: $1
action: replace
- separator: ;
regex: (.*)
target_label: __address__
replacement: prometheus-blackbox-exporter.monitoring.svc:9115
action: replace
- source_labels: [__param_target]
separator: ;
regex: (.*)
target_label: target_url
replacement: $1
action: replace
- job_name: node-exporter
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
kubernetes_sd_configs:
- role: endpoints
namespaces:
names:
- monitoring
relabel_configs:
- source_labels: [__meta_kubernetes_service_label_app]
separator: ;
regex: prometheus
replacement: $1
action: keep
- source_labels: [__meta_kubernetes_endpoint_port_name]
separator: ;
regex: metrics
replacement: $1
action: keep
- job_name: kafka-exporter
honor_timestamps: true
scrape_interval: 30s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
kubernetes_sd_configs:
- role: endpoints
namespaces:
names:
- scit
relabel_configs:
- source_labels: [__meta_kubernetes_service_label_app]
separator: ;
regex: kafka-exporter
replacement: $1
action: keep
- source_labels: [__meta_kubernetes_service_name]
separator: ;
regex: (.*)
target_label: job
replacement: $1
action: replace
- job_name: query-exporter
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
kubernetes_sd_configs:
- role: endpoints
namespaces:
names:
- monitoring
relabel_configs:
- source_labels: [__meta_kubernetes_service_label_app]
separator: ;
regex: query-exporter
replacement: $1
action: keep
- source_labels: [__meta_kubernetes_service_name]
separator: ;
regex: (.*)
target_label: job
replacement: $1
action: replace
- job_name: kubernetes-apiservers
honor_timestamps: true
scrape_interval: 1m
scrape_timeout: 10s
metrics_path: /metrics
scheme: https
kubernetes_sd_configs:
- role: endpoints
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
tls_config:
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
insecure_skip_verify: true
relabel_configs:
- source_labels: [__meta_kubernetes_namespace, __meta_kubernetes_service_name, __meta_kubernetes_endpoint_port_name]
separator: ;
regex: default;kubernetes;https
replacement: $1
action: keep
- job_name: kubernetes-nodes-cadvisor
honor_timestamps: true
scrape_interval: 1m
scrape_timeout: 10s
metrics_path: /metrics
scheme: https
kubernetes_sd_configs:
- role: node
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
tls_config:
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
insecure_skip_verify: true
relabel_configs:
- separator: ;
regex: __meta_kubernetes_node_label_(.+)
replacement: $1
action: labelmap
- separator: ;
regex: (.*)
target_label: __address__
replacement: kubernetes.default.svc:443
action: replace
- source_labels: [__meta_kubernetes_node_name]
separator: ;
regex: (.+)
target_label: __metrics_path__
replacement: /api/v1/nodes/$1/proxy/metrics/cadvisor
action: replace
- job_name: prometheus-pushgateway
honor_labels: true
honor_timestamps: true
scrape_interval: 1m
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
kubernetes_sd_configs:
- role: service
relabel_configs:
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_probe]
separator: ;
regex: pushgateway
replacement: $1
action: keep
- job_name: kube-state-metrics
honor_timestamps: true
scrape_interval: 1m
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
kubernetes_sd_configs:
- role: endpoints
namespaces:
names:
- monitoring
relabel_configs:
- source_labels: [__meta_kubernetes_service_name]
separator: ;
regex: prometheus-kube-state-metrics
replacement: $1
action: keep