Hi All,
I’m just getting started with Alloy so hopefully this might be an easy question to answer?
I’ve read various forum posts on the subject but I’m still hopelessly lost I’m afraid.
Here’s what I want to do…
I have a script on my unix box that generates a json file called “botstatus.json” every couple of minutes to show the current status of some bots we run as part of our internal instant messaging system.
The json file it produces looks like this:
[
{
"timestamp": "2025-09-19T14:01:54.041+02:00",
"accountID": 9987663234964776,
"userName": "bot1",
"displayName": "Bot One",
"status": "ENABLED",
"presenceCategory": "OFFLINE"
},
{
"timestamp": "2025-09-19T14:01:55.501+02:00",
"accountID": 164467976335421,
"userName": "bot2",
"displayName": "Bot Two",
"status": "ENABLED",
"presenceCategory": "AVAILABLE",
},
{
"timestamp": "2025-09-19T14:01:55.501+02:00",
"accountID": 644569676335422,
"userName": "bot3",
"displayName": "Bot Three",
"status": "ENABLED",
"presenceCategory": "AVAILABLE"
}
]
The timestamp is the last time the script checked each bot. The other values are for the status of the bots themselves.
I’m hoping that Alloy can read the file, make sense of it and send it to Loki+Grafana (running on another unix server).
I’d then like to create a panel in Grafana that shows the current status of each bot.
Is this possible?
Can someone give me an example of how to craft the alloy.config to do this?
All help and suggestions very gratefully received !