Skip to content

Commit

Permalink
add regexes for rkeScheduler and rkeProxy
Browse files Browse the repository at this point in the history
  • Loading branch information
JTaeuber committed Aug 5, 2024
1 parent 520f88c commit f77aba0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,9 @@ available config parameters:
| `rkeProxy.component` | string | `"kube-proxy"` | |
| `rkeProxy.enabled` | bool | `true` | |
| `rkeProxy.metricsPort` | int | `10249` | |
| `rkeProxy.serviceMonitor.endpoints[0].honorLabels` | bool | `true` | |
| `rkeProxy.serviceMonitor.endpoints[0].metricRelabelings` | list | `[{"action":"keep","regex":"process_(start_time_seconds|cpu_seconds_total|resident_memory_bytes)|rest_client_(request_duration_seconds_bucket|requests_total)|workqueue_(queue_duration_seconds_bucket|depth|adds_total)|up|go_goroutines","sourceLabels":["__name__"]}]` | are needed, they should be added to this regex. |
| `rkeProxy.serviceMonitor.endpoints[0].port` | string | `"metrics"` | |

### rkeScheduler

Expand All @@ -564,6 +567,9 @@ available config parameters:
| `rkeScheduler.kubeVersionOverrides[0].values.clients.https.useServiceAccountCredentials` | bool | `false` | |
| `rkeScheduler.kubeVersionOverrides[0].values.metricsPort` | int | `10251` | |
| `rkeScheduler.metricsPort` | int | `10259` | |
| `rkeScheduler.serviceMonitor.endpoints[0].honorLabels` | bool | `true` | |
| `rkeScheduler.serviceMonitor.endpoints[0].metricRelabelings` | list | `[{"action":"keep","regex":"process_(start_time_seconds|cpu_seconds_total|resident_memory_bytes)|rest_client_(request_duration_seconds_bucket|requests_total)|workqueue_(queue_duration_seconds_bucket|depth|adds_total)|up|go_goroutines","sourceLabels":["__name__"]}]` | are needed, they should be added to this regex. |
| `rkeScheduler.serviceMonitor.endpoints[0].port` | string | `"metrics"` | |

### hardenedKubelet

Expand Down
24 changes: 24 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,18 @@ rkeProxy:
operator: "Exists"
- effect: "NoSchedule"
operator: "Exists"
serviceMonitor:
endpoints:
- port: metrics
honorLabels: true
# -- Relabeling to keep only the needed metrics
# -- for the grafana dashboards. If additional metrics
# -- are needed, they should be added to this regex.
metricRelabelings:
- action: keep
regex: "process_(start_time_seconds|cpu_seconds_total|resident_memory_bytes)|rest_client_(request_duration_seconds_bucket|requests_total)|workqueue_(queue_duration_seconds_bucket|depth|adds_total)|up|go_goroutines"
sourceLabels:
- __name__

rkeScheduler:
clients:
Expand Down Expand Up @@ -814,6 +826,18 @@ rkeScheduler:
useServiceAccountCredentials: false
metricsPort: 10251 # default to insecure port in k8s < 1.23
metricsPort: 10259
serviceMonitor:
endpoints:
- port: metrics
honorLabels: true
# -- Relabeling to keep only the needed metrics
# -- for the grafana dashboards. If additional metrics
# -- are needed, they should be added to this regex.
metricRelabelings:
- action: keep
regex: "process_(start_time_seconds|cpu_seconds_total|resident_memory_bytes)|rest_client_(request_duration_seconds_bucket|requests_total)|workqueue_(queue_duration_seconds_bucket|depth|adds_total)|up|go_goroutines"
sourceLabels:
- __name__

hardenedKubelet:
enabled: true
Expand Down

0 comments on commit f77aba0

Please sign in to comment.