Skip to content

[BUG] long metrics name are not working, and no error message is shown #443

@MansuyDavid

Description

@MansuyDavid

Description

If i use a long metric name for example : sqlid_without_profile_on_WCR_PTA_MULTI_DEEP_BIN_V
i never get the metric oracledb_test_sqlid_without_profile_on_WCR_PTA_MULTI_DEEP_BIN_V{sql_id="azerty"} 1
I think the error is caused by the long name of the metrics but I'm not sure.

Step to reproduce

use this in custom-metrics.yaml (it will probably do the same in default-metrics.yml) :

  - context: test
    databases:
    - oracle_PROD_DMAM
    ignorezeroresult: true
    labels:
    - sql_id
    metricsdesc:
      sqlid_without_profile_on_WCR_PTA_MULTI_DEEP_BIN_V: the value of test
    request: "select 'azerty' as sql_id, 1 as sqlid_without_profile_on_WCR_PTA_MULTI_DEEP_BIN_V from dual"

Expected Behavior

I was expecting at least some errors in the logs that says why this metric is not correctly handled.

Environment

  • OS: docker
  • Exporter version: 2.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions