I am a newbie in monitoring space and i am trying use Icinga2 for my recent project.
I am able to receive event data using the /v1/events end point.
Now i also want to get the metric data ( performance data) of each and every service on each and every hosts.
Through some googling i found that databases like InfluxDB , graphite, pnp are used as backend to store metrics from which we can always make a rest call to retrieve value.
But i am trying to avoid installing an additional feature to Icinga2.
I am want to get the metric data from the existing REST apis itself.
What i tried so far:
I tried reading the performance data which is returned as part of the Event REST call.
curl -k -s -u root:icinga -H 'Accept: application/json' -X POST 'https://localhost:5665/v1/events?queue=michi&types=CheckResult&filter=check_result.performance_data'
Result of this call returns also the performance data.
But is there any other way or any other combination of existing APIs to get the complete set of metric data available in icinga2 for all hosts and services?
I am just trying to avoid installing additional features for Icinga2.
Please share your insights on this.
Would appreciate any kind of response.