Integrating Prometheus and Grafana
So far, you have learned about the concepts surrounding Prometheus and the ways to get metrics into it. Now, let’s learn how to add the Prometheus data source and perform queries from Grafana.
Once you have a running instance of Prometheus, you can add the data source in Grafana, as shown in the following screenshot:
Once you’ve added the data source, you will have to configure it so that it can access your Prometheus instance.
Let’s look at each of the configuration settings:
- Name: Enter the name that you want to use to reference this data source.
- Default: Select it if you want to set this data source as the default.
- URL: The URL to access Prometheus.
- Access: Here, you must select the server option (default) to be able to access the Prometheus server.
- Basic Auth: Select this if you want to use basic authentication (user...