-
Notifications
You must be signed in to change notification settings - Fork 105
feat: add certificate metrics to agent for NGINXaaS #1731
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
base: main
Are you sure you want to change the base?
Changes from 2 commits
5df103a
f679ebd
845caa9
a9a7404
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| type: certificate | ||
| scope_name: otelcol/certificatereceiver | ||
|
|
||
| status: | ||
| class: receiver | ||
| stability: | ||
| beta: [metrics] | ||
| distributions: [contrib] | ||
|
|
||
| resource_attributes: | ||
| instance.id: | ||
| description: The nginx instance id. | ||
| type: string | ||
| enabled: true | ||
|
|
||
| attributes: | ||
| file_path: | ||
| description: "The full file path of the certificate." | ||
| type: string | ||
| public_key_algorithm: | ||
| description: "The public key algorithm." | ||
| type: string | ||
| serial_number: | ||
| description: "The serial number of the certificate." | ||
| type: string | ||
| subject.common_name: | ||
| description: "The Common Name of the certificate." | ||
| type: string | ||
|
|
||
| metrics: | ||
| nginx.certificate.expiry: | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TODO: agree on name (nginx.ssl.certificate.expiry to match existing ssl metrics or different namespace to avoid potentially conflicting in the future) |
||
| enabled: true | ||
| description: "The Unix timestamp (in seconds) at which an SSL/TLS certificate expires" | ||
| stability: | ||
| level: development | ||
| gauge: | ||
| value_type: int | ||
| unit: "s" | ||
| attributes: | ||
| - file_path | ||
| - public_key_algorithm | ||
| - serial_number | ||
| - subject.common_name | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Note: the mdatagen schema requires stability to be defined at both the receiver level (status.stability: beta: [metrics]) and the metric level (stability.level: development)