ssube/prometheus-sql-adapter

View on GitHub
postgres/client.go

Summary

Maintainability
A
35 mins
Test Coverage
F
31%

Method Client.WriteLabel has 5 return statements (exceeds 4 allowed).
Open

func (c *Client) WriteLabel(m *model.Metric, stmt *sql.Stmt, t time.Time) (written bool, err error) {
    lid, err := metric.MakeLid(m)
    if err != nil {
        level.Warn(c.logger).Log("msg", "error hashing labels", "err", err)
        return false, err
Severity: Major
Found in postgres/client.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status