Edge for Private Cloud v. 4.17.01
System requirements
You must install apigee-telegraf on all the Edge nodes to collect dashboard data. Therefore, the system requirements for apigee-telegraf are the same as for the Edge node on which you are installing it.
You can install apigee-grafana on a separate node, or reuse one of the existing Edge nodes such as the Management Server or Edge UI node.
For apigee-influxdb, you can install it on an existing Edge node, such as the Management Server node or the Edge UI node, with no change to the system requirements.
If you decide to install apigee-influxdb on its own node for performance reasons, then the node should have the following requirements:
- 2 core CPU
- 4 GB RAM
-
250GB disk space (monitoring data purged after 1 month)
- 1000 or more IOPS
See the InfluxData doc for more information.
Port requirements for apigee-influxdb
Ports 8086 and 8183 must be open on the apigee-influxdb data nodes for access by the node running apigee-grafana and apigee-telegraf.
Config files for installing dashboard components
To install the apigee-telegraf and apigee-grafana components, you pass a config file to the apigee-service utility. Store these files in a directory accessible by the 'apigee' user, such as /opt/apigee/customer/application, and make them owned by the 'apigee' user.
Configuration parameters for apigee-telegraf
Set these properties in a text file that you pass to the apigee-telegraf setup command. For example, set them in a text file named sa_telegraf.txt:
Property |
Description |
---|---|
INFLUXDB_URL |
Specify the URL of the apigee-influxdb node, including port 8086. For example: http://192.168.0.1:8086 |
Configuration Parameters for apigee-grafana
Set these properties in a text file that you pass to the apigee-grafana setup command. For example, set them in a text file named sa_grafana.txt:
Property |
Description |
---|---|
INFLUXDB_HOST |
Specify the IP address or DNS name of the InfluxDB node. For Example: 192.168.0.1 |
INFLUXDB_PORT |
InfluxDB API port used by Grafana datasource. Specify 8086. |
GRAFANA_USERNAME |
Grafana username for logging in to the dashboard UI. |
GRAFANA_PASSWORD |
Grafana password for logging in to the dashboard UI. |
Installation instructions
Follow the instructions below to install the dashboard components in this sequence:
- apigee-influxdb (on a central node)
- apigee-telegraf (on each node)
- apigee-grafana (on a central server)
Install apigee-influxdb on a single Edge node or standalone node
On a standalone node, or an Edge node running the Management Server or Edge UI:
- Install apigee-influxdb:
> /opt/apigee/apigee-service/bin/apigee-service apigee-influxdb install - Configure the apigee-influxdb database:
> /opt/apigee/apigee-service/bin/apigee-service apigee-influxdb setup - Start apigee-influxdb:
> /opt/apigee/apigee-service/bin/apigee-service apigee-influxdb start
Install apigee-telegraf on every Edge node
On every node of your Edge installation:
- On your first Edge node, install apigee-telegraf:
> /opt/apigee/apigee-service/bin/apigee-service apigee-telegraf install - Create a config file for apigee-telegraf. Typically, you store this
file a directory accessible by the 'apigee' user, such as /opt/apigee/customer/application,
and make it owned by the 'apigee' user.
Set the following property in the file to specify the URL of the apigee-influxdb node, including port 8086:
INFLUXDB_URL=http://influx_IP:8086 - Change the owner to 'apigee':
> chown apigee:apigee /opt/apigee/customer/application/sa_telegraf.txt - Configure apigee-telegraf:
> /opt/apigee/apigee-service/bin/apigee-service apigee-telegraf setup -f /opt/apigee/customer/application/sa_telegraf.txt - Restart apigee-telegraf:
> /opt/apigee/apigee-service/bin/apigee-service apigee-telegraf restart - Repeat this process on all Edge nodes.
Install apigee-grafana on a single Edge node
On a single node of your Edge installation, such as the Edge UI node:
- On your first Edge node, install apigee-grafana:
> /opt/apigee/apigee-service/bin/apigee-service apigee-grafana install - Create a config file for apigee-grafana. Typically, you store this
file in a directory accessible by the 'apigee' user, such as /opt/apigee/customer/application,
and make it owned by the 'apigee' user.
Set the following properties in the file. These properties are described above:
INFLUXDB_HOST=192.168.56.101
INFLUXDB_PORT=8086
GRAFANA_USERNAME=admin
GRAFANA_PASSWORD=admin - Change the owner to 'apigee':
> chown apigee:apigee /opt/apigee/customer/application/sa_grafana.txt - Configure apigee-grafana
using the config file:
> /opt/apigee/apigee-service/bin/apigee-service apigee-grafana setup -f /opt/apigee/customer/application/sa_grafana.txt - Restart apigee-grafana:
> /opt/apigee/apigee-service/bin/apigee-service apigee-grafana restart
To access the dashboard, open the following URL in a browser:
http://grafana_IP_or_DNS:3000
Log in by using the credentials you specified in the config file for apigee-grafana. In the example shown above the username/password is admin/admin.
Troubleshooting installation
If you do not see data appearing in the dashboard, use the following procedure to troubleshoot your installation:
- To ensure apigee-telegraf
is collecting the data
- Run the apigee-service apigee-telegraf setup, it’s idempotent, check for errors, missing dependencies and resolve them.
- Restart apigee-telegraf and check /opt/apigee/var/log/apigee-telegraf/apigee-telegraf.log for any errors
- To ensure apigee-influxdb
is receiving data:
- Make sure following TCP ports are open on apigee-influxdb data nodes: 8086 and 8183.
- Use the following URL to open the influxdb UI in a browser:
http://influxdb_IP_or_DNS:8183- In the Query field, enter "show databases".
Ensure that the following databases were created: system, application, events, _internal. - In the Query field, enter "show servers”.
Ensure that you see the apigee-influxdb nodes are listed.
- In the Query field, enter "show databases".
- Check the data sources to the dashboard:
- Select Data Sources in the main menu. You should see icons for three data sources displayed.
- For each data source, select the icon.
- In the details page for the data source, select the Save & Test button.
- If the data source is configured correctly, you should see a message in the form:
Success
Data source is working
Updating the Beta monitoring dashboard
If you installed the Beta version of the Apigee Monitoring Dashboard in 4.16.09, you can update it to the Beta version for 4.17.01.
You must update the dashboard components in the following order:
- apigee-influxdb
- apigee-telegraf on each node
- apigee-grafana
To update the Beta monitoring dashboard:
- Update Edge to 4.17.01 as described at Update Apigee Edge 4.16.01/4.16.05 to 4.17.01 and Update Apigee Edge 4.16.09 to 4.17.01.
- Update apigee-influxdb:
> /opt/apigee/apigee-service/bin/apigee-service apigee-influxdb update
> /opt/apigee/apigee-service/bin/apigee-service apigee-influxdb setup
> /opt/apigee/apigee-service/bin/apigee-service apigee-influxdb restart - Update apigee-telegraf on
node 1:
> /opt/apigee/apigee-service/bin/apigee-service apigee-telegraf update
> /opt/apigee/apigee-service/bin/apigee-service apigee-telegraf setup -f /opt/apigee/customer/application/sa_telegraf.txt
> /opt/apigee/apigee-service/bin/apigee-service apigee-telegraf restart - Repeat step 3 for every node.
- Update apigee-grafana:
> /opt/apigee/apigee-service/bin/apigee-service apigee-grafana update
> /opt/apigee/apigee-service/bin/apigee-service apigee-grafana setup -f /opt/apigee/customer/application/sa_grafana.txt
> /opt/apigee/apigee-service/bin/apigee-service apigee-grafana restart