Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions prometheus/scrape_configs.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,14 @@
],

metric_relabel_configs: [
// Let system processes like kubelet survive the next rule by giving them a fake image.
{
source_labels: ['__name__', 'id'],
regex: 'container_([a-z_]+);/system.slice/(.+)',
target_label: 'image',
replacement: '$2',
},

// Drop container_* metrics with no image.
{
source_labels: ['__name__', 'image'],
Expand Down
Loading