Skip to content
Snippets Groups Projects
Commit abc24cb4 authored by Marin Jankovski's avatar Marin Jankovski
Browse files

Merge branch 'bjk/issue_2343' into 'master'

Re-apply workaround for Kubernetes 1.6 auth

Closes #2343

See merge request !1550
parents ef3c4d60 ad6e9985
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -224,6 +224,18 @@ module Prometheus
'action' => 'labelmap',
'regex' => '__meta_kubernetes_node_label_(.+)',
},
{
'source_labels' => ['__address__'],
'target_label' => '__address__',
'regex' => '([^:;]+):([0-9]+)',
'replacement' => '${1}:10255',
},
{
'source_labels' => ['__scheme__'],
'target_label' => '__scheme__',
'regex' => 'https',
'replacement' => 'http',
},
],
'metric_relabel_configs' => [
{
Loading
Loading
Loading
Loading
@@ -52,6 +52,16 @@ prometheus_yml_output = <<-PROMYML
relabel_configs:
- action: labelmap
regex: __meta_kubernetes_node_label_(.+)
- source_labels:
- __address__
target_label: __address__
regex: "([^:;]+):([0-9]+)"
replacement: "${1}:10255"
- source_labels:
- __scheme__
target_label: __scheme__
regex: https
replacement: http
metric_relabel_configs:
- source_labels:
- pod_name
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment