Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Corrected links that should have been relative instead of absolute.

To

...

 

 

  Ask ranjit

 

  1. Enter url  of the grafana in browser
  2. Select the dashboard to view resource.
  3. You can also import customized dashboard to monitor Adpetia application matrices.
  4. Steps (Ranjit)

 

Creating a Prometheus data source

To create a Prometheus data source in Grafana:

...

view the application metrices dashboard, you need to configure the data source in Grafana. In this case, Prometheus is the data source. 

Configuring the data source in Grafana

Follow the instructions given below to configure the data source.

  1. Log in to Grafana and configure the data source.

    Info
    What would be the Grafana URL depends upon how you have exposed Grafana.


  2. Click Configuration >> Data Sources.
    Image Added

  3. Click Add data source.
  4. On the Add data source page, select Prometheus as the type.
  5. Set the

...

  1. Prometheus server URL (

...

  1. For example, http://

...

  1. <Hostname>:

...

  1. <Port>/).

...

  1. Configure the other data source settings

...

  1. based on your requirement (For example,

...

  1. selecting the

...

  1. authentication method).

...

  1. Click Save &

...

  1. test to save the new data source.

Creating a Prometheus graph

Follow the standard way of adding a new Grafana graph. Then:

  1. Click the graph title, then click "Edit".
  2. Under the "Metrics" tab, select your Prometheus data source (bottom right).
  3. Enter any Prometheus expression into the "Query" field, while using the "Metric" field to lookup metrics via autocompletion.
  4. To format the legend names of time series, use the "Legend format" input. For example, to show only the method and status labels of a returned query result, separated by a dash, you could use the legend format string {{method}} - {{status}}.
  5. Tune other graph settings until you have a working graph.

The following shows an example Prometheus graph configuration:Prometheus graph creationImage Removed

In Grafana 7.2 and later, the $__rate_interval variable is recommended for use in the rateand increase functions.

Importing pre-built dashboards from Grafana.com

Grafana.com maintains a collection of shared dashboards which can be downloaded and used with standalone instances of Grafana. Use the Grafana.com "Filter" option to browse dashboards for the "Prometheus" data source only.

You must currently manually edit the downloaded JSON files and correct the datasource: entries to reflect the Grafana data source name which you chose for your Prometheus server. Use the "Dashboards" → "Home" → "Import" option to import the edited dashboard file into your Grafana install.

...

borderStylesolid
titleYou may be interested in...

...

Anchor
view dashboards
view dashboards
Once you have configured the data source, you can view the application metrices dashboards provided by Kubernetes.

To view the dashboards:

  1. Click Search dashboards in the left panel.
    Image Added

    The list of all the available dashboards appear under different heads, for example, StarredRecent, etc. 

    Tip
    You can also search for a specific dashboard by entering the name of the dashboard in the search bar.


    Image Added

  2. Click the required dashboard on the list to view it. 

    The following screenshot is an example that shows the General/Kubernetes/Compute Resources/Cluster dashboard with relevant metrices.
    Image Added

Importing and viewing the custom Grafana dashboard

Adeptia provides a few dashboards in JSON format that you can import to view the application metrices. You can also customize these JSON files based on your requirement. Follow the steps given below to import the dashboard.

  1. Download the JSON file available here.
  2. Log in to Grafana.
  3. Go to Dashboards >> Browse.
    Image Added

  4. Click Import.
  5. On the Import page, click Upload JSON file to browse to and select the JSON file you downloaded in step 1.
  6. In the Options section, do the followings to import the dashboard.
    1. In the Name field, enter a name for the dashboard.
    2. In the Folder field, select a folder where you want to place the uploaded JSON file.
    3. In the Unique identifier (UID) field, provide a unique identifier (if required) to the dashboard.
    4. In the field next to Unique identifier (UID), select Prometheus as the data source.
    5. Click Import.
  7. Follow the steps given here to view the imported dashboard.

    The following screenshot is an example that shows the Adeptia Graphs/Kubernetes Nodes dashboard with relevant metrices.
    Image Added

    The following screenshot is an example that shows the Adeptia Graphs/Kubernetes Persistent Volumes usage dashboard with relevant metrices.
    Image Added