MetricsConfiguration¶
- pydantic settings safir.metrics.MetricsConfiguration¶
Configuration for emitting metrics.
- Parameters:
_nested_model_default_partial_update (
bool
|None
, default:None
)_env_file (
Union
[Path
,str
,List
[Union
[str
,Path
]],Tuple
[Union
[Path
,str
],...
],None
], default:PosixPath('.')
)_cli_parse_args (
bool
|list
[str
] |tuple
[str
,...
] |None
, default:None
)_cli_settings_source (
Optional
[CliSettingsSource
[Any
]], default:None
)_secrets_dir (
Union
[Path
,str
,List
[Union
[str
,Path
]],Tuple
[Union
[Path
,str
],...
],None
], default:None
)values (
Any
)
Show JSON schema
{ "title": "MetricsConfiguration", "description": "Configuration for emitting metrics.", "type": "object", "properties": { "topic_prefix": { "default": "lsst.square.metrics.events", "description": "You probably should use the default here. It could be useful in development scenarios to change this.", "title": "Metrics topic prefix", "type": "string" }, "app_name": { "description": "The name of the application that is emitting these metrics", "title": "Application name", "type": "string" }, "disable": { "default": false, "description": "Set to \"True\" to prevent actually publishing metrics", "title": "Disable", "type": "boolean" } }, "additionalProperties": false, "required": [ "app_name" ] }
- Config:
env_prefix: str = METRICS_
- Fields: