{"id":19838514,"url":"https://github.com/metal-stack/metal-metrics-exporter","last_synced_at":"2025-05-01T18:31:24.327Z","repository":{"id":37926712,"uuid":"483222471","full_name":"metal-stack/metal-metrics-exporter","owner":"metal-stack","description":"metrics exporter for metal-api","archived":false,"fork":false,"pushed_at":"2025-03-04T08:53:27.000Z","size":169,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-04-06T16:49:28.068Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metal-stack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-19T11:44:25.000Z","updated_at":"2025-01-30T13:10:02.000Z","dependencies_parsed_at":"2024-06-21T12:28:37.493Z","dependency_job_id":"1268e450-af1a-4bb9-aca7-0f9189e756ba","html_url":"https://github.com/metal-stack/metal-metrics-exporter","commit_stats":{"total_commits":31,"total_committers":3,"mean_commits":"10.333333333333334","dds":"0.22580645161290325","last_synced_commit":"40169e7de4ce09fec6ae3aaebd8b64f6e11dd157"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metal-stack%2Fmetal-metrics-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metal-stack%2Fmetal-metrics-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metal-stack%2Fmetal-metrics-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metal-stack%2Fmetal-metrics-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metal-stack","download_url":"https://codeload.github.com/metal-stack/metal-metrics-exporter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251924741,"owners_count":21666032,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T12:18:01.858Z","updated_at":"2025-05-01T18:31:24.319Z","avatar_url":"https://github.com/metal-stack.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# metal-metrics-exporter\n\nA simple exporter for metal-api metrics.\n\n## sample output\n\n```text\n# HELP metal_image_used_total The total number of machines using a image\n# TYPE metal_image_used_total gauge\nmetal_image_used_total{classification=\"preview\",created=\"1588078965\",expirationDate=\"1598533365\",features=\"firewall\",imageID=\"firewall-ubuntu-2.0.20200331\",name=\"Firewall 2 Ubuntu 20200331\"} 2\n\n# HELP metal_network_info Shows available prefixes in a network\n# TYPE metal_network_info gauge\nmetal_network_info{description=\"\",destPrefixes=\"\",isPrivateSuper=\"false\",isUnderlay=\"false\",name=\"ausfalltest\",networkId=\"020966ab-18da-40d6-ba69-fea8d60e6074\",parentNetworkID=\"tenant-super-network-nbg-w8101\",partition=\"nbg-w8101\",prefixes=\"10.91.112.0/22\",projectId=\"c77daafe-58f8-44df-82eb-6ef631cee3c9\",useNat=\"false\",vrf=\"454\"} 1\n\n# HELP metal_network_ip_available The total number of available IPs of the network\n# TYPE metal_network_ip_available gauge\nmetal_network_ip_available{networkId=\"020966ab-18da-40d6-ba69-fea8d60e6074\"} 1024\n\n# HELP metal_network_ip_used The total number of used IPs of the network\n# TYPE metal_network_ip_used gauge\nmetal_network_ip_used{networkId=\"020966ab-18da-40d6-ba69-fea8d60e6074\"} 2\n\n# HELP metal_network_prefix_available The total number of available prefixes of the network\n# TYPE metal_network_prefix_available gauge\nmetal_network_prefix_available{networkId=\"020966ab-18da-40d6-ba69-fea8d60e6074\"} 256\n\n# HELP metal_network_prefix_used The total number of used prefixes of the network\n# TYPE metal_network_prefix_used gauge\nmetal_network_prefix_used{networkId=\"020966ab-18da-40d6-ba69-fea8d60e6074\"} 0\n\n# HELP metal_partition_capacity_allocatable The total number of waiting allocatable machines in the partition\n# TYPE metal_partition_capacity_allocatable gauge\nmetal_partition_capacity_allocatable{partition=\"fra-equ01\",size=\"c1-xlarge-x86\"} 2\n\n# HELP metal_partition_capacity_allocated The capacity of allocated machines in the partition\n# TYPE metal_partition_capacity_allocated gauge\nmetal_partition_capacity_allocated{partition=\"fra-equ01\",size=\"c1-xlarge-x86\"} 1\n\n# HELP metal_partition_capacity_faulty The capacity of faulty machines in the partition\n# TYPE metal_partition_capacity_faulty gauge\nmetal_partition_capacity_faulty{partition=\"fra-equ01\",size=\"c1-xlarge-x86\"} 0\n\n# HELP metal_partition_capacity_free (DEPRECATED) The total number of allocatable machines in the partition, use metal_partition_capacity_allocatable\n# TYPE metal_partition_capacity_free gauge\nmetal_partition_capacity_free{partition=\"fra-equ01\",size=\"c1-xlarge-x86\"} 2\n\n# HELP metal_partition_capacity_other The total number of machines in an other state in the partition\n# TYPE metal_partition_capacity_other gauge\nmetal_partition_capacity_other{partition=\"fra-equ01\",size=\"c1-xlarge-x86\"} 0\n\n# HELP metal_partition_capacity_phoned_home The total number of faulty machines in the partition\n# TYPE metal_partition_capacity_phoned_home gauge\nmetal_partition_capacity_phoned_home{partition=\"fra-equ01\",size=\"c1-xlarge-x86\"} 1\n\n# HELP metal_partition_capacity_reservations_total The sum of capacity reservations in the partition\n# TYPE metal_partition_capacity_reservations_total gauge\nmetal_partition_capacity_reservations_total{partition=\"fra-equ01\",size=\"c1-xlarge-x86\"} 1\n\n# HELP metal_partition_capacity_reservations_used The sum of used capacity reservations in the partition\n# TYPE metal_partition_capacity_reservations_used gauge\nmetal_partition_capacity_reservations_used{partition=\"fra-equ01\",size=\"c1-xlarge-x86\"} 0\n\n# HELP metal_partition_capacity_total The total number of machines in the partition\n# TYPE metal_partition_capacity_total gauge\nmetal_partition_capacity_total{partition=\"fra-equ01\",size=\"c1-xlarge-x86\"} 3\n\n# HELP metal_partition_capacity_unavailable The total number of faulty machines in the partition\n# TYPE metal_partition_capacity_unavailable gauge\nmetal_partition_capacity_unavailable{partition=\"fra-equ01\",size=\"c1-xlarge-x86\"} 0\n\n# HELP metal_partition_capacity_waiting The total number of waiting machines in the partition\n# TYPE metal_partition_capacity_waiting gauge\nmetal_partition_capacity_waiting{partition=\"fra-equ01\",size=\"c1-xlarge-x86\"} 2\n\n# HELP metal_switch_sync_durations The duration of the syncs\n# TYPE metal_switch_sync_durations gauge\nmetal_switch_sync_durations{partition=\"fra-equ01\",rackid=\"fra-equ01-rack01\",switchname=\"fra-equ01-r01leaf01\"} 2.06530044e+08\nmetal_switch_sync_durations{partition=\"fra-equ01\",rackid=\"fra-equ01-rack01\",switchname=\"fra-equ01-r01leaf02\"} 2.24029886e+08\n\n# HELP metal_switch_sync_failed 1 when the switch sync is failing, otherwise 0\n# TYPE metal_switch_sync_failed gauge\nmetal_switch_sync_failed{partition=\"fra-equ01\",rackid=\"fra-equ01-rack01\",switchname=\"fra-equ01-r01leaf01\"} 0\nmetal_switch_sync_failed{partition=\"fra-equ01\",rackid=\"fra-equ01-rack01\",switchname=\"fra-equ01-r01leaf02\"} 0\n\n# HELP metal_machine_hardware_info Provide information about the machine\n# TYPE metal_machine_hardware_info gauge\nmetal_machine_hardware_info{size=\"c1-xlarge-x86\",biosVersion=\"3.4\",bmcVersion=\"1.73\",boardMfg=\"Supermicro\",boardMfgSerial=\"\",boardPartNumber=\"X11DPT-B\",chassisPartNumber=\"CSE-217BHQ+-R2K22BP2\",chassisPartSerial=\"C217BAH24AE0006\",machineid=\"11111111-2222-3333-4444-aabbccddeeff\",partition=\"fra-equ01\",productManufacturer=\"Supermicro\",productPartNumber=\"SYS-2029BT-HNR\",productSerial=\"E262335X9100766D\"} 1\n\n# HELP metal_machine_info Provide the ipmi ip address\n# TYPE metal_machine_info gauge\nmetal_machine_info{ipmiIP=\"10.1.1.36:623\",machineid=\"11111111-2222-3333-4444-aabbccddeeff\"} 1\n\n# HELP metal_machine_power_state Provide information about the machine power state\n# TYPE metal_machine_power_state gauge\nmetal_machine_power_state{machineid=\"11111111-2222-3333-4444-aabbccddeeff\"} 1\n\n# HELP metal_machine_power_supplies_healthy Provide information about the number of healthy power supplies\n# TYPE metal_machine_power_supplies_healthy gauge\nmetal_machine_power_supplies_healthy{machineid=\"11111111-2222-3333-4444-aabbccddeeff\"} 2\n\n# HELP metal_machine_power_supplies_total Provide information about the total number of power supplies\n# TYPE metal_machine_power_supplies_total gauge\nmetal_machine_power_supplies_total{machineid=\"11111111-2222-3333-4444-aabbccddeeff\"} 2\n\n# HELP metal_machine_power_usage Provide information about the machine power usage in watts\n# TYPE metal_machine_power_usage gauge\nmetal_machine_power_usage{machineid=\"11111111-2222-3333-4444-aabbccddeeff\"} 69\n\n# HELP metal_switch_interface_bgp_established_timestamp Provide the unix timestamp since BGP is established on the interfaces (0 if not established)\n# TYPE metal_switch_interface_bgp_established_timestamp gauge\nmetal_switch_interface_bgp_established_timestamp{device=\"Ethernet2\",machineid=\"11111111-2222-3333-4444-aabbccddeeff\",partition=\"fra-equ01\",switchname=\"fra-equ01-r02leaf01\"} 0\nmetal_switch_interface_bgp_established_timestamp{device=\"Ethernet2\",machineid=\"11111111-2222-3333-4444-aabbccddeeff\",partition=\"fra-equ01\",switchname=\"fra-equ01-r02leaf02\"} 1.731591734e+09\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetal-stack%2Fmetal-metrics-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetal-stack%2Fmetal-metrics-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetal-stack%2Fmetal-metrics-exporter/lists"}