Visualization
- DC/OS Grafana
- DC/OS Prometheus Expression Browser
DC/OS Grafana :
DC/OS Grafana supports Prometheus for dashboarding and querying.
Prerequisite
- Install Grafana from either the DC/OS catalogue or the CLI.
- Install Prometheus service either from the DC/OS catalogue or the CLI.
- Ensure that your Prometheus service and Grafana service are up and running before you proceed further.
Accessing Grafana and Creating Prometheus Data Source:
Create a Prometheus data source:
-
Navigate to Grafana site with
http://<public ip of your cluster >:13000
-
Log in with default login “admin” / “admin”.
-
Click on the Grafana logo to open the sidebar menu.
-
Click on “Data Sources” in the sidebar.
-
Click on “Add New”.
-
Select “Prometheus” as the type.
-
Set the appropriate Prometheus server end point (for example, http://prometheus.prometheus.14lb.thisdcos.directory:9090)
-
Adjust other data source settings as desired (for example, turning the proxy access off).
-
Click “Add” to save the new data source.
Creating a Prometheus graph
- Click on Home -> Dashboard-> New Dashboard -> Panel Title -> Edit. Change the Panel Title and description.
- Under the “Metrics” tab, select your Prometheus data source (bottom right).
- Enter any Prometheus expression into the “Query” field, while using the “Metric” field to lookup metrics via autocompletion.
- To format the legend names of time series, use the “Legend format” input.
Prometheus Expression Browser
The DC/OS Prometheus Service has an expression browser that may be accessed from outside the cluster. The expression browser is available at /graph
on the Prometheus server, allowing you to enter any expression and see its result, either in a table or graphed over time.
This is primarily useful for ad-hoc queries and debugging. The Prometheus expression browser should be accessed via Edge-LB.