[vz-users] dbcopy - influx
    Sirko 
    mail_ist at nurfuerspam.de
       
    Mi Jan 15 08:13:16 CET 2020
    
    
  
Hi Joe,
bei mir funktioniert das mit
*/5 * * * * php /var/www/volkszaehler.org/vendor/andig/dbcopy/dbcopy
influx -c
/var/www/volkszaehler.org/vendor/andig/dbcopy/config.influx.yaml > /dev/null
also
dbcopy influx -c config.influx.yaml
im cron, Pfade mußt du anpassen. Es werden nur die neuen Werte kopiert.
die config sieht so aus (Zugangsdaten mußt du anpassen, falls du welche
benutzt):
# DATABASE DEFINITION
source:
   driver: pdo_mysql
   host: localhost
   user: username
   password: password
   dbname: volkszaehler
# influxdb target database connection
influx:
   dsn: influxdb://localhost:8086
   dbname: volkszaehler
   measurement: data
   user: username
   password: password
tables:
   entities: copy
   properties: copy
   entities_in_aggregator: copy
   data: pk
   aggregate: skip
Hast du bei data: pk?
Grüße
Sirko
Am 15.01.2020 um 01:31 schrieb joekokker at epios.eu:
> Hallo,
>
> ich möchte mysql und influx parallel betreiben und die Daten alle paar
> Minuten in influx kopieren. Macht das bereits jemand?
> ...
    
    
More information about the volkszaehler-users
mailing list