Skip to content

Commit cb896c7

Browse files
dasfmitothmano
andauthored
Add overviews, logoIds and missing ingest options (#96)
Co-authored-by: Mano Toth <[email protected]> Co-authored-by: Mano Toth <[email protected]>
1 parent 7d033e4 commit cb896c7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+355
-189
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ We value your input and invite you to help us make the Axiom documentation even
6666
## Troubleshooting
6767
6868
- If the local build fails, run `mintlify install` to re-install dependencies.
69-
- If a page loads as a 404, make sure you run the local build in the root folder where the file `mint.json` is present.
69+
- If a page loads as a 404, make sure you run the local build in the root folder where the file `mint.json` is present.

apps/cloudflare-logpush.mdx

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
---
22
title: 'Connect Axiom with Cloudflare Logpush'
33
description: "Axiom gives you an all-at-once view of key Cloudflare Logpush metrics and logs, out of the box, with our dynamic Cloudflare Logpush dashboard."
4+
overview: 'Service for pushing logs to storage services in real-time'
45
sidebarTitle: Cloudflare Logpush
56
tags:
67
['axiom documentation', 'documentation', 'axiom', 'cloudflare logpush', 'requests', 'edge network', 'route trigger', 'cloudflare']
8+
logoId: 'cloudflare'
9+
isPopular: true
10+
popularityOrder: 6
711
---
812

913
Cloudflare Logpush is a feature that allows you to push HTTP request logs and other Cloudflare-generated logs directly to your desired storage, analytics, and monitoring solutions like Axiom. The integration with Axiom aims to provide real-time insights into web traffic, and operational issues, thereby helping to monitor and troubleshoot effectively.
@@ -66,7 +70,7 @@ For account-scoped Logpush jobs:
6670

6771
Using Axiom with Cloudflare Logpush offers a powerful solution for real-time monitoring, observability, and analytics. Axiom can help you gain deep insights into your app’s performance, errors, and app bottlenecks.
6872

69-
### Benefits of using the Axiom Cloudflare Logpush Dashboard
73+
### Benefits of using the Axiom Cloudflare Logpush Dashboard
7074

7175
- Real-time visibility into web performance: One of the most crucial features is the ability to see how your website or app is performing in real-time. The dashboard can show everything from page load times to error rates, giving you immediate insights that can help in timely decision-making.
7276

@@ -115,4 +119,4 @@ Account-scoped
115119
- Magic IDS Detections
116120
- Network Analytics Logs
117121
- Workers Trace Events
118-
- Zero Trust Network Session Logs
122+
- Zero Trust Network Session Logs

apps/cloudflare-workers.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The data obtained with the Axiom dashboard gives you better insights into the st
1414

1515
Cloudflare Workers is a serverless computing platform developed by Cloudflare. The Workers platform allows developers to deploy and run JavaScript code directly at the network edge in more than 200 data centers worldwide. This serverless architecture enables high performance, low latency, and efficient scaling for web apps and APIs.
1616

17-
## Sending Cloudflare Worker logs to Axiom
17+
## Sending Cloudflare Worker logs to Axiom
1818

1919
The Axiom Cloudflare worker repository plugin is available on [GitHub](https://github.com/axiomhq/axiom-cloudflare-workers).
2020

@@ -65,4 +65,4 @@ When requests are made to the routes you set up, the worker will be triggered, a
6565

6666
<Frame caption="Cloudflare datasets">
6767
<img src="/doc-assets/shots/cloudflare-datasets-logs.png" alt="Cloudflare datasets" />
68-
</Frame>
68+
</Frame>

apps/netlify.mdx

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
---
22
title: 'Connect Axiom with Netlify'
33
description: 'Integrating Axiom with Netlify to get a comprehensive observability experience for your Netlify projects. This app will give you a better understanding of how your Jamstack apps are performing.'
4+
overview: 'All-in-one platform for automating modern web projects'
45
sidebarTitle: Netlify
56
tags:
67
['axiom documentation', 'documentation', 'axiom', 'netlify', log drains', 'jamstack', 'zero config observability']
8+
logoId: 'netlify'
79
---
810

911
Integrate Axiom with Netlify to get a comprehensive observability experience for your Netlify projects. This integration will give you a better understanding of how your Jamstack apps are performing.
@@ -16,13 +18,13 @@ Axiom’s Netlify app is complete with a pre-built dashboard that gives you cont
1618

1719
Overall, the Axiom Netlify app makes it easy to monitor and optimize your Jamstack apps. However, do note that this integration is only available for Netlify customers enterprise-level plans where [Log Drains are supported](https://docs.netlify.com/monitor-sites/log-drains/).
1820

19-
## What is Netlify
21+
## What is Netlify
2022

2123
Netlify is a platform for building highly-performant and dynamic websites, e-commerce stores, and web apps. Netlify automatically builds your site and deploys it across its global edge network.
2224

2325
The Netlify platform provides teams everything they need to take modern web projects from the first preview to full production.
2426

25-
## Sending logs to Axiom
27+
## Sending logs to Axiom
2628

2729
The log events gotten from Axiom gives you better insight into the state of your Netlify sites environment so that you can easily monitor traffic volume, website configurations, function logs, resource usage, and more.
2830

apps/tailscale.mdx

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
---
22
title: 'Connect Axiom with Tailscale'
33
description: 'This page explains how to integrate Axiom with Tailscale.'
4+
overview: 'Zero config VPN for building secure networks'
45
sidebarTitle: Tailscale
56
tags:
67
['axiom documentation', 'documentation', 'axiom', 'guide', 'logs', 'tailscale']
8+
logoId: 'tailscale'
79
---
810

911
import Prerequisites from "/snippets/standard-prerequisites.mdx"
@@ -39,4 +41,4 @@ With these insights, you can:
3941
- Track configuration changes and user actions.
4042
- Monitor overall network health and performance.
4143
- Investigate specific events or users as needed.
42-
- Understand traffic distribution across your tailnet.
44+
- Understand traffic distribution across your tailnet.

apps/vercel.mdx

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
---
22
title: 'Connect Axiom with Vercel'
33
description: 'Easily monitor data from requests, functions, and web vitals in one place to get the deepest observability experience for your Vercel projects.'
4+
overview: 'Platform for frontend frameworks and static sites'
45
sidebarTitle: Vercel
56
tags:
67
['axiom documentation', 'documentation', 'axiom', 'vercel', 'request logs', 'function logs', 'web vitals', 'vercel app', 'vercel app']
8+
logoId: 'vercel'
9+
darkLogoId: 'vercelDark'
710
---
811

912
Connect Axiom with Vercel to get the deepest observability experience for your Vercel projects.
@@ -88,7 +91,7 @@ WebVitals are sent only from production deployments.
8891
log.info('Payment completed', { userID: '123', amount: '25USD' });
8992
```
9093

91-
### Client Components
94+
### Client Components
9295

9396
For Client Components, replace the `log` prop usage with the `useLogger` hook:
9497

@@ -103,7 +106,7 @@ export default function ClientComponent() {
103106
}
104107
```
105108

106-
### Server Components
109+
### Server Components
107110

108111
For Server Components, create a logger and make sure to call flush before returning:
109112

@@ -159,7 +162,7 @@ If you plan on upgrading to Next.js 13, you'll need to make specific changes to
159162
- For server-side components, you need to create an instance of the `Logger` and flush the logs before the component returns.
160163
- For Web Vitals tracking, you'll replace the previous method of capturing data. Remove the `reportWebVitals()` line and instead integrate the `AxiomWebVitals` component into your layout.
161164

162-
## Vercel Function logs 4KB limit
165+
## Vercel Function logs 4KB limit
163166

164167
The Vercel 4KB log limit refers to a restriction placed by Vercel on the size of log output generated by serverless functions running on their platform. The 4KB log limit means that each log entry produced by your function should be at most 4 Kilobytes in size.
165168

@@ -197,7 +200,7 @@ If you use a logging library in your Vercel project that prints JSON, your **mes
197200
}
198201
```
199202

200-
- The **JSON** data in your **message** would be:
203+
- The **JSON** data in your **message** would be:
201204

202205
```json
203206
{
@@ -211,7 +214,7 @@ If you use a logging library in your Vercel project that prints JSON, your **mes
211214

212215
You can **parse** the JSON using the [parse_json function](/apl/scalar-functions/string-functions#parse-json()) and run queries against the **values** in the **message** field.
213216

214-
### Example
217+
### Example
215218

216219
```kusto
217220
['vercel']
@@ -266,4 +269,4 @@ For more configuration options, see the [documentation in the next-axiom GitHub
266269

267270
## Send logs from Vercel preview deployments
268271

269-
To send logs from Vercel preview deployments to Axiom, enable preview deployments for the environment variable `NEXT_PUBLIC_AXIOM_INGEST_ENDPOINT`. For more information, see the [Vercel documentation](https://vercel.com/docs/projects/environment-variables/managing-environment-variables).
272+
To send logs from Vercel preview deployments to Axiom, enable preview deployments for the environment variable `NEXT_PUBLIC_AXIOM_INGEST_ENDPOINT`. For more information, see the [Vercel documentation](https://vercel.com/docs/projects/environment-variables/managing-environment-variables).

endpoints/honeycomb.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
---
22
title: 'Send data from Honeycomb to Axiom'
33
description: "Integrate Axiom in your existing Honeycomb stack with minimal effort and without breaking any of your existing Honeycomb workflows."
4+
overview: 'Observability tool for debugging and understanding distributed systems'
45
sidebarTitle: Honeycomb
56
tags: ['axiom documentation', 'documentation', 'axiom', 'endpoints', 'http', 'syslog', 'splunk', 'datadog', 'loki', 'honeycomb']
7+
logoId: 'honeycomb'
68
---
79

810
import SetUpEndpoint from "/snippets/set-up-endpoint.mdx"

endpoints/loki.mdx

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
---
22
title: 'Send data from Loki to Axiom'
33
description: 'Integrate Axiom in your existing Loki stack with minimal effort and without breaking any of your existing Loki workflows.'
4+
overview: 'Horizontally-scalable, multi-tenant log aggregation system'
45
sidebarTitle: Loki
5-
tags:
6+
tags:
67
['axiom documentation', 'documentation', 'axiom', 'endpoints', 'http', 'syslog', 'splunk', 'datadog', 'loki', 'honeycomb', 'javascript', 'python']
8+
logoId: 'grafanaLoki'
79
---
810

911
import SetUpEndpoint from "/snippets/set-up-endpoint.mdx"
@@ -81,4 +83,4 @@ logger.addHandler(handler)
8183
logger.info('Hello, world from Python!')
8284
logger.warning('This is a warning')
8385
logger.error('This is an error')
84-
```
86+
```

endpoints/splunk.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
---
22
title: 'Send data from Splunk to Axiom'
33
description: 'Integrate Axiom in your existing Splunk app with minimal effort and without breaking any of your existing Splunk stack.'
4+
overview: 'Platform for searching, monitoring, and analyzing machine-generated data'
45
sidebarTitle: Splunk
56
tags: ['axiom documentation', 'documentation', 'axiom', 'endpoints', 'http', 'syslog', 'splunk', 'datadog', 'loki', 'honeycomb', 'javascript', 'python']
7+
logoId: 'splunk'
68
---
79

810
import SetUpEndpoint from "/snippets/set-up-endpoint.mdx"

guides/apex.mdx

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: 'Axiom Go Adapter for apex/log'
3+
description: 'Adapter to ship logs generated by apex/log to Axiom.'
4+
overview: 'Minimalistic logging library for Go'
5+
sidebarTitle: 'Apex'
6+
url: 'https://pkg.go.dev/github.com/axiomhq/axiom-go/adapters/apex'
7+
tags: ['go', 'golang', 'apex']
8+
logoId: 'apex'
9+
---

guides/go.mdx

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
---
22
title: 'Send data from Go app to Axiom'
33
description: 'This page explains how to send data from a Go app to Axiom.'
4+
overview: 'Open-source programming language designed for simplicity and efficiency'
45
sidebarTitle: Golang
6+
github: "https://github.com/axiomhq/axiom-go"
7+
tags: ['go', 'golang']
8+
logoId: 'golang'
9+
enlargeLogo: true
510
---
611

712
To send data from a Go app to Axiom, use the Axiom Go SDK.
@@ -90,4 +95,4 @@ For more examples, see the [examples in GitHub](https://github.com/axiomhq/axiom
9095

9196
## Adapters
9297

93-
To use a logging package, see the [adapters in GitHub](https://github.com/axiomhq/axiom-go/tree/main/adapters).
98+
To use a logging package, see the [adapters in GitHub](https://github.com/axiomhq/axiom-go/tree/main/adapters).

guides/javascript.mdx

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
---
22
title: 'Send data from JavaScript app to Axiom'
33
description: 'This page explains how to send data from a JavaScript app to Axiom.'
4+
overview: 'High-level, interpreted programming language for web development'
45
sidebarTitle: JavaScript
6+
github: "https://github.com/axiomhq/axiom-js"
7+
tags: ['js', 'javascript', 'node', 'typescript', 'ts', 'node.js']
8+
logoId: 'javascript'
9+
isPopular: true
10+
popularityOrder: 8
511
---
612

713
To send data from a JavaScript app to Axiom, use the Axiom JavaScript SDK.
@@ -94,4 +100,4 @@ await annotations.create({
94100
While the Axiom JavaScript client works on both the backend and the browsers, Axiom provides transports for some of the popular loggers:
95101

96102
- [Pino](/guides/pino)
97-
- [Winston](/guides/winston)
103+
- [Winston](/guides/winston)

guides/logrus.mdx

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: 'Axiom Go Adapter for sirupsen/logrus'
3+
description: 'Adapter to ship logs generated by sirupsen/logrus to Axiom.'
4+
overview: 'Structured logger for Go'
5+
sidebarTitle: 'Logrus'
6+
url: 'https://pkg.go.dev/github.com/axiomhq/axiom-go/adapters/logrus'
7+
tags: ['go', 'golang', 'logrus']
8+
logoId: 'logrus'
9+
---

guides/opentelemetry-cloudflare-workers.mdx

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
---
22
title: 'OpenTelemetry using Cloudflare Workers'
33
description: 'This guide explains how to configure a Cloudflare Workers app to send telemetry data to Axiom.'
4+
overview: 'Serverless execution environment at the edge'
45
sidebarTitle: Cloudflare Workers
5-
tags:
6-
['guides', 'cloudflare worker']
6+
tags: ['guides', 'cloudflare worker', 'otel', 'opentelemetry']
7+
logoId: 'cloudflareWorkers'
78
---
89

9-
This guide demonstrates how to configure OpenTelemetry in Cloudflare Workers to send telemetry data to Axiom using the [OTel CF Worker package](https://github.com/evanderkoogh/otel-cf-workers).
10+
This guide demonstrates how to configure OpenTelemetry in Cloudflare Workers to send telemetry data to Axiom using the [OTel CF Worker package](https://github.com/evanderkoogh/otel-cf-workers).
1011

1112
## Prerequisites
1213

@@ -24,15 +25,15 @@ Create a new directory for your project and navigate into it:
2425
mkdir my-axiom-worker && cd my-axiom-worker
2526
```
2627

27-
Initialize a new Wrangler project using this command:
28+
Initialize a new Wrangler project using this command:
2829

2930
```bash
3031
wrangler init --type="javascript"
3132
```
3233

3334
## Cloudflare Workers Script Configuration (index.ts)
3435

35-
Configure and implement your Workers script by integrating OpenTelemetry with the `@microlabs/otel-cf-workers` package to send telemetry data to Axiom, as illustrated in the example `index.ts` below:
36+
Configure and implement your Workers script by integrating OpenTelemetry with the `@microlabs/otel-cf-workers` package to send telemetry data to Axiom, as illustrated in the example `index.ts` below:
3637

3738
```js
3839
// index.ts
@@ -138,7 +139,7 @@ To run your Cloudflare Workers app with OpenTelemetry instrumentation, ensure yo
138139
139140
### In development mode
140141
141-
For local development and testing, you can start a local development server by running:
142+
For local development and testing, you can start a local development server by running:
142143
143144
```bash
144145
npm run start
@@ -148,7 +149,7 @@ This command runs `wrangler dev` allowing you to preview and test your app local
148149
149150
### Deploying to production
150151
151-
Deploy your app to the Cloudflare Workers environment by running:
152+
Deploy your app to the Cloudflare Workers environment by running:
152153
153154
```bash
154155
npm run deploy
@@ -251,10 +252,10 @@ Wrap your Cloudflare Workers script with the `instrument` function from the **`@
251252
252253
```js
253254
import { instrument } from '@microlabs/otel-cf-workers';
254-
255+
255256
export default instrument(yourHandler, yourConfig);
256257
```
257-
258+
258259
2. Configuration: Provide configuration details, including how to export telemetry data and service metadata to Axiom as part of the `instrument` function call.
259260
260261
```js
@@ -367,4 +368,4 @@ These packages provide the foundational elements for OTLP exporters, including t
367368
368369
**`@opentelemetry/resources`**
369370
370-
Defines the Resource, which represents the entity producing telemetry. In Cloudflare Workers, Resources can be used to describe the worker (for example,, service name, version) and are attached to all exported telemetry, aiding in identifying data in backend systems.
371+
Defines the Resource, which represents the entity producing telemetry. In Cloudflare Workers, Resources can be used to describe the worker (for example,, service name, version) and are attached to all exported telemetry, aiding in identifying data in backend systems.

guides/opentelemetry-django.mdx

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
22
title: 'Send OpenTelemetry data from a Django app to Axiom'
33
description: 'This guide explains how to send OpenTelemetry data from a Django app to Axiom using the Python OpenTelemetry SDK.'
4+
overview: 'Django framework with OpenTelemetry integration'
45
sidebarTitle: Django Using OTel
5-
tags:
6-
['guides', 'django']
6+
tags: ['guides', 'django', 'otel', 'opentelemetry', 'python']
7+
logoId: 'openTelemetry'
78
---
89

910
import Prerequisites from "/snippets/standard-prerequisites.mdx"
@@ -73,7 +74,7 @@ from opentelemetry.instrumentation.django import DjangoInstrumentor
7374
def main():
7475
"""Run administrative tasks."""
7576
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'your_project_name.settings')
76-
77+
7778
# Initialize OpenTelemetry instrumentation
7879
DjangoInstrumentor().instrument()
7980

@@ -443,4 +444,4 @@ This import brings in the tracer instance defined in `exporter.py`, which is use
443444

444445
```py
445446
from .exporter import tracer
446-
```
447+
```

0 commit comments

Comments
 (0)