Skip to content

Instantly share code, notes, and snippets.

@mulbc
Created May 22, 2024 09:44
Show Gist options
  • Save mulbc/55d81afd28cf61e9e403e00c5ced5dfa to your computer and use it in GitHub Desktop.
Save mulbc/55d81afd28cf61e9e403e00c5ced5dfa to your computer and use it in GitHub Desktop.
Benchmark Operator Quickstart
oc get -n elastic secret elasticsearch-sample-es-elastic-user -o go-template='{{.data.elastic | base64decode}}'
watch oc get benchmark,po,pvc
{"attributes":{"controlGroupInput":{"chainingSystem":"HIERARCHICAL","controlStyle":"oneLine","ignoreParentSettingsJSON":"{\"ignoreFilters\":false,\"ignoreQuery\":false,\"ignoreTimerange\":false,\"ignoreValidations\":false}","panelsJSON":"{\"d7d2004e-1671-469a-b55c-fb2e15508039\":{\"type\":\"optionsListControl\",\"order\":0,\"grow\":true,\"width\":\"medium\",\"explicitInput\":{\"id\":\"d7d2004e-1671-469a-b55c-fb2e15508039\",\"fieldName\":\"uuid.keyword\",\"title\":\"uuid.keyword\",\"grow\":true,\"width\":\"medium\",\"searchTechnique\":\"prefix\",\"selectedOptions\":[],\"enhancements\":{}}}}"},"description":"","kibanaSavedObjectMeta":{"searchSourceJSON":"{\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filter\":[]}"},"optionsJSON":"{\"useMargins\":true,\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"hidePanelTitles\":false}","panelsJSON":"[{\"type\":\"lens\",\"gridData\":{\"x\":0,\"y\":0,\"w\":24,\"h\":15,\"i\":\"31f5df88-8275-4508-a5b2-b3d1a2dffe1f\"},\"panelIndex\":\"31f5df88-8275-4508-a5b2-b3d1a2dffe1f\",\"embeddableConfig\":{\"attributes\":{\"title\":\"Fio IOPs\",\"description\":\"\",\"visualizationType\":\"lnsXY\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"d620f1df-070f-430b-bbc9-9d9371e3584d\",\"name\":\"indexpattern-datasource-layer-ab7a2616-c5c5-40af-898c-275c584650d6\"}],\"state\":{\"visualization\":{\"legend\":{\"isVisible\":true,\"position\":\"right\"},\"valueLabels\":\"hide\",\"fittingFunction\":\"None\",\"axisTitlesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"tickLabelsVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"labelsOrientation\":{\"x\":0,\"yLeft\":0,\"yRight\":0},\"gridlinesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"preferredSeriesType\":\"bar\",\"layers\":[{\"layerId\":\"ab7a2616-c5c5-40af-898c-275c584650d6\",\"seriesType\":\"bar\",\"xAccessor\":\"fe524fed-7a00-4d9b-9f50-0880ee3498c6\",\"accessors\":[\"403f48d6-dbee-4735-9627-8196b3227e58\"],\"layerType\":\"data\",\"colorMapping\":{\"assignments\":[],\"specialAssignments\":[{\"rule\":{\"type\":\"other\"},\"color\":{\"type\":\"loop\"},\"touched\":false}],\"paletteId\":\"eui_amsterdam_color_blind\",\"colorMode\":{\"type\":\"categorical\"}},\"splitAccessor\":\"54b78b27-79b6-4843-b0e1-92d0750f2205\"}]},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"ab7a2616-c5c5-40af-898c-275c584650d6\":{\"columns\":{\"54b78b27-79b6-4843-b0e1-92d0750f2205\":{\"label\":\"Top 30 values of job_name.keyword\",\"dataType\":\"string\",\"operationType\":\"terms\",\"scale\":\"ordinal\",\"sourceField\":\"job_name.keyword\",\"isBucketed\":true,\"params\":{\"size\":30,\"orderBy\":{\"type\":\"column\",\"columnId\":\"403f48d6-dbee-4735-9627-8196b3227e58\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":false,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false,\"secondaryFields\":[]}},\"fe524fed-7a00-4d9b-9f50-0880ee3498c6\":{\"label\":\"date\",\"dataType\":\"date\",\"operationType\":\"date_histogram\",\"sourceField\":\"date\",\"isBucketed\":true,\"scale\":\"interval\",\"params\":{\"interval\":\"auto\",\"includeEmptyRows\":true,\"dropPartials\":false}},\"403f48d6-dbee-4735-9627-8196b3227e58\":{\"label\":\"Average of iops\",\"dataType\":\"number\",\"operationType\":\"average\",\"sourceField\":\"iops\",\"isBucketed\":false,\"scale\":\"ratio\",\"params\":{\"emptyAsNull\":true}}},\"columnOrder\":[\"54b78b27-79b6-4843-b0e1-92d0750f2205\",\"fe524fed-7a00-4d9b-9f50-0880ee3498c6\",\"403f48d6-dbee-4735-9627-8196b3227e58\"],\"incompleteColumns\":{},\"sampling\":1}}},\"indexpattern\":{\"layers\":{}},\"textBased\":{\"layers\":{}}},\"internalReferences\":[],\"adHocDataViews\":{}}},\"enhancements\":{}}},{\"type\":\"lens\",\"gridData\":{\"x\":24,\"y\":0,\"w\":24,\"h\":15,\"i\":\"c8782e58-7e25-4dec-b998-4f5e65614cf9\"},\"panelIndex\":\"c8782e58-7e25-4dec-b998-4f5e65614cf9\",\"embeddableConfig\":{\"attributes\":{\"title\":\"Fio IOPs\",\"description\":\"\",\"visualizationType\":\"lnsXY\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"d620f1df-070f-430b-bbc9-9d9371e3584d\",\"name\":\"indexpattern-datasource-layer-ab7a2616-c5c5-40af-898c-275c584650d6\"}],\"state\":{\"visualization\":{\"legend\":{\"isVisible\":true,\"position\":\"right\"},\"valueLabels\":\"hide\",\"fittingFunction\":\"None\",\"axisTitlesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"tickLabelsVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"labelsOrientation\":{\"x\":0,\"yLeft\":0,\"yRight\":0},\"gridlinesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"preferredSeriesType\":\"bar\",\"layers\":[{\"layerId\":\"ab7a2616-c5c5-40af-898c-275c584650d6\",\"seriesType\":\"line\",\"xAccessor\":\"fe524fed-7a00-4d9b-9f50-0880ee3498c6\",\"accessors\":[\"403f48d6-dbee-4735-9627-8196b3227e58\",\"6a550942-aca3-4b6f-8e21-7285d9e8d94b\"],\"layerType\":\"data\",\"colorMapping\":{\"assignments\":[],\"specialAssignments\":[{\"rule\":{\"type\":\"other\"},\"color\":{\"type\":\"loop\"},\"touched\":false}],\"paletteId\":\"eui_amsterdam_color_blind\",\"colorMode\":{\"type\":\"categorical\"}},\"splitAccessor\":\"54b78b27-79b6-4843-b0e1-92d0750f2205\"}]},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"ab7a2616-c5c5-40af-898c-275c584650d6\":{\"columns\":{\"54b78b27-79b6-4843-b0e1-92d0750f2205\":{\"label\":\"Top 30 values of job_name.keyword\",\"dataType\":\"string\",\"operationType\":\"terms\",\"scale\":\"ordinal\",\"sourceField\":\"job_name.keyword\",\"isBucketed\":true,\"params\":{\"size\":30,\"orderBy\":{\"type\":\"column\",\"columnId\":\"403f48d6-dbee-4735-9627-8196b3227e58\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":false,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false,\"secondaryFields\":[]}},\"fe524fed-7a00-4d9b-9f50-0880ee3498c6\":{\"label\":\"date\",\"dataType\":\"date\",\"operationType\":\"date_histogram\",\"sourceField\":\"date\",\"isBucketed\":true,\"scale\":\"interval\",\"params\":{\"interval\":\"auto\",\"includeEmptyRows\":true,\"dropPartials\":false}},\"403f48d6-dbee-4735-9627-8196b3227e58\":{\"label\":\"Average of latency\",\"dataType\":\"number\",\"operationType\":\"average\",\"sourceField\":\"latency\",\"isBucketed\":false,\"scale\":\"ratio\",\"params\":{\"emptyAsNull\":true,\"format\":{\"id\":\"duration\",\"params\":{\"decimals\":0,\"fromUnit\":\"nanoseconds\",\"toUnit\":\"humanizePrecise\",\"compact\":true}}}},\"6a550942-aca3-4b6f-8e21-7285d9e8d94b\":{\"label\":\"Maximum of latency\",\"dataType\":\"number\",\"operationType\":\"max\",\"sourceField\":\"latency\",\"isBucketed\":false,\"scale\":\"ratio\",\"params\":{\"emptyAsNull\":true,\"format\":{\"id\":\"duration\",\"params\":{\"decimals\":0,\"fromUnit\":\"nanoseconds\",\"toUnit\":\"humanizePrecise\",\"compact\":true}}}}},\"columnOrder\":[\"54b78b27-79b6-4843-b0e1-92d0750f2205\",\"fe524fed-7a00-4d9b-9f50-0880ee3498c6\",\"403f48d6-dbee-4735-9627-8196b3227e58\",\"6a550942-aca3-4b6f-8e21-7285d9e8d94b\"],\"incompleteColumns\":{},\"sampling\":1,\"indexPatternId\":\"d620f1df-070f-430b-bbc9-9d9371e3584d\"}},\"currentIndexPatternId\":\"d620f1df-070f-430b-bbc9-9d9371e3584d\"},\"indexpattern\":{\"layers\":{}},\"textBased\":{\"layers\":{}}},\"internalReferences\":[],\"adHocDataViews\":{}}},\"description\":\"\",\"enhancements\":{}},\"title\":\"Fio Latency\"},{\"type\":\"lens\",\"gridData\":{\"x\":0,\"y\":15,\"w\":24,\"h\":15,\"i\":\"258afb4f-b745-47a2-a8be-107b71288e8b\"},\"panelIndex\":\"258afb4f-b745-47a2-a8be-107b71288e8b\",\"embeddableConfig\":{\"attributes\":{\"title\":\"Fio IOPs\",\"description\":\"\",\"visualizationType\":\"lnsXY\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"d620f1df-070f-430b-bbc9-9d9371e3584d\",\"name\":\"indexpattern-datasource-layer-ab7a2616-c5c5-40af-898c-275c584650d6\"}],\"state\":{\"visualization\":{\"legend\":{\"isVisible\":true,\"position\":\"right\"},\"valueLabels\":\"hide\",\"fittingFunction\":\"None\",\"axisTitlesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"tickLabelsVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"labelsOrientation\":{\"x\":0,\"yLeft\":0,\"yRight\":0},\"gridlinesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"preferredSeriesType\":\"bar\",\"layers\":[{\"layerId\":\"ab7a2616-c5c5-40af-898c-275c584650d6\",\"seriesType\":\"bar\",\"xAccessor\":\"fe524fed-7a00-4d9b-9f50-0880ee3498c6\",\"accessors\":[\"403f48d6-dbee-4735-9627-8196b3227e58\"],\"layerType\":\"data\",\"colorMapping\":{\"assignments\":[],\"specialAssignments\":[{\"rule\":{\"type\":\"other\"},\"color\":{\"type\":\"loop\"},\"touched\":false}],\"paletteId\":\"eui_amsterdam_color_blind\",\"colorMode\":{\"type\":\"categorical\"}},\"splitAccessor\":\"54b78b27-79b6-4843-b0e1-92d0750f2205\"}]},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"ab7a2616-c5c5-40af-898c-275c584650d6\":{\"columns\":{\"54b78b27-79b6-4843-b0e1-92d0750f2205\":{\"label\":\"Top 30 values of job_name.keyword\",\"dataType\":\"string\",\"operationType\":\"terms\",\"scale\":\"ordinal\",\"sourceField\":\"job_name.keyword\",\"isBucketed\":true,\"params\":{\"size\":30,\"orderBy\":{\"type\":\"column\",\"columnId\":\"403f48d6-dbee-4735-9627-8196b3227e58\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":false,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false,\"secondaryFields\":[]}},\"fe524fed-7a00-4d9b-9f50-0880ee3498c6\":{\"label\":\"date\",\"dataType\":\"date\",\"operationType\":\"date_histogram\",\"sourceField\":\"date\",\"isBucketed\":true,\"scale\":\"interval\",\"params\":{\"interval\":\"auto\",\"includeEmptyRows\":true,\"dropPartials\":false}},\"403f48d6-dbee-4735-9627-8196b3227e58\":{\"label\":\"Average of bandwidth\",\"dataType\":\"number\",\"operationType\":\"average\",\"sourceField\":\"bandwidth\",\"isBucketed\":false,\"scale\":\"ratio\",\"params\":{\"emptyAsNull\":true,\"format\":{\"id\":\"bytes\",\"params\":{\"decimals\":0}}}}},\"columnOrder\":[\"54b78b27-79b6-4843-b0e1-92d0750f2205\",\"fe524fed-7a00-4d9b-9f50-0880ee3498c6\",\"403f48d6-dbee-4735-9627-8196b3227e58\"],\"incompleteColumns\":{},\"sampling\":1,\"indexPatternId\":\"d620f1df-070f-430b-bbc9-9d9371e3584d\"}},\"currentIndexPatternId\":\"d620f1df-070f-430b-bbc9-9d9371e3584d\"},\"indexpattern\":{\"layers\":{}},\"textBased\":{\"layers\":{}}},\"internalReferences\":[],\"adHocDataViews\":{}}},\"description\":\"\",\"enhancements\":{}},\"title\":\"Fio Bandwidth\"}]","timeRestore":false,"title":"Ripsaw Fio","version":1},"coreMigrationVersion":"8.8.0","created_at":"2024-05-22T08:31:40.664Z","id":"5c4e2d98-444c-41b4-b514-9b48614ee7d0","managed":false,"references":[{"id":"d620f1df-070f-430b-bbc9-9d9371e3584d","name":"31f5df88-8275-4508-a5b2-b3d1a2dffe1f:indexpattern-datasource-layer-ab7a2616-c5c5-40af-898c-275c584650d6","type":"index-pattern"},{"id":"d620f1df-070f-430b-bbc9-9d9371e3584d","name":"c8782e58-7e25-4dec-b998-4f5e65614cf9:indexpattern-datasource-layer-ab7a2616-c5c5-40af-898c-275c584650d6","type":"index-pattern"},{"id":"d620f1df-070f-430b-bbc9-9d9371e3584d","name":"258afb4f-b745-47a2-a8be-107b71288e8b:indexpattern-datasource-layer-ab7a2616-c5c5-40af-898c-275c584650d6","type":"index-pattern"},{"id":"d620f1df-070f-430b-bbc9-9d9371e3584d","name":"controlGroup_d7d2004e-1671-469a-b55c-fb2e15508039:optionsListDataView","type":"index-pattern"}],"type":"dashboard","typeMigrationVersion":"8.9.0","updated_at":"2024-05-22T08:31:40.664Z","version":"WzQ5LDFd"}
{"excludedObjects":[],"excludedObjectsCount":0,"exportedCount":1,"missingRefCount":0,"missingReferences":[]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment