I have created a log-based metric for some log messages generated by a Dataflow Job. The filter on which this metric is based is behaving correctly (the expected data is displayed in the logs viewer when using this filter).
I am trying to create a dashboard using this user defined log-based metric following the procedure described here https://cloud.google.com/logging/docs/view/logs_based_metrics#creating_a_chart
However, after I select the custom metric from the Metric drop-down, no data is displayed in the preview chart and the Save button is not enabled. Attempting to use the Advanced options does not help either.
Troubleshooting section did not help. Also, I have waited a lot of time after creating the log-based metric and before attempting to create the chart to make sure data will be available (to exclude the situation noted on the page mentioned above: "Note: After you have created your logs-based metric, it will appear in the relevant Stackdriver Monitoring menus but it will have no data. It takes a few minutes for Stackdriver Monitoring to acquire data from Stackdriver Logging.")
Am I missing something or is this a bug?