Failing to push logs to wavefront with Prometheus remote_write #4422
liviugavrila
started this conversation in
General
Replies: 1 comment 4 replies
-
I'm sorry, but I have no idea what Wavefront or Prometheus storage adapter are. I'm not sure I understand the relationship to Strimzi - we just provide a metrics endpoint which you can scrape with Prometheus, that is it. I'm not sure if @sknot-rh has any idea, but maybe this question is better suited for some Prometheus or Wavefront forum? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to push some prometheus logs to Wavefront using Prometheus's remote_write.
I am using a prometheus-storage-adapter and a wavefront proxy.
None of the PodMonitor logs get pushed. I can push Cadvisor logs with no problem.
I can see all the jvm.* logs in prometheus. But if I
kubectl get --raw http://broker-endpoint
, I cannot see any jvm type logs in the output.Seems the logs get to the proxy, sometimes I get this timeout in the adapter.
Please advise.
I'm using Strimzi 0.21.1
Below my Prometheus config.
`global:
scrape_interval: 30s
scrape_timeout: 10s
evaluation_interval: 30s
external_labels:
prometheus: strimzi/strimzi-prometheus
prometheus_replica: prometheus-strimzi-prometheus-0
alerting:
alert_relabel_configs:
regex: prometheus_replica
replacement: $1
action: labeldrop
alertmanagers:
path_prefix: /
timeout: 10s
api_version: v1
relabel_configs:
separator: ;
regex: alertmanager
replacement: $1
action: keep
separator: ;
regex: alertmanager
replacement: $1
action: keep
kubernetes_sd_configs:
namespaces:
names:
rule_files:
scrape_configs:
honor_timestamps: true
scrape_interval: 30s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
relabel_configs:
separator: ;
regex: kafka-monitoring
replacement: $1
action: keep
separator: ;
regex: tcp-prometheus
replacement: $1
action: keep
separator: ;
regex: Node;(.*)
target_label: node
replacement: ${1}
action: replace
separator: ;
regex: Pod;(.*)
target_label: pod
replacement: ${1}
action: replace
separator: ;
regex: (.*)
target_label: namespace
replacement: $1
action: replace
separator: ;
regex: (.*)
target_label: service
replacement: $1
action: replace
separator: ;
regex: (.*)
target_label: pod
replacement: $1
action: replace
separator: ;
regex: (.*)
target_label: job
replacement: ${1}
action: replace
separator: ;
regex: (.+)
target_label: job
replacement: ${1}
action: replace
regex: (.*)
target_label: endpoint
replacement: tcp-prometheus
action: replace
kubernetes_sd_configs:
namespaces:
names:
honor_timestamps: true
scrape_interval: 30s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
relabel_configs:
separator: ;
regex: KafkaBridge
replacement: $1
action: keep
separator: ;
regex: rest-api
replacement: $1
action: keep
separator: ;
regex: (.*)
target_label: namespace
replacement: $1
action: replace
separator: ;
regex: (.*)
target_label: container
replacement: $1
action: replace
separator: ;
regex: (.*)
target_label: pod
replacement: $1
action: replace
regex: (.*)
target_label: job
replacement: strimzi/bridge-metrics
action: replace
regex: (.*)
target_label: endpoint
replacement: rest-api
action: replace
kubernetes_sd_configs:
namespaces:
names:
honor_timestamps: true
scrape_interval: 30s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
relabel_configs:
separator: ;
regex: cluster-operator
replacement: $1
action: keep
separator: ;
regex: http
replacement: $1
action: keep
separator: ;
regex: (.*)
target_label: namespace
replacement: $1
action: replace
separator: ;
regex: (.*)
target_label: container
replacement: $1
action: replace
separator: ;
regex: (.*)
target_label: pod
replacement: $1
action: replace
regex: (.*)
target_label: job
replacement: strimzi/cluster-operator-metrics
action: replace
regex: (.*)
target_label: endpoint
replacement: http
action: replace
kubernetes_sd_configs:
namespaces:
names:
honor_timestamps: true
scrape_interval: 30s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
relabel_configs:
separator: ;
regex: entity-operator
replacement: $1
action: keep
separator: ;
regex: healthcheck
replacement: $1
action: keep
separator: ;
regex: (.*)
target_label: namespace
replacement: $1
action: replace
separator: ;
regex: (.*)
target_label: container
replacement: $1
action: replace
separator: ;
regex: (.*)
target_label: pod
replacement: $1
action: replace
regex: (.*)
target_label: job
replacement: strimzi/entity-operator-metrics
action: replace
regex: (.*)
target_label: endpoint
replacement: healthcheck
action: replace
kubernetes_sd_configs:
namespaces:
names:
honor_timestamps: true
scrape_interval: 30s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
relabel_configs:
separator: ;
regex: Kafka|KafkaConnect|KafkaConnectS2I|KafkaMirrorMaker|KafkaMirrorMaker2
replacement: $1
action: keep
separator: ;
regex: tcp-prometheus
replacement: $1
action: keep
separator: ;
regex: (.*)
target_label: namespace
replacement: $1
action: replace
separator: ;
regex: (.*)
target_label: container
replacement: $1
action: replace
separator: ;
regex: (.*)
target_label: pod
replacement: $1
action: replace
regex: (.*)
target_label: job
replacement: strimzi/kafka-resources-metrics
action: replace
regex: (.*)
target_label: endpoint
replacement: tcp-prometheus
action: replace
regex: meta_kubernetes_pod_label(strimzi_io.+)
replacement: $1
action: labelmap
separator: ;
regex: (.*)
target_label: namespace
replacement: $1
action: replace
separator: ;
regex: (.*)
target_label: kubernetes_pod_name
replacement: $1
action: replace
separator: ;
regex: (.*)
target_label: node_name
replacement: $1
action: replace
separator: ;
regex: (.*)
target_label: node_ip
replacement: $1
action: replace
kubernetes_sd_configs:
namespaces:
names:
remote_write:
remote_timeout: 30s
write_relabel_configs:
separator: ;
regex: jvm.*
replacement: $1
action: keep
queue_config:
capacity: 2500
max_shards: 200
min_shards: 1
max_samples_per_send: 500
batch_send_deadline: 5s
min_backoff: 30ms
max_backoff: 100ms
metadata_config:
send: true
send_interval: 1m`
Beta Was this translation helpful? Give feedback.
All reactions