Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion .schema/pgdog.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@
"endpoint": null,
"headers": {},
"namespace": null,
"push_interval": 0
"push_interval": 10000,
"temporality_preference": "Cumulative"
}
},
"plugins": {
Expand Down Expand Up @@ -1507,10 +1508,35 @@
"format": "uint64",
"default": 10000,
"minimum": 0
},
"temporality_preference": {
"description": "Describes how the exported metric points should be described.\n\nSee https://opentelemetry.io/docs/specs/otel/metrics/data-model/#metric-points\n\n_Default:_ `Cumulative`, or `Delta` when `datadog_api_key` is set.\n\nEnv: `OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE`",
"$ref": "#/$defs/OtelTemporalityPreference",
"default": "Cumulative"
}
},
"additionalProperties": false
},
"OtelTemporalityPreference": {
"description": "Aggregation temporality used when exporting OTLP metric points.",
"oneOf": [
{
"description": "Points report the value accumulated since the exporter started.",
"type": "string",
"const": "Cumulative"
},
{
"description": "Points report the change since the last export.",
"type": "string",
"const": "Delta"
},
{
"description": "Delta for sums, cumulative for histograms; minimizes exporter memory.",
"type": "string",
"const": "LowMemory"
}
]
},
"PassthroughAuth": {
"description": "toggle automatic creation of connection pools given the user name, database and password.\n\nSee [passthrough authentication](https://docs.pgdog.dev/features/authentication/#passthrough-authentication).\n\n<https://docs.pgdog.dev/configuration/pgdog.toml/general/#passthrough_auth>",
"oneOf": [
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ Contributions are welcome. If you see a bug, feel free to submit a PR with a fix
1. Please format your code with `cargo fmt`.
2. If you're feeling generous, `cargo clippy` as well.
3. Please write and include tests. This is production software used in one of the most important areas of the stack.
4. If changes have been made to configuration schemas, run `cargo run -p pgdog-jsonschema`
23 changes: 23 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions pgdog-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pub mod general;
pub mod memory;
pub mod networking;
pub mod otel;
pub mod otel_temporality;
pub mod overrides;
pub mod pooling;
pub mod replication;
Expand Down
Loading
Loading