{"id":24629534,"url":"https://github.com/framsouza/es-slo-upgrade-helper","last_synced_at":"2026-05-13T05:45:32.679Z","repository":{"id":216365608,"uuid":"741128315","full_name":"framsouza/es-slo-upgrade-helper","owner":"framsouza","description":"Elastic  Observability SLO upgrade helper (8.11.x -\u003e 8.12)","archived":false,"fork":false,"pushed_at":"2024-01-19T16:09:15.000Z","size":59,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T06:13:08.897Z","etag":null,"topics":["elasticsearch","observability","slo"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/framsouza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-09T18:51:53.000Z","updated_at":"2024-01-16T15:34:59.000Z","dependencies_parsed_at":"2024-01-14T19:48:28.468Z","dependency_job_id":null,"html_url":"https://github.com/framsouza/es-slo-upgrade-helper","commit_stats":null,"previous_names":["framsouza/es-slo-upgrade-helper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/framsouza%2Fes-slo-upgrade-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/framsouza%2Fes-slo-upgrade-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/framsouza%2Fes-slo-upgrade-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/framsouza%2Fes-slo-upgrade-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/framsouza","download_url":"https://codeload.github.com/framsouza/es-slo-upgrade-helper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244554042,"owners_count":20471172,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elasticsearch","observability","slo"],"created_at":"2025-01-25T06:13:12.474Z","updated_at":"2026-05-13T05:45:30.665Z","avatar_url":"https://github.com/framsouza.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Elastic Observability -  SLO feature upgrade helper (8.11.x -\u003e 8.12.0)\n\n_If you're on version 8.11.x using our Elastic Observability SLOs feature and want to upgrade to the 8.12.0 version, this tool is designed to assist you._\n\nThe recent modifications to our transforms have introduced a breaking change. To ensure greater robustness, we've implemented a new set of APIs and UI to manage SLO definitions, offering upgrades and resets. Following the upgrade, upon loading the SLO page, a notification banner will appear, alerting you about the presence of 'Outdated SLOs'.\n\n![Outdated Banner](./images/outdated-banner.png)\nThis code essentially resets all the configured SLOs, sparing you the need to reset them individually.\n\n### Usage\n\nExport the following environment variables:\n- `export ES_USERNAME=\u003cyour-es-user\u003e`\n- `export ES_PASSWORD=\u003cpassword\u003e`\n- `export KIBANA_ENDPOINT=\u003ckibana-url\u003e` (make sure to add only the name, if the URL is https://slo-test-44.kb.us-west2.gcp.elastic-cloud.com:9243/), the value of the environment variable should be: `slo-test-44.kb.us-west2.gcp.elastic-cloud.com`)\n- `export KIBANA_PORT=\u003cport\u003e` (if you don't specify it, 9243 will be used)\n- `export KIBANA_SPACE_NAMES=\"default\"` (in case you have more Kibana spaces, specify it in this list (eg, \"default, space1, space2\")\n\nRunning the code `python slo_upgrade_helper.py`:\n```\nOutdated SLOs found in Space 'space1': 1\nspace1 - slo1\nReset SLO ID cb6dbf60-afb6-11ee-aa14-41a0143c7520 in Space 'space1': 200 - {\"name\":\"space1 - slo1\",\"description\":\"\",\"indicator\":{\"type\":\"sli.kql.custom\",\"params\":{\"index\":\"kibana_sample_data_logs\",\"filter\":\"\",\"good\":\"response: 200\",\"total\":\"response: * \",\"timestampField\":\"@timestamp\"}},\"budgetingMethod\":\"occurrences\",\"timeWindow\":{\"duration\":\"30d\",\"type\":\"rolling\"},\"objective\":{\"target\":0.99},\"tags\":[],\"groupBy\":\"*\",\"id\":\"cb6dbf60-afb6-11ee-aa14-41a0143c7520\",\"settings\":{\"syncDelay\":\"1m\",\"frequency\":\"1m\"},\"revision\":1,\"enabled\":true,\"createdAt\":\"2024-01-10T12:50:12.694Z\",\"updatedAt\":\"2024-01-10T13:34:29.416Z\",\"version\":2}\nOutdated SLOs found in Space 'default': 1\ndefault - slo01\nReset SLO ID 913bd430-afb6-11ee-aa14-41a0143c7520 in Space 'default': 200 - {\"name\":\"default - slo01\",\"description\":\"\",\"indicator\":{\"type\":\"sli.kql.custom\",\"params\":{\"index\":\"kibana_sample_data_logs\",\"filter\":\"\",\"good\":\"response: 200\",\"total\":\"response: * \",\"timestampField\":\"@timestamp\"}},\"budgetingMethod\":\"occurrences\",\"timeWindow\":{\"duration\":\"30d\",\"type\":\"rolling\"},\"objective\":{\"target\":0.99},\"tags\":[],\"groupBy\":\"*\",\"id\":\"913bd430-afb6-11ee-aa14-41a0143c7520\",\"settings\":{\"syncDelay\":\"1m\",\"frequency\":\"1m\"},\"revision\":1,\"enabled\":true,\"createdAt\":\"2024-01-10T12:48:35.059Z\",\"updatedAt\":\"2024-01-10T13:34:31.520Z\",\"version\":2}\n```\n\n### Docker\n\nIf you wish, you can also use Docker to achieve the same. First, pull the image:\n```\ndocker pull docker.elastic.co/observability/slo-upgrade-helper:1.2\n```\n\nAnd run the container:\n```\ndocker run --env ES_USERNAME=\"\u003cusername\u003e\" --env ES_PASSWORD=\"\u003cpassword\u003e\" --env KIBANA_ENDPOINT=\"\u003ckb-endpoint\u003e\" --env KIBANA_SPACE_NAMES=\"default,space1\" docker.elastic.co/observability/slo-upgrade-helper:1.2\n```\n\nFollowing this, you should no longer encounter Outdated SLO notifications, allowing you to seamlessly resume using the SLOs and benefit from the enhancements in the 8.12.0.\n\nHappy SLO!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fframsouza%2Fes-slo-upgrade-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fframsouza%2Fes-slo-upgrade-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fframsouza%2Fes-slo-upgrade-helper/lists"}