You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing --influxdb parameter to kapacitor-unit, the test data is created in the target destination, but the queries are executed against localhost.
Using the sample batch test data in this repo:
root@5604febba2a3:/kapacitor# cat ticks/alert_weather_batch.tick
var weather = batch
| query('''
SELECT mean(temperature)
FROM "weather"."default"."temperature"
''')
.period(5m)
.every(10m)
var rain = batch
| query('''
SELECT count(rain)
FROM "weather"."default"."temperature"
''')
.period(5m)
.every(3d)
// simple case with only one batch query
weather
| alert().id('Temperature')
.message('Temperature alert - batch')
.warn(lambda: "mean" > 80)
.crit(lambda: "mean" > 100)
.stateChangesOnly()
.log('/tmp/temperature_batch.tick.log')
When passing
--influxdb
parameter to kapacitor-unit, the test data is created in the target destination, but the queries are executed against localhost.Using the sample batch test data in this repo:
The run fails like so:
Note
http://localhost:8086/query?
But when I look at
myinfluxdb1
, I see the appropriate drop/create for each run:The text was updated successfully, but these errors were encountered: