File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,14 @@ import (
44 "fmt"
55
66 sdk_args "github.com/newrelic/infra-integrations-sdk/args"
7+ "github.com/newrelic/infra-integrations-sdk/data/metric"
78 "github.com/newrelic/infra-integrations-sdk/integration"
89 "github.com/newrelic/infra-integrations-sdk/log"
910)
1011
1112const (
1213 integrationName = "com.newrelic.mysql"
13- integrationVersion = "1.1.0 "
14+ integrationVersion = "1.1.3 "
1415)
1516
1617type argumentList struct {
@@ -43,7 +44,7 @@ func main() {
4344 log .SetupLogging (args .Verbose )
4445
4546 e := i .LocalEntity ()
46- ms := e .NewMetricSet ("MysqlSample" )
47+ ms := e .NewMetricSet ("MysqlSample" , metric . Attr ( "hostname" , args . Hostname ) )
4748
4849 db , err := openDB (generateDSN (args ))
4950 fatalIfErr (err )
You can’t perform that action at this time.
0 commit comments