Skip to content

Instantly share code, notes, and snippets.

@ashutosh16
Last active October 3, 2023 22:13
Show Gist options
  • Save ashutosh16/5c6583f2e177ad7d8f7c44fda9dce015 to your computer and use it in GitHub Desktop.
Save ashutosh16/5c6583f2e177ad7d8f7c44fda9dce015 to your computer and use it in GitHub Desktop.
{
"result": {
"objectMeta": {
"name": "istio-host-split",
"namespace": "argo-rollouts-istio",
"uid": "a85b642c-b952-421d-a13d-8af82c53b1e0",
"resourceVersion": "1358123",
"creationTimestamp": "2023-09-29T20:18:21Z"
},
"status": "Paused",
"message": "CanaryPauseStep",
"icon": "॥",
"strategy": "Canary",
"step": "1/8",
"setWeight": "25",
"actualWeight": "25",
"ready": 5,
"current": 5,
"desired": 4,
"updated": 1,
"available": 5,
"restartedAt": "Never",
"generation": "4",
"replicaSets": [
{
"objectMeta": {
"name": "istio-host-split-546749ff66",
"namespace": "argo-rollouts-istio",
"uid": "427d21e0-3e41-471a-ba41-052c42585410",
"creationTimestamp": "2023-09-29T20:23:24Z"
},
"status": "Healthy",
"icon": "✔",
"revision": 4,
"canary": true,
"replicas": 1,
"available": 1,
"images": [
"ghcr.io/argocon22workshop/rollouts-demo:blue"
],
"pods": [
{
"objectMeta": {
"name": "istio-host-split-546749ff66-gqzw2",
"namespace": "argo-rollouts-istio",
"uid": "860e2659-2425-43c5-9f88-8ea26cf19a20",
"creationTimestamp": "2023-10-03T20:29:36Z"
},
"status": "Running",
"icon": "✔",
"ready": "2/2"
}
]
},
{
"objectMeta": {
"name": "istio-host-split-7766c75d45",
"namespace": "argo-rollouts-istio",
"uid": "497f6012-7c3c-480f-905f-dd6602667f72",
"creationTimestamp": "2023-09-29T20:22:51Z"
},
"status": "Healthy",
"icon": "✔",
"revision": 3,
"stable": true,
"replicas": 4,
"available": 4,
"images": [
"ghcr.io/argocon22workshop/rollouts-demo:green"
],
"pods": [
{
"objectMeta": {
"name": "istio-host-split-7766c75d45-5qpz6",
"namespace": "argo-rollouts-istio",
"uid": "66586f47-9005-4c1f-b21e-1b8bc982b5b1",
"creationTimestamp": "2023-09-29T20:22:52Z"
},
"status": "Running",
"icon": "✔",
"ready": "2/2"
},
{
"objectMeta": {
"name": "istio-host-split-7766c75d45-67jzs",
"namespace": "argo-rollouts-istio",
"uid": "7e0e8591-ee1b-4645-a4cb-ff09ee66f665",
"creationTimestamp": "2023-09-29T20:22:52Z"
},
"status": "Running",
"icon": "✔",
"ready": "2/2"
},
{
"objectMeta": {
"name": "istio-host-split-7766c75d45-7gnjw",
"namespace": "argo-rollouts-istio",
"uid": "2540a98b-254c-4f34-a8f7-e9604c13c929",
"creationTimestamp": "2023-09-29T20:22:52Z"
},
"status": "Running",
"icon": "✔",
"ready": "2/2"
},
{
"objectMeta": {
"name": "istio-host-split-7766c75d45-jcmjz",
"namespace": "argo-rollouts-istio",
"uid": "fd5e37c1-8fde-404a-8af4-767950ef2949",
"creationTimestamp": "2023-09-29T20:22:52Z"
},
"status": "Running",
"icon": "✔",
"ready": "2/2"
}
]
}
],
"analysisRuns": [
{
"objectMeta": {
"name": "istio-host-split-546749ff66-2",
"namespace": "argo-rollouts-istio",
"uid": "a0022573-5542-4805-9c40-4cac149ff0e7",
"creationTimestamp": "2023-09-29T20:23:43Z"
},
"icon": "⚠",
"revision": 2,
"status": "Error",
"error": 5,
"nonJobInfo": [
{
"status": "Error",
"metricName": "success-rate",
"startedAt": "2023-09-29T20:23:43Z"
},
{
"status": "Error",
"metricName": "success-rate",
"startedAt": "2023-09-29T20:23:53Z"
},
{
"status": "Error",
"metricName": "success-rate",
"startedAt": "2023-09-29T20:24:03Z"
},
{
"status": "Error",
"metricName": "success-rate",
"startedAt": "2023-09-29T20:24:13Z"
},
{
"status": "Error",
"metricName": "success-rate",
"startedAt": "2023-09-29T20:24:23Z"
}
],
"metrics": [
{
"name": "success-rate",
"successCondition": "result[0] \u003e= 0.95",
"count": 4,
"failureLimit": 1
}
],
"specAndStatus": {
"spec": {
"metrics": [
{
"name": "success-rate",
"interval": "30s",
"count": 4,
"successCondition": "result[0] \u003e= 0.95",
"failureLimit": 1,
"provider": {
"prometheus": {
"address": "http://prometheus-k8s.monitoring:9090",
"query": "sum(irate(istio_requests_total{destination_service_name=~\"{{args.service-name}}\",response_code!~\"5.*\"}[1m])) \n/\nsum(irate(istio_requests_total{destination_service_name=~\"{{args.service-name}}\"}[1m]))",
"authentication": {
"sigv4": {}
}
}
}
}
],
"args": [
{
"name": "service-name",
"value": "istio-host-split-canary"
}
]
},
"status": {
"phase": "Error",
"message": "Metric \"success-rate\" assessed Error due to consecutiveErrors (5) \u003e consecutiveErrorLimit (4): \"Error Message: reflect: slice index out of range\"",
"metricResults": [
{
"name": "success-rate",
"phase": "Error",
"measurements": [
{
"phase": "Error",
"message": "reflect: slice index out of range",
"startedAt": "2023-09-29T20:23:43Z",
"finishedAt": "2023-09-29T20:23:43Z"
},
{
"phase": "Error",
"message": "reflect: slice index out of range",
"startedAt": "2023-09-29T20:23:53Z",
"finishedAt": "2023-09-29T20:23:53Z"
},
{
"phase": "Error",
"message": "reflect: slice index out of range",
"startedAt": "2023-09-29T20:24:03Z",
"finishedAt": "2023-09-29T20:24:03Z"
},
{
"phase": "Error",
"message": "reflect: slice index out of range",
"startedAt": "2023-09-29T20:24:13Z",
"finishedAt": "2023-09-29T20:24:13Z"
},
{
"phase": "Error",
"message": "reflect: slice index out of range",
"startedAt": "2023-09-29T20:24:23Z",
"finishedAt": "2023-09-29T20:24:23Z"
}
],
"message": "reflect: slice index out of range",
"error": 5,
"consecutiveError": 5,
"metadata": {
"ResolvedPrometheusQuery": "sum(irate(istio_requests_total{destination_service_name=~\"istio-host-split-canary\",response_code!~\"5.*\"}[1m])) \n/\nsum(irate(istio_requests_total{destination_service_name=~\"istio-host-split-canary\"}[1m]))"
}
}
],
"startedAt": "2023-09-29T20:23:43Z",
"runSummary": {
"count": 1,
"error": 1
},
"dryRunSummary": {}
}
}
}
],
"containers": [
{
"name": "istio-host-split",
"image": "ghcr.io/argocon22workshop/rollouts-demo:blue"
}
],
"steps": [
{
"setWeight": 25
},
{
"pause": {}
},
{
"setWeight": 35
},
{
"pause": {
"duration": "10s"
}
},
{
"setWeight": 50
},
{
"pause": {
"duration": "10s"
}
},
{
"setWeight": 75
},
{
"pause": {
"duration": "2m"
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment