Skip to content

Commit 88d0c13

Browse files
committed
Allow rate and deltas
1 parent a3d9410 commit 88d0c13

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mysql.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

1112
const (
1213
integrationName = "com.newrelic.mysql"
13-
integrationVersion = "1.1.0"
14+
integrationVersion = "1.1.3"
1415
)
1516

1617
type 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)

0 commit comments

Comments
 (0)