Skip to content

Commit 3ff82c3

Browse files
committed
Allow to configure relabelings on serviceMonitor
1 parent 6abe1ab commit 3ff82c3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

docs_src/tutorials/kubernetes.md

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ to be installed from the source code.
2222
| `serviceMonitor.interval` | The interval at which metrics should be scraped | `1m` |
2323
| `serviceMonitor.labels` | Extra labels for the ServiceMonitor | `{}` |
2424
| `serviceMonitor.scrapeTimeout` | Specify the timeout after which the scrape is ended | `30s` |
25+
| `serviceMonitor.relabelings` | Allow to add extra labels to metrics | Add node metrics |
2526

2627
#### Other parameters
2728
| Name | Description | Value |

helm/scaphandre/values.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ scaphandre:
1515
command: prometheus
1616
args: {}
1717
extraArgs:
18-
containers: true
18+
containers: null
1919
# rustBacktrace: '1'
2020

2121
# Run as root user to get proper permissions
@@ -35,6 +35,12 @@ serviceMonitor:
3535
# Specify the timeout after which the scrape is ended
3636
scrapeTimeout: 30s
3737

38+
relabelings:
39+
- action: replace
40+
sourceLabels:
41+
- __meta_kubernetes_pod_node_name
42+
targetLabel: node
43+
3844
tolerations:
3945
# Tolerate all taints for observability
4046
- operator: "Exists"

0 commit comments

Comments
 (0)