Apigee Edge Private Cloud Monitoring can really be a dauting task. Apigee Supports JMX and you can use any of the JMX tools like JConsole to monitor system parameters. This community article provides insight on monitoring with Grafana, Influx and Telegraf.
Refer to the git project https://github.com/rajeshm7910/apigee-monitoring for all more details.
Influxdb is a time series database. This will hold events, system and application related monitoring data as time series.
Please refer https://docs.influxdata.com/influxdb/v1.5/introduction/installation/ for installing influxdb. We are supporting influxdb 1.2.2+.
Requirements:
In case you are using RHEL/CentOS, you can install with following commands:
$ curl -O https://dl.influxdata.com/influxdb/releases/influxdb-1.5.3.x86_64.rpm $ sudo yum localinstall influxdb-1.5.3.x86_64.rpm
Enable and start influxdb:
$ systemctl enable influxdb $ systemctl start influxdb
Once influxdb is installed, go to the influx terminal to create initial databases:
$ influx Connected to http://localhost:8086 version 1.5.3 InfluxDB shell version: 1.5.3 >
> SHOW databases name: databases name ---- _internal >
> CREATE database application > CREATE database system > CREATE database events > SHOW databases name: databases name ---- _internal system events application > exit
Grafana UI allows visual representation of events and metrics. In this case we will import some pre-built dashboards that will give some useful insights into Apigee.
Please refer to http://docs.grafana.org/installation/rpm/ for installing grafana. You can install grafana on management server node or any other nodes.
[grafana] name=grafana baseurl=https://packagecloud.io/grafana/stable/el/7/$basearch repo_gpgcheck=1 enabled=1 gpgcheck=1 gpgkey=https://packagecloud.io/gpg.key https://grafanarel.s3.amazonaws.com/RPM-GPG-KEY-grafana sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt
$ sudo yum install grafana
$ sudo systemctl daemon-reload $ sudo systemctl start grafana-server $ sudo systemctl status grafana-server
$ sudo systemctl enable grafana-server.service
Create 3 datasources : application-dc-1 , system-dc-1 and events-dc-1 and point them to application, system and events database of influx.
An example configuration looks like:
Application Data Source
Events Data Source
Import all the pre-built dashboards provided in GIT. You can also build your own dashboards. Upload the dashboard JSON files from the GIT repo at https://github.com/rajeshm7910/apigee-monitoring.
Telegraf is the collection agent that collects all metrics from all apigee components.
Install telegraf agent on all Apigee nodes which needs monitoring. This step installs telegraf from the Apigee repo, so it disables the influxdb repo, it it is configured:
$ sudo yum --disablerepo=influxdb install telegraf $ sudo systemctl start telegraf $ sudo systemctl enable telegraf $ sudo systemctl status telegraf
This needs to be configured in all nodes.
$ sudo systemctl restart telegraf
You can now browse the Grafana UI at http://grafanaIPorDNS:3000
Login Credentials:
Hurray!!! You have just setup basic monitoring.
I just followed all the above steps, I am able to monitor CPU, Memory ..etc but the real monitoring for apigee private cloud is not happening, i.e I am not able see policy errors,apigee errors ..etc in grafana. Can someone help me here.
Thanks in advance
This works with apigee-telegraf resolved from apigee third party library. Please check the version of telegraf
I have wrong rpm installed for telegraph. I removed the old rpm and downloaded telegraf rpm from apigee repository and got it resolved. Thanks for your help Rajesh.
Hi, Does this provides the JVM level monitoring dashboards with jolokia? In the previous beta version, grafana dashboards provided wholistic monitoring.
I'm also facing the same issue. After installing telegraf I'm not receiving any logs.
I used Telegraf 1.10.3 (git: HEAD 294bb666)
Should I need to change it?
Hi,
I have installed telegraph wget https://dl.influxdata.com/telegraf/releases/telegraf-1.13.4-1.x86_64.rpm
but still apigee private cloud monitoring is not showing up on grafana.
Please help on the same.
Thanks
Ritesh