Skip to content

Documentation: add a guide for quarkus-info #45111

Open
@jmini

Description

@jmini

I think the io.quarkus:quarkus-info deserves its own guide.

It is a small but very useful feature.

--> Announced here https://quarkus.io/blog/quarkus-3-0-0-cr1-released/#qinfo

But there is way more.

There is an extension page: https://quarkus.io/extensions/io.quarkus/quarkus-info/

A lot of spring users are wondering what is the replacement for the "actuator" feature. (I am not a Spring user myself, but I think there is at least some overlap with quarkus-info)

Example questions:

Configs

Related configs: quakurs.info.* configs (I think there is a way to display the table of related configs)

Features

Some interesting features that could be highlighted:

Info beans can be injected

Example:

	@Inject
	io.quarkus.info.GitInfo info;

    @GET
    @Produces(MediaType.TEXT_PLAIN)
    public String hello() {
        return "Hello from Quarkus REST: " + info.latestCommitId();
    }

--> See #32994

In case you need the commit-id or something else as part some features you already provide.

Or also a quarkus-based CLI app will not have a /q/info endpoint.

Apps/Extensions can contribute to /q/info

I didn't tried it but see:
--> #37994


Related issues:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions