Is it possible to create a dashboard and graphs to the user by using API instead of a user creating them from UI?
Yes, this is possible; but you’ll need to reverse engineering the API by looking at the developer tools from the UI.
However … with InfluxDB 2, we’ve built this in!
There’s a new
pkg subcommand that allows you to define daahboards (and other stuff) as YAML and apply it from CI / CLI