Skip to content

Add project resource and limit metrics#3021

Merged
stgraber merged 3 commits intolxc:mainfrom
Adevixxx:metrics-project-resources
Mar 24, 2026
Merged

Add project resource and limit metrics#3021
stgraber merged 3 commits intolxc:mainfrom
Adevixxx:metrics-project-resources

Conversation

@Adevixxx
Copy link
Copy Markdown
Contributor

Hey!

This adds metrics for project resources (containers, virtual-machines, images, profiles, networks, storage-volumes) and project limit/usage when limits are configured.

On a side note, I was looking at the existing warnings metric and wanted to add more details like the severity or status. Would it be more useful to have one metric per warning with labels (severity, status, type, project, location, uuid) or is the aggregated count enough?

@Adevixxx Adevixxx requested a review from stgraber as a code owner March 11, 2026 10:32
@github-actions github-actions bot added Documentation Documentation needs updating API Changes to the REST API labels Mar 11, 2026
@Adevixxx Adevixxx force-pushed the metrics-project-resources branch 4 times, most recently from be726a9 to 691f506 Compare March 17, 2026 10:46
@Adevixxx Adevixxx force-pushed the metrics-project-resources branch from 691f506 to 4eea6d1 Compare March 17, 2026 10:50
@stgraber
Copy link
Copy Markdown
Member

On a side note, I was looking at the existing warnings metric and wanted to add more details like the severity or status. Would it be more useful to have one metric per warning with labels (severity, status, type, project, location, uuid) or is the aggregated count enough?

Yeah, the current warning metric is pretty useless, especially as it's counting "resolved" warnings too...

Thinking of it from a dashboard point of view, I'd like to easy be able to grab:

  • Total count of warnings
  • Total count of warnings for a given severity
  • Total count of warnings for a given server
  • Total count of warnings for a given project
  • Total count of warnings by status

So I'm not sure that the warning type is something we really need to expose as that's the most dynamic of the options and adding new metrics every time we introduce one would make it hard for dashboards to keep up, but having the ability to show a warning count and split by severity or status for a given project, or server would be useful.

@stgraber stgraber merged commit b32e643 into lxc:main Mar 24, 2026
56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API Changes to the REST API Documentation Documentation needs updating

Development

Successfully merging this pull request may close these issues.

2 participants