-
Notifications
You must be signed in to change notification settings - Fork 1
3. Prometheus Server Configuration
Vova Nekhai edited this page Jan 24, 2020
·
10 revisions
In order to send metrics to Anodot system, remote-write should be configured for Prometheus server
Standalone Prometheus server
In Prometheus configuration file (default prometheus.yml
), add remote_write
configuration
global:
scrape_interval: 60s
evaluation_interval: 60s
remote_write:
- url: "http://anodot-prometheus-remote-write:1234/receive"
#metric_relabel_configs:
#- source_labels: [ __name__ ]
# regex: '(nginx_ingress_controller_requests|nginx_ingress_controller_ingress_upstream_latency_seconds)'
# action: drop
Prometheus Operator
Prometheus operator configuration example (some fields omitted for clarity):
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
labels:
app: prometheus-operator-prometheus
name: prometheus
spec:
remoteWrite:
- url: http://anodot-prometheus-remote-write:1234/receive
# writeRelabelConfigs:
# - action: drop
# regex: '(apiserver_request_count|prometheus_remote_storage_sent_batch_duration_seconds_bucket)'
# sourceLabels: [__name__]
queueConfig:
maxSamplesPerSend: 1000
version: v2.10.0
Filtering metrics which will be send to Anodot is describe here More Prometheus configuration options available on this page.