Setup InfluxDB alongside Recorder/Logger

So this might well be a daft question. I’m a little unfamiliar with how HA logs/records data. I have an InfluxDB source setup into which I’d like to record EVERYTHING (I can control purging etc from within InfluxDB for this data), however I only want my HA instance DB (MariaDB) to record a couple of things (media player and device tracker) to save on used disk space…

My current setup is as follows:

logger:
  default: info
  logs:
    urllib3.connectionpool: critical

recorder:
  purge_keep_days: 7
  purge_interval: 1
  include:
    domains:
      - media_player
      - device_tracker

influxdb:
  host: !secret influxdb_host
  port: !secret influxdb_port
  username: !secret influxdb_username
  password: !secret influxdb_password
  database: !secret influxdb_database

Do I have this setup correctly to achieve my goals?

This looks good to me. I use similar setup but instead of include: for the recorder I use the exclude: option to ignore certain sensors which are logged in influxdb only.

Thanks. Im concerned because my influx db datasource in Grafana seems to be missing some sensors and they seem to be the most recent ones. Weirdly there is still data for the older existing sensors that is up to date so influx is clearly getting current data, just not from recently added sensors???

Check your home assistant log. It might show errors submitting the data to influxdb. You can try restarting HASS, if you haven’t yet.

solved it. annoyingly it would seem HA (or possibly Influx) likes to categorise sensor data into series that take the unit of measurement as a table item. my install was logging data all the time, I just hadn’t noticed it as it was squirrelled away in a random series!
thanks anyway