implementing heartbeat for the supervisor (#30)

This commit is contained in:
Cheick Keita
2020-10-14 12:13:16 -07:00
committed by GitHub
parent 9acfbeaa2e
commit 3189daeeb7
30 changed files with 398 additions and 172 deletions

View File

@ -14,6 +14,7 @@ from onefuzztypes.primitives import Extension, Region
from .azure.containers import get_container_sas_url, get_file_sas_url, save_blob
from .azure.creds import get_func_storage, get_instance_url
from .azure.monitor import get_monitor_settings
from .azure.queue import get_queue_sas
from .reports import get_report
# TODO: figure out how to create VM specific SSH keys for Windows.
@ -93,6 +94,11 @@ def build_pool_config(pool_name: str) -> str:
pool_name=pool_name,
onefuzz_url=get_instance_url(),
instrumentation_key=os.environ.get("APPINSIGHTS_INSTRUMENTATIONKEY"),
heartbeat_queue=get_queue_sas(
"heartbeat",
account_id=os.environ["ONEFUZZ_FUNC_STORAGE"],
add=True,
),
telemetry_key=os.environ.get("ONEFUZZ_TELEMETRY"),
)