Leading continuous profiling database optimized for throughput and minimizing storage costs.
-
diff --git a/src/components/shared/SectionWrapper/index.jsx b/src/components/shared/SectionWrapper/index.jsx
index cd5b4000..c7a0f4b6 100644
--- a/src/components/shared/SectionWrapper/index.jsx
+++ b/src/components/shared/SectionWrapper/index.jsx
@@ -8,4 +8,4 @@ const SectionWrapper = ({ children, className }) => {
)
}
-export default SectionWrapper;
\ No newline at end of file
+export default SectionWrapper;
diff --git a/src/pages/downloads/index.js b/src/pages/downloads/index.js
deleted file mode 100644
index b84d64f9..00000000
--- a/src/pages/downloads/index.js
+++ /dev/null
@@ -1,216 +0,0 @@
-import React from 'react';
-import Layout from '@theme/Layout';
-import Tabs from '@theme/Tabs';
-import TabItem from '@theme/TabItem';
-import CodeBlock from '@theme/CodeBlock';
-import clsx from 'clsx';
-
-import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
-
-import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
-import { faApple, faLinux, faDocker, faWindows } from '@fortawesome/free-brands-svg-icons';
-import { faSyncAlt } from '@fortawesome/free-solid-svg-icons';
-
-import packages from '../../../packages.manifest.json';
-import styles from './styles.module.scss';
-
-const RPM_ARCH = {
- "arm64": "aarch64",
- "amd64": "x86_64",
-};
-
-function v(str) {
- return str.replace(/^v/, "");
-}
-
-class Download extends React.Component {
- constructor() {
- super();
- this.state = { version: Object.keys(packages.releases)[0] };
- }
- changeHandler = (e) => {
- this.setState({ version: e.target.value });
- }
- render() {
- return (
-
-
-
-
Download Pyroscope
-
-
-
- Version:
-
-
-
- {
- Object.keys(packages.releases).map((x) => {
- return {x}
- })
- }
-
-
-
-
-
-
- License:
-
-
- Apache 2
-
-
-
-
-
- Release Date:
-
-
- {packages.releases[this.state.version]}
-
-
-
-
-
Platforms
-
-
- Architecture
- {
- ["amd64", "arm64"].map((arch) => {
- return
- Package Type
-
-
-
-
-
-
Instructions {packages.shaMapping[`pyroscope-${v(this.state.version)}-linux-${arch}.tar.gz`]}
-
- {
- `
- wget https://dl.pyroscope.io/release/pyroscope-${v(this.state.version)}-linux-${arch}.tar.gz
- tar -zxvf pyroscope-${v(this.state.version)}-linux-${arch}.tar.gz
- `.replace(/^\s+/mg, "")
- }
- Running server
- To start pyroscope server run pyroscope server
-
-
-
-
-
Instructions {packages.shaMapping[`pyroscope-${v(this.state.version)}-1-${RPM_ARCH[arch]}.rpm`]}
-
- {
- `
- wget https://dl.pyroscope.io/release/pyroscope-${v(this.state.version)}-1-${RPM_ARCH[arch]}.rpm
- sudo yum localinstall pyroscope-${v(this.state.version)}-1-${RPM_ARCH[arch]}.rpm
- `.replace(/^\s+/mg, "")
- }
-
-
-
-
-
-
Instructions {packages.shaMapping[`pyroscope_${v(this.state.version)}_${arch}.deb`]}
-
- {
- `
- wget https://dl.pyroscope.io/release/pyroscope_${v(this.state.version)}_${arch}.deb
- sudo apt-get install ./pyroscope_${v(this.state.version)}_${arch}.deb
- `.replace(/^\s+/mg, "")
- }
-
-
-
-
-
Instructions
-
- {
- `yay -S pyroscope-bin`
- }
-
-
-
-
- })
- }
-
-
-
-
Instructions
-
- {
- `
- brew install pyroscope-io/brew/pyroscope
- `.replace(/^\s+/mg, "")
- }
-
-
-
-
Instructions
-
- {
- `[Net.ServicePointManager]::SecurityProtocol = "tls12"\n` +
- `wget https://dl.pyroscope.io/release/pyroscope_agent_${v(this.state.version)}_amd64.msi ` +
- `-outfile pyroscope_agent_${v(this.state.version)}_amd64.msi`.replace(/^\s+/mg, "")
- }
- For instruction on how to install Pyroscope Agent on Windows, see our Documentation .
-
-
-
-
Instructions
-
- {
- `
- docker run -it -p 4040:4040 pyroscope/pyroscope:${v(this.state.version)} server
- `.replace(/^\s+/mg, "")
- }
-
-
-
-
-
-
- );
- }
-}
-
-export default Download;
diff --git a/src/pages/downloads/styles.module.scss b/src/pages/downloads/styles.module.scss
deleted file mode 100644
index 4b8bcf01..00000000
--- a/src/pages/downloads/styles.module.scss
+++ /dev/null
@@ -1,156 +0,0 @@
-.downloadPage {
- margin-top: 2em;
-
- .downloadPageTitle {
- border-bottom: 2px solid rgba(255,255,255,0.2);
- padding-bottom: 0.25em
- }
-
- .downloadInfoTable {
- font-size: 20px;
- width: 100%;
- display: flex;
- flex-direction: column;
- .downloadInfoRow {
- display: flex;
- flex-direction: row;
- height: 38px;
- .downloadInfoCol {
- padding-right: 10px;
- &.downloadInfoTitle {
- width: 200px;
- }
- }
- }
- select {
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Android Emoji", EmojiSymbols, "EmojiOne Mozilla", "Twemoji Mozilla", "Segoe UI Symbol", "Noto Color Emoji";
- padding: 0.25em 0.5em;
- background-color: rgba(255, 255, 255, 0.33);
- color: white;
- font-size: 16px;
- border-radius: 4px;
- border: 1px solid rgba(255, 255, 255, 0.5);
- }
- }
-
- .downloadPageTitle {
- font-size: 2.5em;
- }
-
- h3, .instructionsWrapper {
- // margin-bottom: 0.75em;
- margin: 0;
- margin-top: 2em;
- }
-
- .instructionsWrapper {
- margin-bottom: 1em;
- display: flex;
- flex-direction: row;
- align-items: baseline;
- h3 {
- margin: 0;
- }
- }
-
- .sha {
- font-weight: normal;
- text-align: right;
- font-size: 14px;
- flex: 1;
- // margin: 0.5em 1em 1em;
- &:before {
- content: 'SHA256: ';
- display: inline;
- }
- }
-
- .downloadPlatforms {
- display: flex;
- margin-top: 1em;
- margin-bottom: 40px;
- .downloadPlatform {
- width: 130px;
- height: 130px;
- margin-right: 10px;
- background-color: rgba(255,255,255,0.3);
- color: #fff;
- text-align: center;
- cursor: pointer;
- &.active {
- box-shadow: inset 0 0 0 4px white;
- }
- .downloadPlatformIcon {
- font-size: 60px;
- line-height: 100px;
- }
- .downloadPlatformName {
- font-size: 16px;
- line-height: 16px;
- }
- }
- }
-
- .downloadArchs {
- display: flex;
- margin-top: 1em;
- margin-bottom: 40px;
- .downloadArch {
- width: 130px;
- height: 40px;
- margin-right: 10px;
- background-color: rgba(255,255,255,0.3);
- color: #fff;
- text-align: center;
- font-size: 16px;
- line-height: 40px;
- cursor: pointer;
- &.active {
- box-shadow: inset 0 0 0 4px white;
- }
- }
- }
-
-
- .extraSpace {
- height: 300px;
- }
-
- p {
- margin-top: 1em;
- }
-
- a {
- color: #1398bd;
- }
-
- .tabsPlatforms,
- .tabsArch,
- .tabsPackages {
- margin-top: 1em;
- .tabItem {
- border-radius: 6px;
- background-color: rgb(102, 102, 128);
- margin-right: 10px;
- border: 4px solid transparent;
- padding: 0.75em 1.5em;
- text-align: center;
- color: white;
- }
- .tabItemActive {
- background-color: #1398bd;
- }
- }
-
- .tabsPlatforms {
- .tabItem {
- display: flex;
- flex-direction: column;
- width: 150px;
- .tabsIcon {
- color: rgb(11, 11, 11);
- font-size: 60px;
- }
- }
- }
-}
diff --git a/src/pages/setup-call.js b/src/pages/setup-call.js
deleted file mode 100644
index ec4f02d5..00000000
--- a/src/pages/setup-call.js
+++ /dev/null
@@ -1,21 +0,0 @@
-import React from 'react';
-import Layout from '@theme/Layout';
-
-class SetupCall extends React.Component {
- constructor() {
- super();
- }
- render() {
- return (
-
-
-
-
-
- );
- }
-}
-
-export default SetupCall;
diff --git a/src/theme/DocItem/index.js b/src/theme/DocItem/index.js
new file mode 100644
index 00000000..614516cf
--- /dev/null
+++ b/src/theme/DocItem/index.js
@@ -0,0 +1,117 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+import React from 'react';
+import clsx from 'clsx';
+import useWindowSize from '@theme/hooks/useWindowSize';
+import DocPaginator from '@theme/DocPaginator';
+import DocVersionBanner from '@theme/DocVersionBanner';
+import Seo from '@theme/Seo';
+import DocItemFooter from '@theme/DocItemFooter';
+import TOC from '@theme/TOC';
+import TOCCollapsible from '@theme/TOCCollapsible';
+import {MainHeading} from '@theme/Heading';
+import styles from './styles.module.css';
+import {ThemeClassNames} from '@docusaurus/theme-common';
+export default function DocItem(props) {
+ const {content: DocContent, versionMetadata} = props;
+ const {metadata, frontMatter} = DocContent;
+ const {
+ image,
+ keywords,
+ hide_title: hideTitle,
+ hide_table_of_contents: hideTableOfContents,
+ } = frontMatter;
+ const {description, title} = metadata; // We only add a title if:
+ // - user asks to hide it with frontmatter
+ // - the markdown content does not already contain a top-level h1 heading
+
+ const shouldAddTitle =
+ !hideTitle && typeof DocContent.contentTitle === 'undefined';
+ const windowSize = useWindowSize();
+ const canRenderTOC =
+ !hideTableOfContents && DocContent.toc && DocContent.toc.length > 0;
+ const renderTocDesktop =
+ canRenderTOC && (windowSize === 'desktop' || windowSize === 'ssr');
+ return (
+ <>
+
+
+
+
+
+
+
+ {versionMetadata.badge && (
+
+ Version: {versionMetadata.label}
+
+ )}
+
+ {canRenderTOC && (
+
+ )}
+
+
+
+
+
+
+ In March 2023, Grafana Labs acquired Pyroscope, the company behind the eponymous open source continuous profiling project.
+ In September 2023, Grafana Pyroscope v1.0.0 was released.
+
+
+ This documentation covers Pyroscope versions preceding v1.0.0. We're keeping it for the time being, but we recommend that you upgrade to Grafana Pyroscope v1.0.0 or higher and switch to the new Grafana Pyroscope Docs for most up-to-date documentation.
+
+
+ {/*
+ Title can be declared inside md content or declared through frontmatter and added manually
+ To make both cases consistent, the added title is added under the same div.markdown block
+ See https://github.com/facebook/docusaurus/pull/4882#issuecomment-853021120
+ */}
+ {shouldAddTitle &&
{title} }
+
+
+
+
+
+
+
+
+
+ {renderTocDesktop && (
+
+
+
+ )}
+
+ >
+ );
+}
diff --git a/src/theme/DocItem/styles.module.css b/src/theme/DocItem/styles.module.css
new file mode 100644
index 00000000..be0569c5
--- /dev/null
+++ b/src/theme/DocItem/styles.module.css
@@ -0,0 +1,22 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+.docItemContainer article > *:first-child,
+.docItemContainer header + * {
+ margin-top: 0;
+}
+
+@media only screen and (min-width: 997px) {
+ .docItemCol {
+ max-width: 75% !important;
+ }
+
+ /* Prevent hydration FOUC, as the mobile TOC needs to be server-rendered */
+ .tocMobile {
+ display: none;
+ }
+}