Skip to content

Instantly share code, notes, and snippets.

{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
@tghartland
tghartland / dashboard.patch
Created October 20, 2022 16:35
Dashboard patch
--- pr.json 2022-10-20 17:06:25.373665330 +0100
+++ suggested.json 2022-10-20 17:09:08.405445333 +0100
@@ -1582,11 +1582,11 @@
"datasource": "${DS_PROMETHEUS}",
"hide": 0,
"includeAll": true,
- "label": "Ingress",
+ "label": "Ingress Namespace",
"multi": false,
- "name": "ingress",
I0925 13:57:40.944011 1 magnum_manager_resize.go:227] Returning node instances:
[
{
"Id": "openstack:///9c097488-1c6a-446b-a878-9abd3e0ded95",
"Status": {
"State": 1,
"ErrorInfo": null
}
},
{
@tghartland
tghartland / 54_filter.txt
Created April 16, 2019 15:14
Logs for age of received node object in Update events
This file has been truncated, but you can view the full file.
I0416 14:03:51.558942 1 node_controller.go:215] Update scaler-54-a7hktdplkwul-master-0, age 0.6
I0416 14:03:54.649370 1 node_controller.go:215] Update scaler-54-a7hktdplkwul-minion-0, age 0.6
I0416 14:04:01.568341 1 node_controller.go:215] Update scaler-54-a7hktdplkwul-master-0, age 0.6
I0416 14:04:04.667131 1 node_controller.go:215] Update scaler-54-a7hktdplkwul-minion-0, age 0.7
I0416 14:04:11.581613 1 node_controller.go:215] Update scaler-54-a7hktdplkwul-master-0, age 0.6
I0416 14:04:14.684722 1 node_controller.go:215] Update scaler-54-a7hktdplkwul-minion-0, age 0.7
I0416 14:04:21.592718 1 node_controller.go:215] Update scaler-54-a7hktdplkwul-master-0, age 0.6
I0416 14:04:24.700466 1 node_controller.go:215] Update scaler-54-a7hktdplkwul-minion-0, age 0.7
I0416 14:04:31.608556 1 node_controller.go:215] Update scaler-54-a7hktdplkwul-master-0, age 0.6
I0416 14:04:34.722119 1 node_controller.go:215] Update scaler-54-a7hktdplkwul-minion-0, age 0.7
I0401 13:17:42.314204 1 node_controller.go:365] Successfully initialized node scaler-51-f5kltiinig4g-minion-41 with cloud provider, time=5.019055
I0401 13:17:42.314311 1 node_controller.go:222] Node scaler-51-f5kltiinig4g-minion-41 is in the recently initialized nodes set, will not re-process
I0401 13:17:42.314316 1 node_controller.go:236] Nothing to do for node scaler-51-f5kltiinig4g-minion-41
I0401 13:17:42.314336 1 node_controller.go:222] Node scaler-51-f5kltiinig4g-minion-41 is in the recently initialized nodes set, will not re-process
I0401 13:17:42.314341 1 node_controller.go:236] Nothing to do for node scaler-51-f5kltiinig4g-minion-41
I0401 13:17:42.314345 1 node_controller.go:222] Node scaler-51-f5kltiinig4g-minion-41 is in the recently initialized nodes set, will not re-process
I0401 13:17:42.314364 1 node_controller.go:236] Nothing to do for node scaler-51-f5kltiinig4g-minion-41
I0401 13:17:44.022346 1 node_controller.go:222] Node scaler-51-f5kltiinig4
I0315 09:54:01.355960 1 node_controller.go:323] Successfully initialized node scaler-32-3f6vurkqfjvs-minion-17 with cloud provider, time=2.276947575
I0315 09:54:02.553765 1 node_controller.go:323] Successfully initialized node scaler-32-3f6vurkqfjvs-minion-17 with cloud provider, time=1.1977386700000001
I0315 09:54:03.902420 1 node_controller.go:323] Successfully initialized node scaler-32-3f6vurkqfjvs-minion-17 with cloud provider, time=1.3485741629999999
I0315 09:54:05.548940 1 node_controller.go:323] Successfully initialized node scaler-32-3f6vurkqfjvs-minion-33 with cloud provider, time=1.6464718299999999
I0315 09:54:06.605780 1 node_controller.go:323] Successfully initialized node scaler-32-3f6vurkqfjvs-minion-33 with cloud provider, time=1.056767744
I0315 09:54:07.735948 1 node_controller.go:323] Successfully initialized node scaler-32-3f6vurkqfjvs-minion-33 with cloud provider, time=1.130128723
I0315 09:54:09.971969 1 node_controller.go:323] Successfully initia
@tghartland
tghartland / gist:e564a2e57b09e7008a82b4ad18b5c4da
Created February 13, 2019 13:17
autoscaler with gophercloud master branch
$ make test-unit
rm -f cluster-autoscaler
go get github.com/tools/godep
GOOS=linux godep go build ./...
# k8s.io/autoscaler/cluster-autoscaler/vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/openstack
vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/openstack/openstack_volumes.go:259:26: not enough arguments in call to "k8s.io/autoscaler/cluster-autoscaler/vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/v2/volumes".Delete
have (*gophercloud.ServiceClient, string)
want (*gophercloud.ServiceClient, string, "k8s.io/autoscaler/cluster-autoscaler/vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/v2/volumes".DeleteOptsBuilder)
vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/openstack/openstack_volumes.go:267:26: not enough arguments in call to "k8s.io/autoscaler/cluster-autoscaler/vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/v3/volumes".Delete
have (*gophercloud.ServiceClient, string)