-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add options mechanism to Prometheus metrics * Move lowercase settings to MetricOption scheme * Apply options to all labels * Fix `state_node` for latest `kube-state-metrics` versions * Update CHANGELOG.asciidoc * Add missing comments
- Loading branch information
Showing
10 changed files
with
240 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
metricbeat/module/kubernetes/state_node/_meta/test/kube-state-metrics.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
[ | ||
{ | ||
"_namespace": "node", | ||
"cpu": { | ||
"allocatable": { | ||
"cores": 3 | ||
}, | ||
"capacity": { | ||
"cores": 4 | ||
} | ||
}, | ||
"memory": { | ||
"allocatable": { | ||
"bytes": 3097786880 | ||
}, | ||
"capacity": { | ||
"bytes": 4097786880 | ||
} | ||
}, | ||
"name": "minikube-test", | ||
"pod": { | ||
"allocatable": { | ||
"total": 210 | ||
}, | ||
"capacity": { | ||
"total": 310 | ||
} | ||
}, | ||
"status": { | ||
"ready": "true", | ||
"unschedulable": true | ||
} | ||
}, | ||
{ | ||
"_namespace": "node", | ||
"cpu": { | ||
"allocatable": { | ||
"cores": 2 | ||
}, | ||
"capacity": { | ||
"cores": 2 | ||
} | ||
}, | ||
"memory": { | ||
"allocatable": { | ||
"bytes": 2097786880 | ||
}, | ||
"capacity": { | ||
"bytes": 2097786880 | ||
} | ||
}, | ||
"name": "minikube", | ||
"pod": { | ||
"allocatable": { | ||
"total": 110 | ||
}, | ||
"capacity": { | ||
"total": 110 | ||
} | ||
}, | ||
"status": { | ||
"ready": "true", | ||
"unschedulable": false | ||
} | ||
} | ||
] |
34 changes: 34 additions & 0 deletions
34
metricbeat/module/kubernetes/state_node/_meta/test/kube-state-metrics.v1.3.0.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[ | ||
{ | ||
"_namespace": "node", | ||
"cpu": { | ||
"allocatable": { | ||
"cores": 2 | ||
}, | ||
"capacity": { | ||
"cores": 2 | ||
} | ||
}, | ||
"memory": { | ||
"allocatable": { | ||
"bytes": 1992347648 | ||
}, | ||
"capacity": { | ||
"bytes": 2097205248 | ||
} | ||
}, | ||
"name": "minikube", | ||
"pod": { | ||
"allocatable": { | ||
"total": 110 | ||
}, | ||
"capacity": { | ||
"total": 110 | ||
} | ||
}, | ||
"status": { | ||
"ready": "true", | ||
"unschedulable": false | ||
} | ||
} | ||
] |
Oops, something went wrong.