Edge for Private Cloud v4.18.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 |
---|---|
|
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 |
---|---|
|
Specify the IP address or DNS name of the InfluxDB node. For Example: 192.168.0.1 |
|
InfluxDB API port used by Grafana datasource. Specify 8086. |
|
Grafana username for logging in to the dashboard UI. |
|
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
namedsa_telegraf.txt
. 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 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
namedsa_grafana.txt
. 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
- Run the
- 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". Ensure that the following databases
were created:
- Make sure following TCP ports are open on
- 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
Use one of the two procedures below based on the Edge version that you are upgrading from:
- 4.16.09 and 4.17.0x use the same procedure
- 4.16.05 requires you to uninstall
apigee-collectd
as part of the update.
Update from version 4.16.09 or 4.17.0x
If you installed the Beta version of the Apigee Monitoring Dashboard in 4.16.09 or 4.17.0x you can update it to the Beta version for 4.18.01.
To update the Beta monitoring dashboard:
- Update Edge to 4.18.01 as described at Update Apigee Edge 4.17.01/4.17.05 to 4.17.09, Update Apigee Edge 4.16.09 to 4.17.09, and Update Apigee Edge 4.16.01/4.16.05 to 4.17.09.
- Update
apigee-influxdb
on the Management Server node:> /opt/apigee/apigee-setup/bin/update.sh -c pp -f configfile
where configFile is the config file you used to install
apigee-influx
.If you also installed
apigee-grafana
on the Management Server node, then this step also updatesapigee-grafana
. Otherwise, updateapigee-granfana
as shown in the following step. - If you did not install
apigee-grafana
on the Management Server node, updateapigee-grafana
on the node where you installed it:> /opt/apigee/apigee-setup/bin/update.sh -c pp -f configfile
- 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 configFile > /opt/apigee/apigee-service/bin/apigee-service apigee-telegraf restart
- Repeat step 4 for every node.
Update from version 4.16.05
The 4.16.05 version of the dashboard used apigee-collectd
instead of
apigee-telegraf
. As part of updating to 4.18.01 you uninstall
apigee-collectd
and install apigee-telegraf
.
To update the Beta monitoring dashboard:
- Update Edge to 4.18.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
on the Management Server node:> /opt/apigee/apigee-setup/bin/update.sh -c pp -f configfile
where configFile is the config file you used to install
apigee-influx
.If you also installed
apigee-grafana
on the Management Server node, then this step also updatesapigee-grafana
. Otherwise, updateapigee-granfana
as shown in the following step. - If you did not install
apigee-grafana
on the Management Server node, updateapigee-grafana
on the node where you installed it:> /opt/apigee/apigee-setup/bin/update.sh -c pp -f configfile
- Install
apigee-telegraf
on node 1:> /opt/apigee/apigee-service/bin/apigee-service apigee-collectd stop > /opt/apigee/apigee-service/bin/apigee-service apigee-telegraf install > /opt/apigee/apigee-service/bin/apigee-service apigee-telegraf setup -f configFile > /opt/apigee/apigee-service/bin/apigee-service apigee-telegraf restart > /opt/apigee/apigee-service/bin/apigee-service apigee-collectd uninstall
- Repeat step 4 for every node.