Fix ansible handler timeouts for alloy and loki restarts (#12)

## Summary
- Use async with poll: 0 for alloy and loki restart handlers
- Fire-and-forget approach prevents ansible from hanging on graceful shutdown

## Test plan
- [x] Manually verified `brew services restart grafana-alloy` works
- [x] Run full ansible playbook and verify it completes without timeout

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Reviewed-on: https://forge.tail8d86e.ts.net/eblume/blumeops/pulls/12
This commit is contained in:
Erich Blume 2026-01-15 13:56:11 -08:00
commit 2a1359a3b6
5 changed files with 37 additions and 21 deletions

View file

@ -49,11 +49,11 @@
"targets": [
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"expr": "sum(loki_ingester_memory_chunks_bytes)",
"expr": "sum(loki_ingester_chunk_stored_bytes_total)",
"refId": "A"
}
],
"title": "Chunks in Memory",
"title": "Total Stored",
"type": "stat"
},
{
@ -368,8 +368,8 @@
"targets": [
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"expr": "sum(loki_ingester_memory_chunks_bytes)",
"legendFormat": "Chunks in Memory",
"expr": "sum(loki_ingester_chunk_stored_bytes_total)",
"legendFormat": "Total Stored",
"refId": "A"
},
{
@ -379,7 +379,7 @@
"refId": "B"
}
],
"title": "Memory Usage Over Time",
"title": "Storage Over Time",
"type": "timeseries"
},
{