-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(releasing): Fix docs for new components in v0.41.0 (#21260)
* Add documentation for static_metrics source Signed-off-by: Jesse Szwedko <[email protected]> * Document `greptimedb_logs` sink And fix `greptimedb_metrics` aliasing. Also fixed incorrect batch documentation that I noticed. Signed-off-by: Jesse Szwedko <[email protected]> --------- Signed-off-by: Jesse Szwedko <[email protected]>
- Loading branch information
Showing
7 changed files
with
144 additions
and
17 deletions.
There are no files selected for viewing
5 changes: 3 additions & 2 deletions
5
website/content/en/docs/reference/configuration/sinks/greptimedb_metrics.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
website/content/en/docs/reference/configuration/sources/static_metrics.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: Static metrics | ||
description: Publish statically configured metrics on an interval | ||
component_kind: source | ||
layout: component | ||
tags: ["vector", "instance", "local", "internal", "component", "source", "metrics"] | ||
--- | ||
|
||
{{/* | ||
This doc is generated using: | ||
|
||
1. The template in layouts/docs/component.html | ||
2. The relevant CUE data in cue/reference/components/... | ||
*/}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
website/cue/reference/components/sources/static_metrics.cue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
package metadata | ||
|
||
components: sources: static_metrics: { | ||
title: "Static Metrics" | ||
|
||
description: """ | ||
Publish statically configured metrics on an interval. This can be useful for publishing | ||
heartbeats or sending the value of an environment variable as a metric. | ||
""" | ||
|
||
classes: { | ||
commonly_used: true | ||
delivery: "at_least_once" | ||
deployment_roles: ["aggregator", "daemon", "sidecar"] | ||
development: "stable" | ||
egress_method: "batch" | ||
stateful: false | ||
} | ||
|
||
features: { | ||
acknowledgements: false | ||
collect: { | ||
checkpoint: enabled: false | ||
from: service: services.vector | ||
} | ||
multiline: enabled: false | ||
} | ||
|
||
support: { | ||
notices: [] | ||
requirements: [] | ||
warnings: [] | ||
} | ||
|
||
installation: { | ||
platform_name: null | ||
} | ||
|
||
configuration: base.components.sources.static_metrics.configuration | ||
|
||
output: metrics: { | ||
counter: output._passthrough_counter & { | ||
default_namespace: "static" | ||
} | ||
distribution: output._passthrough_distribution & { | ||
default_namespace: "static" | ||
} | ||
gauge: output._passthrough_gauge & { | ||
default_namespace: "static" | ||
} | ||
set: output._passthrough_set & { | ||
default_namespace: "static" | ||
} | ||
} | ||
|
||
examples: [ | ||
{ | ||
title: "Emit a heartbeat" | ||
configuration: { | ||
metrics: [ | ||
{ | ||
name: "heartbeat" | ||
kind: "absolute" | ||
value: | ||
gauge: 1 | ||
tags: | ||
env: "${ENV}" | ||
}, | ||
] | ||
} | ||
input: "" | ||
output: metric: { | ||
name: "heartbeat" | ||
kind: "absolute" | ||
namespace: "static" | ||
timestamp: "2024-09-10T19:04:58Z" | ||
gauge: | ||
value: 1.0 | ||
tags: | ||
env: "${ENV}" | ||
} | ||
}, | ||
] | ||
} |