uptrace icon indicating copy to clipboard operation
uptrace copied to clipboard

Incorrect data presentation

Open QuanZi123 opened this issue 1 year ago • 1 comments

@vmihailenco uptrace version: 1.7.6 I use prometheus+blackbox to monitor port 22 of the server, the server is healthy, the data in prometheus is 1, but uptrace shows the status data is 0 and 1 天唧图片_202467114350 20240607114502549

QuanZi123 avatar Jun 07 '24 03:06 QuanZi123

I believe the Connect the line across null points option is supposed to handle this, however it does not appear to be functioning. I suspect because connectNulls has been left off of the Go struct for the grid item params here: https://github.com/uptrace/uptrace/blob/master/pkg/metrics/grid_item.go#L126

type ChartGridItemParams struct {
	ChartKind ChartKind         `json:"chartKind"`
	Metrics   []mql.MetricAlias `json:"metrics"`
	Query     string            `json:"query"`
	// Use ColumnMap instead of MetricMap for compatibility with TableGridItem.
	ColumnMap     map[string]*MetricColumn    `json:"columnMap"`
	TimeseriesMap map[string]*TimeseriesStyle `json:"timeseriesMap"`
	Legend        *ChartLegend                `json:"legend"`
	ConnectNulls  bool                        `json:"connectNulls"`       <-- Add this
}

andy-cloudticity avatar Dec 13 '24 23:12 andy-cloudticity

This should be fixed in v2.0.0

vmihailenco avatar Jul 26 '25 12:07 vmihailenco