Skip to content

Commit

Permalink
Merge pull request #2236 from newrelic/release
Browse files Browse the repository at this point in the history
Release - 1/11/24
  • Loading branch information
sarahkitten authored Jan 11, 2024
2 parents adfc44d + 6ba28e2 commit 55aa613
Show file tree
Hide file tree
Showing 16 changed files with 940 additions and 12 deletions.
812 changes: 812 additions & 0 deletions dashboards/hcp-vault/hcp-vault.json

Large diffs are not rendered by default.

Binary file added dashboards/hcp-vault/hcp-vault01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboards/hcp-vault/hcp-vault02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboards/hcp-vault/hcp-vault03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboards/hcp-vault/hcp-vault04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions data-sources/hcp-vault-logs/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
id: hcp-vault-logs
displayName: HCP Vault audit logs
description: |
This integration sends audit logs from your HCP vault clusters.
icon: logo.svg
install:
primary:
link:
url: https://developer.hashicorp.com/vault/tutorials/cloud-monitoring/vault-audit-log-new-relic
fallback:
link:
url: https://developer.hashicorp.com/vault/tutorials/cloud-monitoring/vault-metrics-guide
keywords:
- hashicorp
- hcp
- cloud
- infrastructure
- newrelic partner
- vault
- secret management
categoryTerms:
- newrelic partner
- infrastructure
1 change: 1 addition & 0 deletions data-sources/hcp-vault-logs/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions data-sources/hcp-vault-metrics/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
id: hcp-vault-metrics
displayName: HCP Vault telemetry metrics
description: |
This integration sends metrics from your HCP vault clusters to New Relic.
icon: logo.svg
install:
primary:
link:
url: https://developer.hashicorp.com/vault/tutorials/cloud-monitoring/vault-metrics-new-relic
fallback:
link:
url: https://developer.hashicorp.com/vault/tutorials/cloud-monitoring/vault-metrics-guide
keywords:
- hashicorp
- hcp
- cloud
- infrastructure
- newrelic partner
- vault
- secret management
- metrics
categoryTerms:
- newrelic partner
- infrastructure
1 change: 1 addition & 0 deletions data-sources/hcp-vault-metrics/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions install/third-party/hcp-vault/install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
id: third-party-hcp-vault
name: HCP Vault
title: HCP Vault Integration
description: |
This guide details how to deploy the HCP Vault integration, to monitor your Hashicorp HCP Vault environment with New Relic.
target:
type: integration
destination: cloud

level: Verified

install:
mode: link
destination:
url: https://developer.hashicorp.com/vault/tutorials/cloud-monitoring/vault-metrics-guide
48 changes: 48 additions & 0 deletions quickstarts/hashicorp/hcp-vault/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
id: 23d60312-3409-4371-9f41-ee9006603190
slug: hcp-vault
title: HCP Vault
description: |-
## HCP Vault
Secure, store, and tightly control access to tokens, passwords, certificates, encryption keys for protecting secrets, and other sensitive data using a UI, CLI, or HTTP API.
### Monitor HCP Vault metrics with New Relic
Metrics observability is essential for ensuring the performance and security of your HCP Vault cluster. It's also useful for business operations, like understanding client-related usage.
### HCP Vault integration highlights
The HCP Vault integration with New Relic provides a pre-made dashboard with HCP Vault metrics and audit logs to get started easily. This dashboard provides visibility into the health of your HCP Vault environment.
- Overview: Monitor key data points like identity entities, policy get/set, secret count, etc.
- Runtime metrics: Keep track of runtime metrics for your Vault instance, including allocated MB's, Heap objects used, etc.
- Token Metrics: Visualize token metrics like available token count, and count faceted by auth or ttl method.
- Audit Logs: review real time audit log rates, and error logs for response or request API errors.
summary: Monitor your HCP Vault environment
level: Verified
authors:
- New Relic Labs
keywords:
- hcp
- vault
- hashicorp
- consul
- nrlabs
- nrlabs-data
- infrastructure
- NR1_addData
- NR1_sys
documentation:
- name: Metrics configuration documentation
url: https://developer.hashicorp.com/vault/tutorials/cloud-monitoring/vault-metrics-new-relic
description: HCP Vault metrics guide
- name: Audit Logs configuration documentation
url: https://developer.hashicorp.com/vault/tutorials/cloud-monitoring/vault-audit-log-new-relic
description: HCP Vault audit logs guide
icon: logo.svg
installPlans:
- third-party-hcp-vault
dataSourceIds:
- hcp-vault-logs
- hcp-vault-metrics
dashboards:
- hcp-vault
1 change: 1 addition & 0 deletions quickstarts/hashicorp/hcp-vault/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 7 additions & 6 deletions utils/create_validate_pr_quickstarts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
filterOutTestFiles,
isNotRemoved,
} from './lib/github-api-helpers';
import { translateMutationErrors, chunk } from './lib/nr-graphql-helpers';
import { translateMutationErrors } from './lib/nr-graphql-helpers';

import Quickstart, { QuickstartMutationResponse } from './lib/Quickstart';
import { CUSTOM_EVENT, recordNerdGraphResponse } from './newrelic/customEvent';
Expand All @@ -21,6 +21,8 @@ import {
} from './types/nerdgraph';
import logger from './logger';

const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms))

type ResponseWithErrors =
NerdGraphResponseWithLocalErrors<QuickstartMutationResponse> & {
name: string;
Expand Down Expand Up @@ -125,13 +127,12 @@ export const createValidateQuickstarts = async (
const quickstartErrors: string[] = [];

logger.info(`Submitting ${quickstarts.length} quickstarts...`);
for (const c of chunk(quickstarts, 5)) {
for (const c of quickstarts) {
try {
const res = await Promise.all(
c.map((quickstart) => quickstart.submitMutation(isDryRun))
);
const res = await c.submitMutation(isDryRun);
await sleep(10);

results = [...results, ...res];
results = [...results, res];
} catch (err) {
const error = err as Error;

Expand Down
5 changes: 1 addition & 4 deletions utils/lib/Alert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,8 @@ import { CUSTOM_EVENT, recordNerdGraphResponse } from '../newrelic/customEvent';
// within a nrql query. This portion is to help validate against
// very specific edge cases to ensure we don't have anything break
// during an install once it hits our UIs.
const TIMESERIES = 'TIMESERIES';
const INVALID_QUERY_KEYWORDS = [TIMESERIES] as const;

// RegExp matches the _first_ instance of any invalid keywords
const INVALID_REGEX = new RegExp(INVALID_QUERY_KEYWORDS.join('|'), 'mi');
const INVALID_REGEX = /\sTIMESERIES[\s]?/mi

interface RequiredDataSources {
id: string;
Expand Down
Loading

0 comments on commit 55aa613

Please sign in to comment.