Skip to content

Commit

Permalink
Merge branch 'main' into ext-service-golden-metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-berg authored Jan 13, 2025
2 parents 2e5b712 + f68cbaa commit e6c675f
Show file tree
Hide file tree
Showing 57 changed files with 3,199 additions and 86 deletions.
12 changes: 12 additions & 0 deletions docs/entities/synthesis.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,18 @@ synthesis:

You can also change the name of the tag to another value, rather than using the name in the attribute. In general, we suggest not to use this configuration unless you are trying to use more standard namings, since sometimes it's difficult for the user to see the difference between entity tags and telemetry attributes, and changing the names could cause even more confusion.

This is the relevant syntax:
```yaml
synthesis:
rules:
- identifier: someIdAttribute
name: someNameAttribute
tags:
originalAttributeName:
entityTagNames: [desiredTagName1, desiredTagName2]
```
The above example will result in an entity having two tags, `desiredTagName1` and `desiredTagName2`, with the value present in the `originalAttributeName` attribute from the processed data point.

A good use case for this feature is `CONTAINER`: A container has different sources (docker, kubernetes, etc.), and we rename the tags to use a standard naming and a "per source" name.

```yaml
Expand Down
2 changes: 1 addition & 1 deletion entity-types/apm-application/golden_metrics.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
responseTimeMs:
title: Response time (ms)
title: Response time
unit: MS
query:
select: average(apm.service.transaction.duration) * 1000 AS 'Response time (ms)'
Expand Down
144 changes: 144 additions & 0 deletions entity-types/autoflows-workflow/dashboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
{
"name": "Autoflow Overview",
"description": null,
"pages": [
{
"name": "Autoflow Overview",
"description": null,
"widgets": [
{
"title": "Workflows Started",
"layout": {
"column": 1,
"row": 1,
"width": 6,
"height": 4
},
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT COUNT(*) FROM Log where autoflow.runId IS NOT NULL \nFACET autoflow.name\nWHERE message like '[INFO] - Workflow: % has started'\nSINCE 1 hour ago limit max TIMESERIES auto"
}
],
"platformOptions": {
"ignoreTimeRange": false
},
"thresholds": [
{
"isLabelVisible": true
}
],
"yAxisLeft": {
"zero": true
},
"yAxisRight": {
"zero": true
}
}
},
{
"title": "Steps Started",
"layout": {
"column": 7,
"row": 1,
"width": 6,
"height": 4
},
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT COUNT(*) as 'Steps' \nFROM Log where autoflow.runId IS NOT NULL \nWHERE message LIKE '[INFO] - Workflow: % Step % has started'\nSINCE 1 hour AGO LIMIT MAX TIMESERIES AUTO"
}
],
"platformOptions": {
"ignoreTimeRange": false
},
"thresholds": [
{
"isLabelVisible": true
}
],
"yAxisLeft": {
"zero": true
},
"yAxisRight": {
"zero": true
}
}
},
{
"title": "Recent Autoflow Run",
"layout": {
"column": 1,
"row": 5,
"width": 6,
"height": 4
},
"visualization": {
"id": "viz.table"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT *\nFROM Log\nWHERE autoflow.runId IS NOT null\nSINCE 10 minutes AGO"
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
},
{
"title": "Audit Events",
"layout": {
"column": 7,
"row": 5,
"width": 6,
"height": 4
},
"visualization": {
"id": "viz.table"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM NrAuditEvent SELECT * SINCE 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
}
]
}
]
}
4 changes: 3 additions & 1 deletion entity-types/autoflows-workflow/definition.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
domain: AUTOFLOWS
type: WORKFLOW

dashboardTemplates:
newRelic:
template: dashboard.json
configuration:
entityExpirationTime: MANUAL
alertable: true
Loading

0 comments on commit e6c675f

Please sign in to comment.