New Relic

New Relic é uma plataforma de observabilidade para monitorar desempenho de aplicações, infraestrutura, logs, traces e mudanças com impacto no negócio em seus sistemas. Ela centraliza a telemetria no NRDB e expõe esses dados pelo NerdGraph, a API GraphQL do New Relic.

Com o New Relic, você pode:

  • Consultar telemetria com NRQL: Executar NRQL contra os dados da conta para inspecionar saúde do serviço, uso, erros, latência e eventos personalizados.
  • Encontrar entidades monitoradas: Pesquisar serviços, aplicações, hosts e outros recursos monitorados por nome, tipo, tags, estado de alerta ou status de reporting.
  • Obter detalhes da entidade: Resolver um GUID de entidade em metadados básicos para etapas posteriores do fluxo de trabalho.
  • Registrar mudanças de deployment: Criar eventos de rastreamento de mudanças de deployment com versão, changelog, commit, links de build, group IDs e contexto do usuário.

A integração New Relic do Zoen permite que agentes tragam sinais de observabilidade de produção para os fluxos de trabalho e anotem releases ou mudanças operacionais diretamente pela automação. Use-a para resumir a saúde ao vivo do serviço, rotear fluxos de incidentes a partir de buscas de entidades ou marcar deployments para que os charts do New Relic correlacionem mudanças de desempenho com a atividade de release.

Usage Instructions

Integrate New Relic into workflows. Run NRQL queries, search monitored entities, fetch entity details, and record deployment change events.

Actions

new_relic_nrql_query

Run a NRQL query against a New Relic account using NerdGraph.

Input

ParameterTypeRequiredDescription
apiKeystringYesNew Relic user API key for NerdGraph
regionstringNoNew Relic data center region: us or eu
accountIdnumberYesNew Relic account ID to query
nrqlstringYesNRQL query to execute
timeoutnumberNoOptional query timeout in seconds

Output

ParameterTypeDescription
resultsarrayNRQL result rows. Row fields depend on the query projection.
resultCountnumberNumber of NRQL result rows returned

new_relic_search_entities

Search New Relic entities by name, GUID, domain type, tags, or reporting state.

Input

ParameterTypeRequiredDescription
apiKeystringYesNew Relic user API key for NerdGraph
regionstringNoNew Relic data center region: us or eu
querystringYesEntity search query, for example: name like "api" or domainType = "APM-APPLICATION"
cursorstringNoPagination cursor from a previous entity search

Output

ParameterTypeDescription
countnumberTotal number of entities matching the query
querystringEntity search query New Relic executed
entitiesarrayMatching New Relic entities
guidstringEntity GUID
namestringEntity name
entityTypestringEntity type
domainstringEntity domain, e.g. APM, INFRA
reportingbooleanWhether the entity is currently reporting data
alertSeveritystringCurrent alert severity for the entity
tagsarrayEntity tags
keystringTag key
valuesarrayTag values
nextCursorstringCursor for the next page of results

new_relic_get_entity

Fetch a New Relic entity by GUID.

Input

ParameterTypeRequiredDescription
apiKeystringYesNew Relic user API key for NerdGraph
regionstringNoNew Relic data center region: us or eu
guidstringYesEntity GUID

Output

ParameterTypeDescription
entityobjectNew Relic entity details
guidstringEntity GUID
namestringEntity name
entityTypestringEntity type
domainstringEntity domain, e.g. APM, INFRA
reportingbooleanWhether the entity is currently reporting data
alertSeveritystringCurrent alert severity for the entity
tagsarrayEntity tags
keystringTag key
valuesarrayTag values

new_relic_create_deployment_event

Record a deployment change event in New Relic change tracking.

Input

ParameterTypeRequiredDescription
apiKeystringYesNew Relic user API key for NerdGraph
regionstringNoNew Relic data center region: us or eu
entityGuidstringYesGUID of the entity associated with the deployment
versionstringYesDeployment version, release name, or commit SHA
shortDescriptionstringNoShort description of the deployment
descriptionstringNoLonger deployment description
changelogstringNoDeployment changelog text or URL
commitstringNoCommit SHA or identifier associated with the deployment
deepLinkstringNoURL to the deployment, build, or release details
userstringNoUser or automation that performed the deployment
groupIdstringNoOptional group ID to correlate related changes
customAttributesjsonNoCustom change event metadata as key-value pairs with string, number, or boolean values
deploymentTypestringNoDeployment type: basic, blue green, canary, rolling, or shadow
timestampnumberNoEvent timestamp in milliseconds since Unix epoch

Output

ParameterTypeDescription
eventobjectCreated New Relic change tracking event
changeTrackingIdstringNew Relic change tracking ID
customAttributesjsonCustom attributes on the change tracking event
categorystringChange category
categoryAndTypestringCombined category and type
typestringChange type
shortDescriptionstringShort change description
descriptionstringChange description
timestampnumberChange timestamp in milliseconds
userstringUser associated with the change
groupIdstringChange group ID
entityobjectEntity associated with the change
guidstringEntity GUID
namestringEntity name
messagesarrayMessages returned by New Relic for the created change event

On this page