Collecting unit test (JUnit) data in Sumo Logic
Looking for some advice/input here as I'm new to Sumo Logic.
We are planning on pushing JUnit data from our CI builds into Sumo Logic so that we can create dashboards and such to identify slow and/or frequently failing unit tests. The fields will include:
- Test suite
- Class
- Test
- Execution Time
- Result (passed, failed)
So far I've created a collector and an HTTP source, and I'm POSTing JSON data to it. I'm able to query by execution time, result, etc. -- it's working pretty well.
My question is this. Right now I'm pushing the data as log data, though this seems like it may be more closely related to Metrics data. Would there be an advantage in using Metrics for this instead, and if so, what would the best type of source be? The plan right now is to push all of the JUnit data at the end of the CI job.
Thanks.
-
Hello Dale,
A metric is a set of data points that measure the value of something. For example, the weather service collects measurements of temperature over time. Perhaps you weigh yourself once a week or check the height of your child every 3 months.
Sumo customers use Sumo to collect metrics that measure the availability, usage, and performance of their application and computing resource, sometimes many times per minute.
In Sumo, we use the term time series to refer to a set of timestamped values of a specific measurement. More generally, we often refer to metrics as time-series data.
If you are interested in collecting time-series data with a Graphical view then you can use the metrics data instead of using Logs.
To collect the metrics data you can use, hosted metrics source. Below are the details about it:
https://help.sumologic.com/03Send-Data/Setup-Wizard/Collect-Streaming-Data-for-MetricsHope this is what you are looking for. Please, let me know if you have any questions or concerns.
Thanks,
Mohit
Please sign in to leave a comment.
Comments
1 comment