-
Notifications
You must be signed in to change notification settings - Fork 96
Add telemetry catalogs and weaver gen for metadata.yaml used by mdatagen #1043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
CodeMonkeyF5
wants to merge
1
commit into
nginx:main
Choose a base branch
from
CodeMonkeyF5:telemetry-catalog
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,63 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/open-telemetry/weaver/v0.9.2/schemas/semconv.schema.json | ||
groups: | ||
# nginx.http.* metrics | ||
- id: metric.nginxoss.http.connections | ||
type: metric | ||
unit: "connections" | ||
metric_name: nginx.http.connections | ||
stability: experimental | ||
brief: "The total number of connections, since NGINX was last started or reloaded." | ||
instrument: counter | ||
note: | | ||
Source: HTTP GET `/status` | ||
attributes: | ||
- ref: nginx.connections.outcome | ||
requirement_level: required | ||
|
||
- id: metric.nginxoss.http.connection.count | ||
type: metric | ||
unit: "connections" | ||
metric_name: nginx.http.connection.count | ||
stability: experimental | ||
brief: "The current number of connections." | ||
instrument: gauge | ||
note: | | ||
Source: HTTP GET `/status` | ||
attributes: | ||
- ref: nginx.connections.outcome | ||
requirement_level: required | ||
|
||
- id: metric.nginxoss.http.requests | ||
type: metric | ||
unit: "requests" | ||
metric_name: nginx.http.requests | ||
stability: experimental | ||
brief: "The total number of client requests received, since NGINX was last started or reloaded." | ||
instrument: counter | ||
note: | | ||
Source: HTTP GET `/status` | ||
attributes: [] | ||
|
||
- id: metric.nginxoss.http.request.count | ||
type: metric | ||
unit: "requests" | ||
metric_name: nginx.http.request.count | ||
stability: experimental | ||
brief: "The total number of client requests received, since the last collection interval." | ||
instrument: gauge | ||
note: | | ||
Source: HTTP API `/status` | ||
attributes: [] | ||
|
||
- id: metric.nginxoss.http.response.count | ||
type: metric | ||
unit: "responses" | ||
metric_name: nginx.http.response.count | ||
stability: experimental | ||
brief: "The total number of HTTP responses, since the last collection interval and grouped by status code range." | ||
instrument: gauge | ||
note: | | ||
Source: Logs `access.log` | ||
attributes: | ||
- ref: nginx.status_range | ||
requirement_level: required |
This file contains hidden or 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,19 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/open-telemetry/weaver/v0.9.2/schemas/semconv.schema.json | ||
groups: | ||
# General NGINX OSS attributes | ||
- id: registry.nginxoss | ||
type: attribute_group | ||
stability: experimental | ||
display_name: General NGINX OSS Attributes | ||
brief: "Describes NGINX attributes" | ||
attributes: | ||
- id: nginx.status_range | ||
type: string | ||
stability: development | ||
brief: "A status code range or bucket for a HTTP response's status code." | ||
examples: ["1xx","2xx","3xx","4xx","5xx"] | ||
- id: nginx.connections.outcome | ||
type: string | ||
stability: development | ||
brief: "The outcome of a connection" | ||
examples: ["ACCEPTED","ACTIVE","HANDLED","READING","WRITING","WAITING","DROPPED","IDLE"] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could the setting of the vars for the make target be moved into another Makefile like Makefile.weaver ? Like we do for containers and packaging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion, yes can separate this to its own Makefile.