http response prometheus /api/v1/metadata 200 {"status":"success","data":{}}
http response prometheus / 502 Bad Gateway
http start prometheus 127.0.0.1:7104

! exec pint --no-color lint rules
! stdout .
stderr 'level=ERROR msg="Query returned an error" err="502 Bad Gateway" uri=http://127.0.0.1:7104 query=/api/v1/status/config'
stderr 'level=ERROR msg="Query returned an error" err="502 Bad Gateway" uri=http://127.0.0.1:7104 query=/api/v1/status/flags'
stderr 'level=ERROR msg="Query returned an error" err="502 Bad Gateway" uri=http://127.0.0.1:7104 query=count\(\\nfoo\\n\)'
stderr 'level=INFO msg="Problems found" Bug=4'
-- rules/0001.yml --
# This should skip all online checks
# pint file/disable promql/series
#  pint  file/disable  promql/rate
#
# pint file/disable alerts/count
#   pint   file/disable   promql/range_query
# pint file/disable promql/offset
#

- record: "colo:test1"
  expr: sum(foo) without(job)

-- rules/0002.yml --
- record: "colo:test2"
  expr: sum(foo) without(job)

# pint file/disable rule/duplicate

-- .pint.hcl --
prometheus "prom" {
  uri      = "http://127.0.0.1:7104"
  failover = []
  timeout  = "5s"
  required = true
}
parser {
  relaxed = [".*"]
}
