divinity666 / ruby-grafana-reporter

Reporting Service for Grafana
MIT License
66 stars 5 forks source link

Header row missing in tables #7

Closed uwereiter closed 2 years ago

uwereiter commented 3 years ago

Hi,

I'm using the reporter 0.4.3 from raspberry or Windows against a Grafana 7.5.3 to report graphs and tables.

For tables I tried both grafana_sql_table and grafana_panel_query_table. These are showing the data as expected, but both do not show the header row with field names or aliases.

Is that a know bug in the reporter? Or do I have to activate somewhere else that tables show a header?

Best regards Uwe

divinity666 commented 3 years ago

Dear Uwe,

thanks for your question. It is true: Currently the table requests do not return the header values (though they are available internally).

Today the only option is, to specify the header manually in your template. This is by design.

Anyway I have been thinking about an option, which could be used to output also the header. I will investigate for one of the next versions.

Best regards Christian

divinity666 commented 2 years ago

This is now fixed in release 0.4.4 with the option include_headline="true" in the table SQL calls

Check it out!