Skip to content

Commit

Permalink
Allow to configure relabelings on serviceMonitor
Browse files Browse the repository at this point in the history
  • Loading branch information
mmadoo committed Feb 13, 2024
1 parent d8703b9 commit 7e03523
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs_src/tutorials/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ to be installed from the source code.
| `serviceMonitor.interval` | The interval at which metrics should be scraped | `1m` |
| `serviceMonitor.labels` | Extra labels for the ServiceMonitor | `{}` |
| `serviceMonitor.scrapeTimeout` | Specify the timeout after which the scrape is ended | `30s` |
| `serviceMonitor.relabelings` | Allow to add extra labels to metrics | Add node metrics |

#### Other parameters
| Name | Description | Value |
Expand Down
8 changes: 7 additions & 1 deletion helm/scaphandre/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ scaphandre:
command: prometheus
args: {}
extraArgs:
containers:
containers: null
# rustBacktrace: '1'

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

relabelings:
- action: replace
sourceLabels:
- __meta_kubernetes_pod_node_name
targetLabel: node

tolerations:
# Tolerate all taints for observability
- operator: "Exists"

0 comments on commit 7e03523

Please sign in to comment.