I would like plot the metrics using the container logs. I have created a metrics source and below is the filter. in the preview I am getting the data well but I could not create a very simple metrics with data (Timestamp and rabbitMQ_Queue_size)
What type of value in these fields(Group by, Aggregator) to be selected in Metrics explorer for the simple real time graph
resource.type="k8s_container"
resource.labels.container_name="rabitmq-check"
jsonPayload.rabbitMQ_Queue_size: *
Thanks & Regards
Elamcheliyan A
Generally, to create a time series from your usage data, the “Group By” field would be used to select a metric that can be aggregated across all the resources that produce it. This also requires an aggregator to define how the data points will be combined. Available aggregator functions, like “sum”, would be enabled once you select the metric to group the logs by.
Have you tried grouping by the Queue size (rabbitMQ_Queue_size) and using the sum aggregator? For a complete explanation, you can check the Select Metrics documentation.