Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Origin = ""
Functions ¶
func StreamData ¶
StreamData starts data streaming using the respective ticker stored in configMap. This function shall be called from a REST request handler function Based on the parsed parameters of the request the configMap is extended. Structure of config map:
Panel -> queries/panel -> series/queries
At the moment each query has its own ticker channel setup based on the sampling time (calculated based on the grafana data points config) Each series is represented by a string that can be configured in grafana through the dataText field. Once the ticker is set, the respective query results will be streamed back (periodical http flush) to the grafana server.
Types ¶
type QueryConfig ¶
type QueryConfig struct { Writer http.ResponseWriter Series []string Ticker *time.Ticker }
Click to show internal directories.
Click to hide internal directories.