justwatchcom / sql_exporter

Flexible SQL Exporter for Prometheus.
MIT License
393 stars 108 forks source link

0.3 mysql error: Failed to parse URL #40

Open r0bj opened 4 years ago

r0bj commented 4 years ago

Using mysql URL like mysql://user:password@tcp(db.query.consul:3306)/db causing error:

{"caller":"level.go:63","err":"parse mysql://user:password@tcp(db.query.consul:3306)/db: invalid port \":3306)\" after host","job":"de_bulkimport_checks","level":"error","msg":"Failed to parse URL","ts":"2020-03-27T19:26:45.072425282Z","url":"mysql://user:password@tcp(db.query.consul:3306)/db"}

In previous version 0.2 works fine.

OElGebaly commented 3 years ago

i am also facing the same issue , were you able to solve already ?

ghost commented 3 years ago

+1

TSUKER commented 1 year ago

+1

liubo20210831 commented 1 year ago

mysql://user:password@tcp(db.query.consul)/db Don't add the port number