Code Monkey home page Code Monkey logo

akamai-insights-datasource's Introduction

Akamai Insights Datasource Plugin

Use Akamai Insights Datasource Plugin for Grafana to visualize and observe reporting data. The plugin gets data from the Reporting API v2.

Prerequisites

Before using Akamai Insights Datasource Plugin, you need to:

  • Install Grafana 7.0 or newer
  • Get Akamai API credentials for the Reporting API v2.

Install Grafana 7.0 or newer

Note that your package manager may install an older version, so follow the official documentation on installing Grafana for details of the Grafana installation process for various operation systems.

Get Akamai API credentials

To use the Reporting API v2, you need to create an API client with authentication credentials. See how to get started.

To create your authentication credentials for the Reporting API:

  • Go to Control Center
  • Navigate to the Identity & Access page.
  • Under Users and API Clients, click Create API client.

New API Client

  • Click Advanced.
  • Choose Select APIs.
  • Select Reporting API and READ-WRITE access.

Reporting API

  • Click Create API client.
  • Copy the credentials (client_secret, host, access_token, and client token). You’ll later enter them into your Akamai Insights Datasource Plugin configuration.

Credentials

Read more about creating authentication credentials. To learn how to apply authentication in a variety of programming languages when using Akamai APIs, refer to Authenticate with EdgeGrid.

Installing this plugin on a local Grafana

Linux OSs (Debian, Ubuntu, CentOS, Fedora, OpenSuse)

Configuration file: /etc/grafana/grafana.ini
Plugin directory: /var/lib/grafana/plugins
Log directory: /var/log/grafana/

  • You may have to use 'sudo' to edit the configuration file or to view the log file.
  • You may have to change permissons on the 'plugin' directory, for example: sudo chmod 777 /var/lib/grafana/plugins
  1. Under the plugin directory (/var/lib/grafana/plugins), create a directory called 'akamai-insights-datasource-plugin'.
  2. From the dist directory, copy these to /var/lib/grafana/plugins/akamai-insights-datasource-plugin:
    • LICENSE
    • README.md
    • img (directory and its contents)
    • module.js
    • module.js.LICENSE.txt
    • module.js.map
    • plugin.json
  3. From the unzipped archive, copy one of these (as appropriate for your hardware) to /var/lib/grafana/plugins/akamai-insights-datasource-plugin:
    • gpx_akamai-insights-datasource-plugin_linux_amd64
    • gpx_akamai-insights-datasource-plugin_linux_arm
    • gpx_akamai-insights-datasource-plugin_linux_arm64

macOS

Configuration file: /usr/local/etc/grafana/grafana.ini
Plugin directory: /usr/local/var/lib/grafana/plugins
Log directory: /usr/local/var/log/grafana/

  1. Under the plugin directory (/usr/local/var/lib/grafana/plugins), create a directory called 'akamai-insights-datasource-plugin'.
  2. From the unzipped archive, copy these to /usr/local/var/lib/grafana/plugins/akamai-insights-datasource-plugin:
    • LICENSE
    • README.md
    • img (directory and its contents)
    • module.js
    • module.js.LICENSE.txt
    • module.js.map
    • plugin.json
  3. From the unzipped archive, copy this to /var/lib/grafana/plugins/akamai-insights-datasource-plugin:
    • gpx_akamai-insights-datasource-plugin_darwin_amd64

Windows

Grafana can be installed into any directory (install_dir).

Configuration file: install_dir\conf
Plugin directory: install_dir\data\plugins
Log directory: install_dir\data\log

  1. Under the plugin directory (install_dir\data\plugins), create a directory called 'akamai-insights-datasource-plugin'.

  2. From the unzipped archive, copy these to install_dir\data\plugins\akamai-insights-datasource-plugin:

    • LICENSE
    • README.md
    • img (directory and its contents)
    • module.js
    • module.js.LICENSE.txt
    • module.js.map
    • plugin.json
  3. From the unzipped archive, copy this to install_dir\data\plugins\akamai-insights-datasource-plugin:

    • gpx_akamai-insights-datasource-plugin_windows_amd64.exe

Configure Grafana

Read Configuration for configuration directions for each operating system.

  1. Open the configuration file in a text editor.
  2. Under the [paths] section header, uncomment plugins by removing the semicolon (;).
  3. To the right of plugins =, insert the complete path to the plugin directory. NOTE: The plugin directory differs by operating system. For example:
[paths]
# Directory where grafana will automatically scan and look for plugins
plugins = /var/lib/grafana/plugins
  1. Under the [plugins] section header, uncomment "allow_loading_unsigned_plugins".
  2. To the right of "allow_loading_unsigned_plugins =", add "akamai-data-plugin" (without quotes). For example:
[plugins]
# Enter a comma-separated list of plugin identifiers to identify plugins that are allowed to be loaded even if they lack a valid signature.
allow_loading_unsigned_plugins = akamai-data-plugin
  1. Restart Grafana See how to Restart Grafana for each operating system. Under the log directory for your operating system, in "grafana.log", you should see something similar to:
t=2021-03-24T10:31:09-0400 lvl=info msg="Registering plugin" logger=plugins id=akamai-data-plugin

See Troubleshooting for troubleshooting tips.

Configure Akamai Insights Datasource Plugin

  1. Log in to Grafana. The default username/password are: admin/admin.
  2. Select Configuration (gear icon) -> Data Sources -> Akamai Insights Datasource Plugin
  3. In the data source configuration panel, enter your Akamai API credentials. Data Source
  4. Save your changes

You can now use the plugin.

Use Akamai Insights Datasource Plugin

  1. In Grafana, create a new dashboard and add a visualization.
  2. Select a previously created data source.
  3. In the Select report data source field, choose a report. You can use all reports, supported by the Reporting API v2.
  4. Create your report’s query. Select metrics, dimensions, filters, and SortBys for your report. At startup, the plugin loads the default metrics and dimensions for a given report. See the report documentation under Available reports for more information. Form
  5. Click Apply.
  6. Create additional queries, as needed.

You can now monitor your report data.

Visualization

Use query-based variables

The plugin lets you use variables of the Query type.

  1. Add a variable and set its query options. The first dimension you select in the form is then used as the variable value in Grafana.
  2. Use the created variable in your visualization queries. Variable

akamai-insights-datasource's People

Contributors

mikezuber avatar ppozniak-akamai avatar mmoncale avatar

Watchers

Ravi Rao avatar Alexis Tosteson avatar Mike Elissen avatar

akamai-insights-datasource's Issues

Please add this to Grafana community plugins

As Akamai's customer, we would like to use this plugin.
However, we face issue as Grafana cloud does not allow us to add unsigned/private plugins.

Can we have this plugin on Grafana plugins section?

Correction in README: Incorrect Plugin Configuration Directive

Hello,

I noticed an error in the documentation related to plugin configuration. The README currently instructs users to set:
allow_loading_unsigned_plugins = akamai-data-plugin
However, this configuration is incorrect. The correct setting should be:
allow_loading_unsigned_plugins = akamai-insights-datasource

Using the incorrect directive may prevent the plugin from loading properly. Please update the documentation to reflect this correction.

Thank you for your attention to this matter!

Best regards,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.