Data source
To have data to query, we must configure a data source. In our case, we'll add our Prometheus instance as the default data source. To do this, we need to indicate where the data source is located, any authentication/authorization details that are needed, and any additional data source-specific configuration.
There are two ways to configure a data source. One way is by adding a YAML file with the required configuration in the Grafana provisioning path, which is picked up by the service when starting up and is configured automatically. This is what we are doing in the test environment for this chapter, as it is the better solution for automated deployments. When connecting to the grafana instance in the test environment, you can ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access