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

add: Additional Metrics #13

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

ririnto
Copy link

@ririnto ririnto commented Jan 18, 2025

Change Log

Major Changes

  1. Updated serviceTypes to Match Monit Naming

    • The serviceTypes map has been updated to align with Monit naming conventions for better compatibility.
    var serviceTypes = map[int]string{
        0: "Filesystem",
        1: "Directory",
        2: "File",
        3: "Process",
        4: "Remote host",
        5: "System",
        6: "Fifo",
        7: "Program",
        8: "Network",
    }
  2. Renamed Metric Labels

    • Metric label names have been updated to improve clarity and consistency with Monit conventions.
    labelNames := []string{"service_name", "service_type", "service_monitor_status"}
  3. Extended Supported Metrics

    • New Monit-related metrics have been added to enhance monitoring capabilities:
      • monit_exporter_up
      • monit_exporter_service_check
      • monit_service_block_usage_bytes
      • monit_service_block_total_bytes
      • monit_service_block_usage_percent
      • monit_service_inode_usage
      • monit_service_inode_total
      • monit_service_inode_usage_percent
      • monit_service_port_response_seconds
      • monit_service_system_loadavg_01
      • monit_service_system_loadavg_05
      • monit_service_system_loadavg_15
      • monit_service_system_cpu_user_percent
      • monit_service_system_cpu_system_percent
      • monit_service_system_cpu_wait_percent
      • monit_service_system_memory_usage_percent
      • monit_service_system_memory_usage_kilobytes
      • monit_service_system_swap_usage_percent
      • monit_service_system_swap_usage_kilobytes
  4. Automated Release Creation on Tag

    • Configured GitHub Actions or CI/CD pipelines to automatically generate a Release when a tag is created.
  5. Renamed Executable File

    • The executable file name has been changed from monit_exporter to monit-exporter to standardize naming conventions.

These changes aim to improve compatibility with Monit, enhance monitoring capabilities, and provide a more consistent user experience.


변경 로그

주요 변경 사항

  1. serviceTypes를 Monit 명칭과 동일하게 업데이트

    • serviceTypes 맵을 Monit 명칭과 동일하게 변경하여 호환성을 강화하였습니다.
    var serviceTypes = map[int]string{
        0: "Filesystem",
        1: "Directory",
        2: "File",
        3: "Process",
        4: "Remote host",
        5: "System",
        6: "Fifo",
        7: "Program",
        8: "Network",
    }
  2. Metric Label 이름 변경

    • Metric 라벨 이름을 보다 명확하고 Monit 명명 규칙에 맞게 수정하였습니다.
    labelNames := []string{"service_name", "service_type", "service_monitor_status"}
  3. 지원하는 Metric 확장

    • 모니터링 기능 강화를 위해 새로운 Monit 관련 Metric을 추가하였습니다:
      • monit_exporter_up
      • monit_exporter_service_check
      • monit_service_block_usage_bytes
      • monit_service_block_total_bytes
      • monit_service_block_usage_percent
      • monit_service_inode_usage
      • monit_service_inode_total
      • monit_service_inode_usage_percent
      • monit_service_port_response_seconds
      • monit_service_system_loadavg_01
      • monit_service_system_loadavg_05
      • monit_service_system_loadavg_15
      • monit_service_system_cpu_user_percent
      • monit_service_system_cpu_system_percent
      • monit_service_system_cpu_wait_percent
      • monit_service_system_memory_usage_percent
      • monit_service_system_memory_usage_kilobytes
      • monit_service_system_swap_usage_percent
      • monit_service_system_swap_usage_kilobytes
  4. 태그 지정 시 Release 생성 자동화

    • GitHub Actions 또는 CI/CD 파이프라인에서 태그가 생성되면 자동으로 Release를 생성하도록 구성하였습니다.
  5. 실행 파일명 변경

    • 실행 파일명을 기존 monit_exporter에서 monit-exporter로 변경하여 파일명 스타일을 표준화하였습니다.

이 변경 사항은 Monit과의 호환성을 강화하고 모니터링 기능을 확장하며, 사용자 경험을 개선하기 위해 설계되었습니다.

# Change Log

## Major Changes

1. **Updated `serviceTypes` to Match Monit Naming**
    - The `serviceTypes` map has been updated to align with Monit naming conventions for better compatibility.
    ```go
    var serviceTypes = map[int]string{
        0: "Filesystem",
        1: "Directory",
        2: "File",
        3: "Process",
        4: "Remote host",
        5: "System",
        6: "Fifo",
        7: "Program",
        8: "Network",
    }
    ```

2. **Renamed Metric Labels**
    - Metric label names have been updated to improve clarity and consistency with Monit conventions.
    ```go
    labelNames := []string{"service_name", "service_type", "service_monitor_status"}
    ```

3. **Extended Supported Metrics**
    - New Monit-related metrics have been added to enhance monitoring capabilities:
        - `monit_exporter_up`
        - `monit_exporter_service_check`
        - `monit_service_block_usage_bytes`
        - `monit_service_block_total_bytes`
        - `monit_service_block_usage_percent`
        - `monit_service_inode_usage`
        - `monit_service_inode_total`
        - `monit_service_inode_usage_percent`
        - `monit_service_port_response_seconds`
        - `monit_service_system_loadavg_01`
        - `monit_service_system_loadavg_05`
        - `monit_service_system_loadavg_15`
        - `monit_service_system_cpu_user_percent`
        - `monit_service_system_cpu_system_percent`
        - `monit_service_system_cpu_wait_percent`
        - `monit_service_system_memory_usage_percent`
        - `monit_service_system_memory_usage_kilobytes`
        - `monit_service_system_swap_usage_percent`
        - `monit_service_system_swap_usage_kilobytes`

4. **Automated Release Creation on Tag**
    - Configured GitHub Actions or CI/CD pipelines to automatically generate a Release when a tag is created.

5. **Renamed Executable File**
    - The executable file name has been changed from `monit_exporter` to `monit-exporter` to standardize naming conventions.

These changes aim to improve compatibility with Monit, enhance monitoring capabilities, and provide a more consistent user experience.

---

# 변경 로그

## 주요 변경 사항

1. **`serviceTypes`를 Monit 명칭과 동일하게 업데이트**
    - `serviceTypes` 맵을 Monit 명칭과 동일하게 변경하여 호환성을 강화하였습니다.
    ```go
    var serviceTypes = map[int]string{
        0: "Filesystem",
        1: "Directory",
        2: "File",
        3: "Process",
        4: "Remote host",
        5: "System",
        6: "Fifo",
        7: "Program",
        8: "Network",
    }
    ```

2. **Metric Label 이름 변경**
    - Metric 라벨 이름을 보다 명확하고 Monit 명명 규칙에 맞게 수정하였습니다.
    ```go
    labelNames := []string{"service_name", "service_type", "service_monitor_status"}
    ```

3. **지원하는 Metric 확장**
    - 모니터링 기능 강화를 위해 새로운 Monit 관련 Metric을 추가하였습니다:
        - `monit_exporter_up`
        - `monit_exporter_service_check`
        - `monit_service_block_usage_bytes`
        - `monit_service_block_total_bytes`
        - `monit_service_block_usage_percent`
        - `monit_service_inode_usage`
        - `monit_service_inode_total`
        - `monit_service_inode_usage_percent`
        - `monit_service_port_response_seconds`
        - `monit_service_system_loadavg_01`
        - `monit_service_system_loadavg_05`
        - `monit_service_system_loadavg_15`
        - `monit_service_system_cpu_user_percent`
        - `monit_service_system_cpu_system_percent`
        - `monit_service_system_cpu_wait_percent`
        - `monit_service_system_memory_usage_percent`
        - `monit_service_system_memory_usage_kilobytes`
        - `monit_service_system_swap_usage_percent`
        - `monit_service_system_swap_usage_kilobytes`

4. **태그 지정 시 Release 생성 자동화**
    - GitHub Actions 또는 CI/CD 파이프라인에서 태그가 생성되면 자동으로 Release를 생성하도록 구성하였습니다.

5. **실행 파일명 변경**
    - 실행 파일명을 기존 `monit_exporter`에서 `monit-exporter`로 변경하여 파일명 스타일을 표준화하였습니다.

이 변경 사항은 Monit과의 호환성을 강화하고 모니터링 기능을 확장하며, 사용자 경험을 개선하기 위해 설계되었습니다.
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