Skip to content

Allow user to specify the name of the job #49

Closed as not planned
Closed as not planned

Description

@hatchan

Each target can have a name. This will be exposed as the job label in the metrics. It would be useful for the user to specify these names.

Currently we just have app_{} where the parenthesis will contain a incrementing number (to avoid collisions).

With a config file we can simply add another property, something like name. For the terminal approach, we might want to include a prefix or postfix. So something like api|:3000. The first part would be the name of the job, in this case api, and the part after the | will just be parsed as it currently is.

Activity

  1. hatchan commented on Jul 13, 2023

    @hatchan
    ContributorAuthor

    I was thinking that now that we have support for a toml file it might make sense to just keep it there and not make the using the cli arguments too complicated. Any thoughts on this @mies @mellowagain

  2. mellowagain commented on Jul 13, 2023

    @mellowagain
    Contributor

    where is job name even displayed? its not displayed in dora at all, right? only in prom/grafana, in which case yea config should be fine

  3. mies commented on Jul 13, 2023

    @mies
    Member

    I'd be in favor of reducing the complexity and number of arguments for the cli 🥳

  4. hatchan commented on Jul 14, 2023

    @hatchan
    ContributorAuthor

    where is job name even displayed? its not displayed in dora at all, right? only in prom/grafana, in which case yea config should be fine

    It is used in Prometheus. This jobname would be added to the metrics as a label that would be produced by this endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions