Skip to content

Commit

Permalink
Merge pull request #19069 from newrelic/daily-release/10-24-24-midday
Browse files Browse the repository at this point in the history
Daily release/10 24 24 midday
  • Loading branch information
paperclypse authored Oct 24, 2024
2 parents f5c4177 + 0802a54 commit 27ed5c6
Show file tree
Hide file tree
Showing 20 changed files with 652 additions and 344 deletions.
2 changes: 1 addition & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ module.exports = {
resolve: 'gatsby-remark-images',
options: {
maxWidth: 850,
linkImagesToOriginal: false,
linkImagesToOriginal: true,
backgroundColor: 'transparent',
disableBgImageOnAlpha: true,
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@emotion/styled": "^11.3.0",
"@mdx-js/mdx": "2.0.0-next.8",
"@mdx-js/react": "2.0.0-next.8",
"@newrelic/gatsby-theme-newrelic": "9.10.3",
"@newrelic/gatsby-theme-newrelic": "9.10.5",
"@splitsoftware/splitio-react": "^1.2.4",
"ansi-colors": "^4.1.3",
"cockatiel": "^3.0.0-beta.0",
Expand Down Expand Up @@ -237,4 +237,4 @@
"bugs": {
"url": "https://github.com/newrelic/docs-website/issues"
}
}
}
92 changes: 6 additions & 86 deletions src/components/HomepageBanner.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
import React, { useState } from 'react';
import { navigate } from '@reach/router';
import React from 'react';

import { css } from '@emotion/react';
import {
Link,
SearchInput,
useTranslation,
addPageAction,
} from '@newrelic/gatsby-theme-newrelic';
import { useTranslation } from '@newrelic/gatsby-theme-newrelic';
import bannerBackground from 'images/bannerBackground.svg';

const HomepageBanner = () => {
const bannerHeight = '250px';
const bannerHeight = '200px';
const mobileBreakpoint = '450px';
const { t } = useTranslation();
const [searchTerm, setSearchTerm] = useState('');

return (
<section
Expand All @@ -26,30 +19,28 @@ const HomepageBanner = () => {
background-size: cover;
background-position: center;
display: flex;
flex-direction: column;
align-items: center;
min-height: ${bannerHeight};
justify-content: center;
@media screen and (max-width: 550px) {
justify-content: center;
background-size: 150%;
background-position: center 20px;
}
@media screen and (max-width: ${mobileBreakpoint}) {
min-height: 200px;
background-size: 200%;
background-position: center 8px;
}
`}
>
<h1
css={css`
font-size: 2.5rem;
font-size: 3rem;
font-weight: 500;
color: #1ce783;
padding-top: 3rem;
margin-bottom: 1.5rem;
text-align: center;
margin: 0 20px;
line-height: 1;
@media screen and (max-width: 550px) {
Expand All @@ -63,77 +54,6 @@ const HomepageBanner = () => {
>
{t('strings.home.pageTitle')}
</h1>
<SearchInput
placeholder={t('strings.home.search.placeholder')}
size={SearchInput.SIZE.MEDIUM}
value={searchTerm || ''}
iconName={SearchInput.ICONS.SEARCH}
isIconClickable
alignIcon={SearchInput.ICON_ALIGNMENT.RIGHT}
onChange={(e) => setSearchTerm(e.target.value)}
onSubmit={() => {
addPageAction({
eventName: 'swiftypeSearchInput',
category: 'SearchInput',
searchTerm,
searchLocation: 'homepage',
});
if (searchTerm !== '') {
navigate(`search-results/?query=${searchTerm}&page=1`);
}
}}
css={css`
max-width: 880px;
width: 80%;
svg {
color: var(--primary-text-color);
}
`}
/>
<div
css={css`
margin-top: 0.75rem;
width: 40%;
color: white;
display: flex;
align-items: baseline;
justify-content: center;
width: 100%;
flex-wrap: wrap;
font-weight: 500;
font-size: 1rem;
a {
margin-left: 0.25rem;
&:hover {
color: var(--brand-button-primary-accent);
}
}
@media screen and (max-width: 550px) {
font-size: 0.75rem;
}
@media screen and (max-width: ${mobileBreakpoint}) {
display: none;
}
`}
>
<p>{t('strings.home.search.popularSearches.title')}: </p>
<Link to="/search-results/?query=nrql&page=1">
{t('strings.home.search.popularSearches.options.0')},
</Link>
<Link to="/search-results/?query=logs&page=1">
{t('strings.home.search.popularSearches.options.1')},
</Link>
<Link to="/search-results/?query=alert&page=1">
{t('strings.home.search.popularSearches.options.2')},
</Link>
<Link to="/search-results/?query=best practices&page=1">
{t('strings.home.search.popularSearches.options.3')},
</Link>
<Link to="/search-results/?query=kubernetes&page=1">
{t('strings.home.search.popularSearches.options.4')}
</Link>
</div>
</section>
);
};
Expand Down
62 changes: 37 additions & 25 deletions src/components/MDXContainer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
ExternalLink,
Link,
Lightbox,
MDXLink,
MDX,
MarkdownContainer,
Expand Down Expand Up @@ -53,30 +52,43 @@ const defaultComponents = {
}
/>
) : (
<Lightbox>
<img
width={props.width ? props.width : 'auto'}
src={props.src}
// this prevents images from stretching if the width is set to a percent value
className={cx(props.className, props.width && 'unbound')}
alt={props.alt ? props.alt : 'Docs site'}
title={props.title}
style={
props.style
? {
...props.style,
borderRadius: '0.25rem',
maxWidth: '100%',
margin: '0 0.25rem',
}
: {
borderRadius: '0.25rem',
maxWidth: '100%',
margin: '0 0.25rem',
}
}
/>
</Lightbox>
<span
style={{
position: 'relative',
display: 'block',
textAlign: 'center',
margin: '1em 0',
}}
>
<a
href={props.src}
target="_blank"
rel="noreferrer"
style={{ display: 'inline-block' }}
>
<img
width={props.width ? props.width : 'auto'}
src={props.src}
alt={props.alt ? props.alt : 'Docs site'}
title={props.title}
style={
props.style
? {
...props.style,
borderRadius: '0.25rem',
maxWidth: '100%',
margin: '0 0.25rem',
}
: {
borderRadius: '0.25rem',
maxWidth: '100%',
margin: '0 0.25rem',
}
}
loading="lazy"
/>
</a>
</span>
),
DocTile: (props) => (
<DocTile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ This query shows the billable full platform users for the month. In other words,

```sql
FROM NrMTDConsumption
SELECT latest(FullPlatformUsersBillable)
SELECT latest(FullPlatformUsersBillable)
SINCE 3 hours ago
```

### Month-to-date core users
Expand All @@ -126,6 +127,7 @@ This query shows the number of core users you'd be billed for if you were billed
```sql
FROM NrMTDConsumption
SELECT latest(CoreUsersBillable)
SINCE 3 hours ago
```
### Estimated cost
Expand All @@ -135,6 +137,7 @@ Here's a query for getting the current month's cost for your full platform users
```sql
FROM NrMTDConsumption
SELECT latest(FullPlatformUsersBillable) * YOUR_PER_FULL_PLATFORM_USER_COST
SINCE 3 hours ago
```
### User queries for organizations without core users [#queries-non-core]
Expand Down Expand Up @@ -205,13 +208,15 @@ These queries apply for some older New Relic organizations that have only two us
```sql
FROM NrMTDConsumption
SELECT latest(FullPlatformUsersBillable) * YOUR_PER_FULL_PLATFORM_USER_COST
SINCE 3 hours ago
```

Here's an equivalent one for your core users:
```sql
FROM NrMTDConsumption
SELECT latest(CoreUsersBillable) * YOUR_PER_CORE_USER_COST
SINCE 3 hours ago
```
</Collapser>
</CollapserGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,11 @@ version.
| --- | --- | --- | --- |
| `@apollo/gateway` | 2.3.0 | 2.9.3 | `@newrelic/[email protected]` |
| `@apollo/server` | 4.0.0 | 4.11.0 | `@newrelic/[email protected]` |
| `@aws-sdk/client-bedrock-runtime` | 3.474.0 | 3.675.0 | 11.13.0 |
| `@aws-sdk/client-dynamodb` | 3.0.0 | 3.675.0 | 8.7.1 |
| `@aws-sdk/client-sns` | 3.0.0 | 3.675.0 | 8.7.1 |
| `@aws-sdk/client-sqs` | 3.0.0 | 3.675.0 | 8.7.1 |
| `@aws-sdk/lib-dynamodb` | 3.377.0 | 3.675.0 | 8.7.1 |
| `@aws-sdk/client-bedrock-runtime` | 3.474.0 | 3.677.0 | 11.13.0 |
| `@aws-sdk/client-dynamodb` | 3.0.0 | 3.677.0 | 8.7.1 |
| `@aws-sdk/client-sns` | 3.0.0 | 3.677.0 | 8.7.1 |
| `@aws-sdk/client-sqs` | 3.0.0 | 3.677.0 | 8.7.1 |
| `@aws-sdk/lib-dynamodb` | 3.377.0 | 3.677.0 | 8.7.1 |
| `@aws-sdk/smithy-client` | 3.47.0 | 3.374.0 | 8.7.1 |
| `@elastic/elasticsearch` | 7.16.0 | 8.15.1 | 11.9.0 |
| `@grpc/grpc-js` | 1.4.0 | 1.12.2 | 8.17.0 |
Expand Down Expand Up @@ -309,8 +309,8 @@ version.
| `mongodb` | 4.1.4 | 6.10.0 | 1.32.0 |
| `mysql` | 2.2.0 | 2.18.1 | 1.32.0 |
| `mysql2` | 2.0.0 | 3.11.3 | 1.32.0 |
| `next` | 13.4.19 | 15.0.0 | 12.0.0 |
| `openai` | 4.0.0 | 4.68.1 | 11.13.0 |
| `next` | 13.4.19 | 15.0.1 | 12.0.0 |
| `openai` | 4.0.0 | 4.68.3 | 11.13.0 |
| `pg` | 8.2.0 | 8.13.0 | 9.0.0 |
| `pg-native` | 3.0.0 | 3.2.0 | 9.0.0 |
| `pino` | 7.0.0 | 9.5.0 | 8.11.0 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3499,7 +3499,7 @@ The Node.js agent variables that control error message redaction appear in the `
</th>
<td>
`true`
`false`
</td>
</tr>
Expand All @@ -3515,7 +3515,7 @@ The Node.js agent variables that control error message redaction appear in the `
</tbody>
</table>
When `false`, the agent will redact the messages of captured errors.
When `true`, the agent will redact the messages of captured errors.
</Collapser>
</CollapserGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: 'New Relic Flex: Build your own integration'
tags:
- Instrument everything
- Develop your own integrations
- nri-flex
translate:
- jp
metaDescription: Use New Relic's Flex integration tool to create a lightweight custom integration that reports event and metric data to New Relic.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,15 @@ The Windows services integration sends the following metadata to New Relic:
* `display_name`: Name of the service as viewed in the services snap-in.
* `process_id`: Process identifier of the service.
* `run_as`: Account name under which a service runs. Depending on the service type, the format of the account name may be `DomainName\Username` or `Username@DomainName` (UPN). The value is taken from the `StartName` attribute of the `Win32_Service` class, which can be `NULL` (in that case, the label is reported as an empty string).
<Callout variant="important">
If the `StartName` attribute is `NULL`, the service is logged on under the `LocalSystem` account. For kernel or system-level drive, it runs with a default object name that the the I/O system creates based on the service name, for example, `DWDOM\Admin`.
</Callout>
* `service_name`: Unique identifier of the service.
<Callout variant="important">
If the `StartName` attribute is `NULL`, the service is logged on under the `LocalSystem` account. For kernel or system-level drive, it runs with a default object name created by the I/O system based on the service name, for example, `DWDOM\Admin`.
The system converts `service_name` to lowercase per best practices. It replaces all spaces and periods with underscores. It isn't the the same as the service name on the Windows interface.
</Callout>

## Source code [#open-source]
Expand Down
Loading

0 comments on commit 27ed5c6

Please sign in to comment.