No data shown when querying influxdb

am new to Grafana. I have installed Grafana , Influx and Telegraf on Ubuntu host. All services are showing running to me as mentioned below , but when I am doing influx command on cli its showe me nothing . The output are mentioned below and thanks in advance for your suggestions.

admin01@Ubuntu-Grafana:~$ sudo service grafana-server status
[sudo] password for admin01:
● grafana-server.service - Grafana instance
Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; enabled; preset: enabled)
Active: active (running) since Fri 2024-12-13 10:18:04 CET; 1h 51min ago


admin01@Ubuntu-Grafana:~$ sudo service telegraf status
● telegraf.service - Telegraf
Loaded: loaded (/usr/lib/systemd/system/telegraf.service; enabled; preset: enabled)
Active: active (running) since Fri 2024-12-13 10:18:03 CET; 1h 51min ago
Docs: GitHub - influxdata/telegraf: Agent for collecting, processing, aggregating, and writing metrics, logs, and other arbitrary data.


admin01@Ubuntu-Grafana:~$ sudo service influxdb status
Warning: The unit file, source configuration file or drop-ins of influxdb.service changed on disk. Run ‘systemctl daemon-reload’ to reload units.
● influxdb.service - InfluxDB is an open-source, distributed, time series database
Loaded: loaded (/usr/lib/systemd/system/influxdb.service; bad; preset: enabled)
Active: active (running) since Fri 2024-12-13 10:18:04 CET; 1h 52min ago
Docs: InfluxDB OSS v2 Documentation


admin01@Ubuntu-Grafana:~$ influx
NAME:
influx - Influx Client

USAGE:
influx [command]

HINT: If you are looking for the InfluxQL shell from 1.x, run “influx v1 shell”

COMMANDS:
version Print the influx CLI version
write Write points to InfluxDB
bucket Bucket management commands
completion Generates completion scripts
query Execute a Flux query
config Config management commands
org, organization Organization management commands
delete Delete points from InfluxDB
user User management commands
task Task management commands
telegrafs List Telegraf configuration(s). Subcommands manage Telegraf configurations.
dashboards List Dashboard(s).
export Export existing resources as a template
secret Secret management commands
v1 InfluxDB v1 management commands
auth, authorization Authorization management commands
apply Apply a template to manage resources
stacks List stack(s) and associated templates. Subcommands manage stacks.
template Summarize the provided template
bucket-schema Bucket schema management commands
scripts Scripts management commands
ping Check the InfluxDB /health endpoint
setup Setup instance with initial user, org, bucket
backup Backup database
restore Restores a backup directory to InfluxDB
remote Remote connection management commands
replication Replication stream management commands
server-config Display server config
help, h Shows a list of commands or help for one command

GLOBAL OPTIONS:
–help, -h show help

Regards

Hi @uniquewaheed

Can you confirm (ideally link to) the exact version of InfluxDB that you installed on Ubuntu?

If you go to http://<ip-add-of-Ubuntu-machine>:8086, do you see a login screen?

Hi,

Yes , am using Ubuntu with InfluxDB v2.7.11 and have access to on port 8086.

Thanks

What is it you are trying to do with Influx CLI?

When you use just influx command without parameters, it shows you help on its usage, so it looks like it works as expected.

For example, if you want to delete some data, you can use the following command:

influx delete --org YOURORG --bucket YOURBUCKET  --start 2024-12-07T06:00:44.000Z   --stop 2024-12-07T06:01:35.000Z --token YOURTOKEN

Anyway, how is your question related to Grafana? Can you connect from Grafana to InfluxDB?