1
0
mirror of https://github.com/prometheus/mysqld_exporter.git synced 2025-07-30 06:43:05 +03:00

Switch to kingpin (#222)

This commit is contained in:
Calle Pettersson
2017-10-08 18:47:40 +02:00
committed by Ben Kochie
parent 8285b298c0
commit ad4138ae3c
48 changed files with 9890 additions and 181 deletions

View File

@ -3,16 +3,16 @@ package collector
import (
"testing"
"flag"
"fmt"
"github.com/prometheus/client_golang/prometheus"
dto "github.com/prometheus/client_model/go"
"github.com/smartystreets/goconvey/convey"
"gopkg.in/DATA-DOG/go-sqlmock.v1"
"gopkg.in/alecthomas/kingpin.v2"
)
func TestScrapePerfFileInstances(t *testing.T) {
err := flag.Set("collect.perf_schema.file_instances.filter", "")
_, err := kingpin.CommandLine.Parse([]string{"--collect.perf_schema.file_instances.filter", ""})
if err != nil {
t.Fatal(err)
}