Based on the following line from the guide, I don't think the guide will solve my issue:
This can occur when the underlying heartbeat-VERSION ILM alias is deleted manually or when Heartbeat writes data through an intermediary such as Logstash without the setup command being run.
I have no manual indexes, only the ones that were automatically created. The one that holds the data is called ".ds-synthetics-browser-default-2023.04.14-000001" which is based on the "synthetics-browser-default" data stream.
The ".ds-heartbeat-8.6.1-2023.04.14-000001" index, based on the "heartbeat-8.6.1" data stream holds no data.
But from what I can tell the uptime should also take the synthetics index into account.
Here's the index mapping for ".ds-synthetics-browser-default-2023.04.14-000001" index:
{
  "mappings": {
    "_data_stream_timestamp": {
      "enabled": true
    },
    "dynamic_templates": [
      {
        "match_ip": {
          "match": "ip",
          "match_mapping_type": "string",
          "mapping": {
            "type": "ip"
          }
        }
      },
      {
        "match_message": {
          "match": "message",
          "match_mapping_type": "string",
          "mapping": {
            "type": "match_only_text"
          }
        }
      },
      {
        "strings_as_keyword": {
          "match_mapping_type": "string",
          "mapping": {
            "ignore_above": 1024,
            "type": "keyword"
          }
        }
      }
    ],
    "date_detection": false,
    "properties": {
      "@timestamp": {
        "type": "date"
      },
      "agent": {
        "properties": {
          "ephemeral_id": {
            "type": "keyword",
            "ignore_above": 1024
          },
          "id": {
            "type": "keyword",
            "ignore_above": 1024
          },
          "name": {
            "type": "keyword",
            "ignore_above": 1024
          },
          "type": {
            "type": "keyword",
            "ignore_above": 1024
          },
          "version": {
            "type": "keyword",
            "ignore_above": 1024
          }
        }
      },
      "browser": {
        "properties": {
          "experience": {
            "properties": {
              "cls": {
                "type": "float"
              },
              "dcl": {
                "properties": {
                  "us": {
                    "type": "float"
                  }
                }
              },
              "fcp": {
                "properties": {
                  "us": {
                    "type": "float"
                  }
                }
              },
              "lcp": {
                "properties": {
                  "us": {
                    "type": "float"
                  }
                }
              },
              "load": {
                "properties": {
                  "us": {
                    "type": "float"
                  }
                }
              }
            }
          },
          "relative_trace": {
            "properties": {
              "name": {
                "type": "keyword",
                "ignore_above": 1024
              },
              "score": {
                "type": "float"
              },
              "start": {
                "properties": {
                  "us": {
                    "type": "float"
                  }
                }
              },
              "type": {
                "type": "keyword",
                "ignore_above": 1024
              }
            }
          }
        }
      },
      "data_stream": {
        "properties": {
          "dataset": {
            "type": "constant_keyword",
            "value": "browser"
          },
          "namespace": {
            "type": "constant_keyword",
            "value": "default"
          },
          "type": {
            "type": "constant_keyword",
            "value": "synthetics"
          }
        }
      },
      "ecs": {
        "properties": {
          "version": {
            "type": "keyword",
            "ignore_above": 1024
          }
        }
      },
      "error": {
        "properties": {
          "code": {
            "type": "keyword",
            "ignore_above": 1024
          },
          "message": {
            "type": "match_only_text"
          },
          "stack_trace": {
            "type": "keyword",
            "ignore_above": 1024
          },
          "type": {
            "type": "keyword",
            "ignore_above": 1024
          }
        }
      },
      "event": {
        "properties": {
          "dataset": {
            "type": "keyword",
            "ignore_above": 1024
          },
          "type": {
            "type": "keyword",
            "ignore_above": 1024
          }
        }
      },
      "host": {
        "type": "object"
      },
      "monitor": {
        "properties": {
          "check_group": {
            "type": "keyword",
            "ignore_above": 1024
          },
          "duration": {
            "properties": {
              "us": {
                "type": "long"
              }
            }
          },
          "id": {
            "type": "keyword",
            "ignore_above": 1024
          },
          "name": {
            "type": "keyword",
            "ignore_above": 1024
          },
          "project": {
            "properties": {
              "id": {
                "type": "keyword",
                "ignore_above": 1024
              },
              "name": {
                "type": "keyword",
                "ignore_above": 1024
              }
            }
          },
          "status": {
            "type": "keyword",
            "ignore_above": 1024
          },
          "timespan": {
            "properties": {
              "gte": {
                "type": "keyword",
                "ignore_above": 1024
              },
              "lt": {
                "type": "keyword",
                "ignore_above": 1024
              }
            }
          },
          "type": {
            "type": "keyword",
            "ignore_above": 1024
          }
        }
      },
      "num_journeys": {
        "type": "long"
      },
      "os": {
        "properties": {
          "platform": {
            "type": "keyword",
            "ignore_above": 1024
          }
        }
      },
      "package": {
        "properties": {
          "name": {
            "type": "keyword",
            "ignore_above": 1024
          },
          "version": {
            "type": "keyword",
            "ignore_above": 1024
          }
        }
      },
      "state": {
        "properties": {
          "checks": {
            "type": "long"
          },
          "down": {
            "type": "long"
          },
          "duration_ms": {
            "type": "long"
          },
          "ends": {
            "properties": {
              "checks": {
                "type": "long"
              },
              "down": {
                "type": "long"
              },
              "duration_ms": {
                "type": "float"
              },
              "id": {
                "type": "keyword",
                "ignore_above": 1024
              },
              "started_at": {
                "type": "keyword",
                "ignore_above": 1024
              },
              "status": {
                "type": "keyword",
                "ignore_above": 1024
              },
              "up": {
                "type": "long"
              }
            }
          },
          "id": {
            "type": "keyword",
            "ignore_above": 1024
          },
          "started_at": {
            "type": "keyword",
            "ignore_above": 1024
          },
          "status": {
            "type": "keyword",
            "ignore_above": 1024
          },
          "up": {
            "type": "long"
          }
        }
      },
      "summary": {
        "properties": {
          "down": {
            "type": "long"
          },
          "up": {
            "type": "long"
          }
        }
      },
      "synthetics": {
        "properties": {
          "error": {
            "properties": {
              "message": {
                "type": "match_only_text"
              },
              "name": {
                "type": "keyword",
                "ignore_above": 1024
              },
              "stack": {
                "type": "keyword",
                "ignore_above": 1024
              }
            }
          },
          "index": {
            "type": "long"
          },
          "journey": {
            "properties": {
              "id": {
                "type": "keyword",
                "ignore_above": 1024
              },
              "name": {
                "type": "keyword",
                "ignore_above": 1024
              }
            }
          },
          "package_version": {
            "type": "keyword",
            "ignore_above": 1024
          },
          "payload": {
            "properties": {
              "network_conditions": {
                "properties": {
                  "downloadThroughput": {
                    "type": "long"
                  },
                  "latency": {
                    "type": "long"
                  },
                  "offline": {
                    "type": "boolean"
                  },
                  "uploadThroughput": {
                    "type": "long"
                  }
                }
              },
              "source": {
                "type": "keyword",
                "ignore_above": 1024
              },
              "status": {
                "type": "keyword",
                "ignore_above": 1024
              },
              "text": {
                "type": "keyword",
                "ignore_above": 1024
              },
              "type": {
                "type": "keyword",
                "ignore_above": 1024
              },
              "url": {
                "type": "keyword",
                "ignore_above": 1024
              }
            }
          },
          "step": {
            "properties": {
              "duration": {
                "properties": {
                  "us": {
                    "type": "long"
                  }
                }
              },
              "index": {
                "type": "long"
              },
              "name": {
                "type": "keyword",
                "ignore_above": 1024
              },
              "status": {
                "type": "keyword",
                "ignore_above": 1024
              }
            }
          },
          "type": {
            "type": "keyword",
            "ignore_above": 1024
          }
        }
      },
      "url": {
        "properties": {
          "domain": {
            "type": "keyword",
            "ignore_above": 1024
          },
          "full": {
            "type": "keyword",
            "ignore_above": 1024
          },
          "path": {
            "type": "keyword",
            "ignore_above": 1024
          },
          "port": {
            "type": "long"
          },
          "scheme": {
            "type": "keyword",
            "ignore_above": 1024
          }
        }
      }
    }
  }
}