Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
kube-prometheus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
prometheus-operator
kube-prometheus
Commits
f0955e05
Unverified
Commit
f0955e05
authored
4 years ago
by
Frederic Branczyk
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #623 from brancz/add-kubelet-probes-metrics
Add scraping of endpoint for kubelet probe metrics
parents
df3bfc65
7c35752e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
jsonnet/kube-prometheus/prometheus/prometheus.libsonnet
+17
-0
17 additions, 0 deletions
jsonnet/kube-prometheus/prometheus/prometheus.libsonnet
manifests/prometheus-serviceMonitorKubelet.yaml
+12
-0
12 additions, 0 deletions
manifests/prometheus-serviceMonitorKubelet.yaml
with
29 additions
and
0 deletions
jsonnet/kube-prometheus/prometheus/prometheus.libsonnet
+
17
−
0
View file @
f0955e05
...
@@ -324,6 +324,23 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
...
@@ -324,6 +324,23 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
},
},
],
],
},
},
{
port
:
'https-metrics'
,
scheme
:
'https'
,
path
:
'/metrics/probes'
,
interval
:
'30s'
,
honorLabels
:
true
,
tlsConfig
:
{
insecureSkipVerify
:
true
,
},
bearerTokenFile
:
'/var/run/secrets/kubernetes.io/serviceaccount/token'
,
relabelings
:
[
{
sourceLabels
:
[
'__metrics_path__'
],
targetLabel
:
'metrics_path'
,
},
],
},
],
],
selector
:
{
selector
:
{
matchLabels
:
{
matchLabels
:
{
...
...
This diff is collapsed.
Click to expand it.
manifests/prometheus-serviceMonitorKubelet.yaml
+
12
−
0
View file @
f0955e05
...
@@ -68,6 +68,18 @@ spec:
...
@@ -68,6 +68,18 @@ spec:
scheme
:
https
scheme
:
https
tlsConfig
:
tlsConfig
:
insecureSkipVerify
:
true
insecureSkipVerify
:
true
-
bearerTokenFile
:
/var/run/secrets/kubernetes.io/serviceaccount/token
honorLabels
:
true
interval
:
30s
path
:
/metrics/probes
port
:
https-metrics
relabelings
:
-
sourceLabels
:
-
__metrics_path__
targetLabel
:
metrics_path
scheme
:
https
tlsConfig
:
insecureSkipVerify
:
true
jobLabel
:
k8s-app
jobLabel
:
k8s-app
namespaceSelector
:
namespaceSelector
:
matchNames
:
matchNames
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment