Visualization

Once the Grafana server is up-and-running, you can access it using a web browser to port 3000. For example http://127.0.0.1:3000 where it would navigate to login page. Upon authentication, we have to add a data source through the UI/CLI.

The following screenshot shows adding data sources through the web UI:

Figure 7.28: Adding data sources through the web UI

Through the CLI, we have to prepare a JSON file with all parameters. Then, we can post to the Grafana API, refer about docs for troubleshooting.

The following code shows adding a data source through the API:

cat > /tmp/grafanaDataSource.json <<EOF{  "id": 1,  "orgId": 1, "name": ...

Get Mastering Apache Cassandra 3.x - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.