Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added label tenant_id to limits_vcpus_max, limits_vcpus_used, limits_… #92

Merged
merged 1 commit into from
Mar 26, 2020

Conversation

tzmtl
Copy link
Contributor

@tzmtl tzmtl commented Mar 26, 2020

There are some errors in my environments:

4 error(s) occurred:
* collected metric "openstack_nova_limits_vcpus_max" { label:<name:"tenant" value:"test-project" > gauge:<value:22 > } was collected before with the same name and label values
* collected metric "openstack_nova_limits_vcpus_used" { label:<name:"tenant" value:"test-project" > gauge:<value:0 > } was collected before with the same name and label values
* collected metric "openstack_nova_limits_memory_max" { label:<name:"tenant" value:"test-project" > gauge:<value:51200 > } was collected before with the same name and label values
* collected metric "openstack_nova_limits_memory_used" { label:<name:"tenant" value:"test-project" > gauge:<value:0 > } was collected before with the same name and label values

In these 4 metrics, the label is "tenant", it's project name. But project name is not unique in OpenStack, so when there are duplicate project names in an environment, there will be errors above.

I didn't change the label, maybe someone needs the project name in labels. I just added a new label tenant_id. This can prevent duplication.

…memory_max, limits_memory_used

Without this label there will be errors when there are projects having the same project name, for project name is not uniq in OpenStack
@niedbalski niedbalski merged commit c99b822 into openstack-exporter:master Mar 26, 2020
niedbalski added a commit that referenced this pull request Mar 27, 2020
Fixes and PR(s) merged.

f1b6596 Fix a bug can cause duplicate metrics and improve the implementation (#93)
a96e106 Add disabled reason label for Nova and Cinder (#91)
bd991bc Add cinder capacity metrics (#89)
f611a68 fix failed tests by adding tenant_id (#94)
c99b822 Added label tenant_id to limits_vcpus_max, limits_vcpus_used, limits_memory_max, limits_memory_used (#92)
767d43f Add log level flag (#90)
9282693 Added check on FIPs associated but not active (#85)
d431ae6 Loadbalancer (#81)
f3c8143 New Neutron metrics + inconsistency checks (#82)
ecad378 Improve testing and add ip_version to availabilities (#77)

Signed-off-by: Jorge Niedbalski <[email protected]>
niedbalski added a commit that referenced this pull request Mar 27, 2020
Fixes and PR(s) merged.

f1b6596 Fix a bug can cause duplicate metrics and improve the implementation (#93)
a96e106 Add disabled reason label for Nova and Cinder (#91)
bd991bc Add cinder capacity metrics (#89)
f611a68 fix failed tests by adding tenant_id (#94)
c99b822 Added label tenant_id to limits_vcpus_max, limits_vcpus_used, limits_memory_max, limits_memory_used (#92)
767d43f Add log level flag (#90)
9282693 Added check on FIPs associated but not active (#85)
d431ae6 Loadbalancer (#81)
f3c8143 New Neutron metrics + inconsistency checks (#82)
ecad378 Improve testing and add ip_version to availabilities (#77)

Signed-off-by: Jorge Niedbalski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants