Skip to content

Commit

Permalink
[flux] Use query instead of measurement for influx targets
Browse files Browse the repository at this point in the history
The old (no longer supported) influx plugin have been replaced with a
native plugin by
[grafana](https://grafana.com/grafana/plugins/influxdb/)
  • Loading branch information
ptxmac committed Dec 20, 2021
1 parent a1455a6 commit f094484
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion target/influxdb/influxdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type InfluxDB struct {
func New(query string, options ...Option) *InfluxDB {
influxdb := &InfluxDB{
Builder: &sdk.Target{
Measurement: query,
Query: query,
},
}

Expand Down
2 changes: 1 addition & 1 deletion target/influxdb/influxdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func TestQueriesCanBeCreated(t *testing.T) {

target := influxdb.New("buckets()")

req.Equal("buckets()", target.Builder.Measurement)
req.Equal("buckets()", target.Builder.Query)
}

func TestRefCanBeConfigured(t *testing.T) {
Expand Down

0 comments on commit f094484

Please sign in to comment.