Systemd service status visualization

Hi,
I am new to Kibana, and using kibana 7.7

I setup metricbeat and using service metricset for montioring of systemd services.

I wan to visualize the service status of each service as 1 (active) or 0 (inactive) with respect to timestamp on line graph or bar chart in kibana.

Kindly suggest me how to create that visualisation as i am unable to figure out correct aggregation to use.

Thanks,
Nabeel Shakeel

This is a tricky question for a few reasons. In general, this kind of "up or down" monitoring is done in a few ways in the Elastic stack:

My best recommendation is to try to use one of our existing tools for this.