Skip to content

Commit

Permalink
Removes a few relabel_configs for the kubernetes-pods job that don't …
Browse files Browse the repository at this point in the history
…apply to the platform cluster (but maybe do to the GKE clusters). (#239)
  • Loading branch information
nkinkade authored Jul 25, 2019
1 parent 6b322d4 commit ad5fe9d
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions config/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,26 +127,12 @@ scrape_configs:
action: replace
target_label: namespace

# Add the GKE node name.
- source_labels: [__meta_kubernetes_pod_node_name]
action: replace
target_label: node

# Add a machine label to make it easier to join these metrics with
# existing metrics that use machine instead of the node label.
- source_labels: [__meta_kubernetes_pod_node_name]
action: replace
target_label: machine

# TODO: find a better source of this information or remove it. The value
# returned is incomplete. Used only by Prometheus_SelfMonitoring.json.
# Extract the "<cluster>-<node-pool>" name from the GKE node name.
- source_labels: [__meta_kubernetes_pod_node_name]
action: replace
regex: gke-(.*)(-[^-]+){2}
replacement: $1
target_label: cluster

# Identify the deployment name for replica set or daemon set. Pods
# created by deployments or daemon sets are processed here. The
# following two rules recognize these two cases.
Expand Down

0 comments on commit ad5fe9d

Please sign in to comment.