How to generate data adapted to the flame graph

I want to fake some data into InfluxDB and then draw a flame graph on Grafana, how can I fake it? I thought that the format required by the flame graph was to have the four fields of value, label, self, and level, but I still couldn’t generate the flame graph when I generated data with these four fields. It is known that the data is generated normally, because it can be displayed in the table, what should I do? Can you give some data that meets the flame graph requirements as an example? Or can you tell me how to generate data that satisfies the criteria?