Skip to content

snmp-exporter: Add hsmPartitionSerialNumber and hsmPartitionLabel to …#11165

Open
rajivmucheli wants to merge 2 commits intomasterfrom
add-hsm-partition-labels-to-thales-metrics
Open

snmp-exporter: Add hsmPartitionSerialNumber and hsmPartitionLabel to …#11165
rajivmucheli wants to merge 2 commits intomasterfrom
add-hsm-partition-labels-to-thales-metrics

Conversation

@rajivmucheli
Copy link
Copy Markdown
Contributor

…all Thales metrics

This change ensures consistent labeling across all snmp_thales_* metrics by adding hsmPartitionSerialNumber and hsmPartitionLabel labels.

Changes:

  1. _snmp-exporter-thales.yaml:
    • Added hsmPartitionSerialNumber as an index to all HSM-level metrics
    • Added hsmPartitionLabel as a lookup (resolved from hsmSerialNumber + hsmPartitionSerialNumber)
    • Affected metrics (20 HSM-level metrics):
      • snmp_thales_hsmSerialNumber
      • snmp_thales_hsmFirmwareVersion * snmp_thales_hsmLabel * snmp_thales_hsmModel * snmp_thales_hsmAuthenticationMethod * snmp_thales_hsmRpvInitialized * snmp_thales_hsmFipsMode * snmp_thales_hsmPerformance * snmp_thales_hsmStorageTotalBytes * snmp_thales_hsmStorageAllocatedBytes * snmp_thales_hsmStorageAvailableBytes
        tRo e
        peconfig hales.y lin peconfig hales.y w peconfig hales.y lin me ure)
        also have the hsmPartitionSerialNumber label for consistent querying

Background:
Previously, only partition-level metrics had hsmPartitionSerialNumber and hsmPartitionPreviously, only partition-level mesmPreviously, only partition SystPreviously, only partition-leelatePreviously, only partition-level ionLabePreviously, only partition-level metrics hricRelabelings).

This change enables consistent Prometheus queries across all Thales metrics using both hsmPartitionSerialNumber and hsmPartitionLabel labels.

…all Thales metrics

This change ensures consistent labeling across all snmp_thales_* metrics by adding
hsmPartitionSerialNumber and hsmPartitionLabel labels.

Changes:
1. _snmp-exporter-thales.yaml:
   - Added hsmPartitionSerialNumber as an index to all HSM-level metrics
   - Added hsmPartitionLabel as a lookup (resolved from hsmSerialNumber + hsmPartitionSerialNumber)
   - Affected metrics (20 HSM-level metrics):
     * snmp_thales_hsmSerialNumber
     * snmp_thales_hsmFirmwareVersion
     * snmp_thales_hsmLabel
     * snmp_thales_hsmModel
     * snmp_thales_hsmAuthenticationMethod
     * snmp_thales_hsmRpvInitialized
     * snmp_thales_hsmFipsMode
     * snmp_thales_hsmPerformance
     * snmp_thales_hsmStorageTotalBytes
     * snmp_thales_hsmStorageAllocatedBytes
     * snmp_thales_hsmStorageAvailableBytes
                                                                                                                                                                                                                             tRo                                                                                e
                                                 peconfig  hales.y                            lin                                                 peconfig  hales.y      w                                                 peconfig  hales.y                            lin me                                        ure)
     also have the hsmPartitionSerialNumber label for consistent querying

Background:
Previously, only partition-level metrics had hsmPartitionSerialNumber and hsmPartitionPreviously, only partition-level mesmPreviously, only partition SystPreviously, only partition-leelatePreviously, only partition-level ionLabePreviously, only partition-level metrics hricRelabelings).

This change enables consistent Prometheus queries across all Thales metrics using
both hsmPartitionSerialNumber and hsmPartitionLabel labels.
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.

1 participant