Skip to content

Commit

Permalink
[receiver/postgresql] Fix unit field in metadata.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryax committed Dec 1, 2021
1 parent 4f24c27 commit 1ea5733
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 21 deletions.
14 changes: 7 additions & 7 deletions receiver/postgresqlreceiver/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ These are the metrics available for this scraper.

| Name | Description | Unit | Type | Attributes |
| ---- | ----------- | ---- | ---- | ---------- |
| postgresql.backends | The number of backends. | | Sum | <ul> <li>database</li> </ul> |
| postgresql.blocks_read | The number of blocks read. | | Sum | <ul> <li>database</li> <li>table</li> <li>source</li> </ul> |
| postgresql.commits | The number of commits. | | Sum | <ul> <li>database</li> </ul> |
| postgresql.db_size | The database disk usage. | | Sum | <ul> <li>database</li> </ul> |
| postgresql.operations | The number of db row operations. | | Sum | <ul> <li>database</li> <li>table</li> <li>operation</li> </ul> |
| postgresql.rollbacks | The number of rollbacks. | | Sum | <ul> <li>database</li> </ul> |
| postgresql.rows | The number of rows in the database. | | Sum | <ul> <li>database</li> <li>table</li> <li>state</li> </ul> |
| postgresql.backends | The number of backends. | 1 | Sum | <ul> <li>database</li> </ul> |
| postgresql.blocks_read | The number of blocks read. | 1 | Sum | <ul> <li>database</li> <li>table</li> <li>source</li> </ul> |
| postgresql.commits | The number of commits. | 1 | Sum | <ul> <li>database</li> </ul> |
| postgresql.db_size | The database disk usage. | By | Sum | <ul> <li>database</li> </ul> |
| postgresql.operations | The number of db row operations. | 1 | Sum | <ul> <li>database</li> <li>table</li> <li>operation</li> </ul> |
| postgresql.rollbacks | The number of rollbacks. | 1 | Sum | <ul> <li>database</li> </ul> |
| postgresql.rows | The number of rows in the database. | 1 | Sum | <ul> <li>database</li> <li>table</li> <li>state</li> </ul> |

## Attributes

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions receiver/postgresqlreceiver/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,49 +19,49 @@ attributes:
metrics:
postgresql.blocks_read:
description: The number of blocks read.
units: 1
unit: 1
sum:
monotonic: true
aggregation: cumulative
attributes: [ database, table, source ]
postgresql.commits:
description: The number of commits.
units: 1
unit: 1
sum:
monotonic: true
aggregation: cumulative
attributes: [ database ]
postgresql.db_size:
description: The database disk usage.
units: By
unit: By
sum:
monotonic: false
aggregation: cumulative
attributes: [ database ]
postgresql.backends:
description: The number of backends.
units: 1
unit: 1
sum:
monotonic: false
aggregation: cumulative
attributes: [ database ]
postgresql.rows:
description: The number of rows in the database.
units: 1
unit: 1
sum:
monotonic: false
aggregation: cumulative
attributes: [ database, table, state ]
postgresql.operations:
description: The number of db row operations.
units: 1
unit: 1
sum:
monotonic: true
aggregation: cumulative
attributes: [ database, table, operation ]
postgresql.rollbacks:
description: The number of rollbacks.
units: 1
unit: 1
sum:
monotonic: true
aggregation: cumulative
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
{
"description": "The number of blocks read.",
"name": "postgresql.blocks_read",
"unit": "1",
"sum": {
"aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE",
"dataPoints": [
Expand Down Expand Up @@ -1172,6 +1173,7 @@
{
"description": "The number of commits.",
"name": "postgresql.commits",
"unit": "1",
"sum": {
"aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE",
"dataPoints": [
Expand Down Expand Up @@ -1218,6 +1220,7 @@
{
"description": "The database disk usage.",
"name": "postgresql.db_size",
"unit": "By",
"sum": {
"aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE",
"dataPoints": [
Expand Down Expand Up @@ -1263,6 +1266,7 @@
{
"description": "The number of backends.",
"name": "postgresql.backends",
"unit": "1",
"sum": {
"aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE",
"dataPoints": [
Expand Down Expand Up @@ -1308,6 +1312,7 @@
{
"description": "The number of rows in the database.",
"name": "postgresql.rows",
"unit": "1",
"sum": {
"aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE",
"dataPoints": [
Expand Down Expand Up @@ -1605,6 +1610,7 @@
{
"description": "The number of db row operations.",
"name": "postgresql.operations",
"unit": "1",
"sum": {
"aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE",
"dataPoints": [
Expand Down Expand Up @@ -2191,6 +2197,7 @@
{
"description": "The number of rollbacks.",
"name": "postgresql.rollbacks",
"unit": "1",
"sum": {
"aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE",
"dataPoints": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
{
"description": "The number of blocks read.",
"name": "postgresql.blocks_read",
"unit": "1",
"sum": {
"aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE",
"dataPoints": [
Expand Down Expand Up @@ -404,6 +405,7 @@
{
"description": "The number of commits.",
"name": "postgresql.commits",
"unit": "1",
"sum": {
"aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE",
"dataPoints": [
Expand All @@ -426,6 +428,7 @@
{
"description": "The database disk usage.",
"name": "postgresql.db_size",
"unit": "By",
"sum": {
"aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE",
"dataPoints": [
Expand All @@ -447,6 +450,7 @@
{
"description": "The number of backends.",
"name": "postgresql.backends",
"unit": "1",
"sum": {
"aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE",
"dataPoints": [
Expand All @@ -468,6 +472,7 @@
{
"description": "The number of rows in the database.",
"name": "postgresql.rows",
"unit": "1",
"sum": {
"aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE",
"dataPoints": [
Expand Down Expand Up @@ -573,6 +578,7 @@
{
"description": "The number of db row operations.",
"name": "postgresql.operations",
"unit": "1",
"sum": {
"aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE",
"dataPoints": [
Expand Down Expand Up @@ -775,6 +781,7 @@
{
"description": "The number of rollbacks.",
"name": "postgresql.rollbacks",
"unit": "1",
"sum": {
"aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE",
"dataPoints": [
Expand Down

0 comments on commit 1ea5733

Please sign in to comment.