def influxdb_config(influxdb):
    """
    Returns the InfluxDB relation data as dict to use in config.

    :param influxdb: InfluxDB relation data object
    :type influxdb: InfluxdbClient
    :returns: dict with InfluxDB configuration options
    """
    return {
        "host": influxdb.hostname(),
        "port": influxdb.port(),
        "username": influxdb.user(),
        "password": influxdb.password(),
    }