forked from pivotal-cf/docs-new-relic-nozzle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
using.html.md.erb
56 lines (38 loc) · 2.95 KB
/
using.html.md.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
title: Using New Relic Nozzle for VMware Tanzu
owner: Partners
---
This topic describes how to use New Relic Nozzle for VMware Tanzu.
## <a id='using'></a> Using New Relic Nozzle for VMware Tanzu
Metrics and events the VMware Tanzu Loggregator Firehose collects are visualized in dashboards in New Relic Insights. These dashboards allow you to filter the data by various metrics.
For example, in the **Container Metrics** dashboard, you can filter the data by **CF Origins**, **Jobs**, and **IP address**. Then you can select an application ID to narrow down to the data coming only from one application. Furthermore, if you would like to see the performance of one application container, you can select one of the containers by clicking on the container index, filtering the data in the dashboard, and drilling down to the data for only one application container.
## <a id='insights-queries'></a> Sample Queries
**Multiple Event types** are now used to store Firehose events, including **PCFCapacity, PCFContainerMetric, PCFCounterEvent, PCFHttpStartStop, PCFLogMessage, and PCFValueMetric**. The following are some NRQL strings that can be used to extract events and metrics:
```
v1.x:
select count(*) from PcfFirehoseEvent since 1 day ago facet FirehoseEventType
v2.x+:
select count(*) from PCFContainerMetric since 1 day ago
select count(*) from PCFLogMessage since 1 day ago
v1.x:
select count(*) from PcfFirehoseEvent since 1 day ago facet job timeseries
v2.x+:
SELECT count(*) from PCFContainerMetric since 1 day ago facet pcf.job timeseries
v1.x:
select count(*) from PcfFirehoseEvent where job = 'diego_cell' since 1 day ago facet origin timeseries
v2.x+:
SELECT count(*) from PCFValueMetric where pcf.job = 'diego_cell' facet pcf.origin since 1 day ago timeseries
v1.x:
select average(containerMetricCpuPercentage) from PcfFirehoseEvent facet containerMetricApplicationId timeseries
v2.x+:
select average(metric.sum/metric.samples.count) from PCFContainerMetric where metric.name = 'app.cpu' facet app.id timeseries
v1.x:
select count(*) from PcfFirehoseEvent where FirehoseEventType = 'HttpStartStop' facet httpStatusCode
v2.x+:
select count(*) from PCFHttpStartStop facet http.status
```
Events from all PCF deployments end up in **PCFCapacity, PCFContainerMetric, PCFCounterEvent, PCFHttpStartStop, PCFLogMessage, and PCFValueMetric**. If you collect events from multiple PCF environments, you can use **pcf.domain** and **pcf.IP** metrics to distunguish between events from different PCF deploments (either in a **WHERE** clause or by **FACET**ing the events by **pcf.domain**).
## <a id='alerts'></a> New Relic Alerts
[NRQL alert conditions](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/create-alert-conditions-nrql-queries) can be configured to alert on data from the New Relic Nozzle.
## <a id='insights-dashboards'></a> Obtaining Pre-Built Dashboards
Contact your New Relic representative to import pre-built nozzle dashboards to your New Relic account.