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

feat: Host Metrics Generator #1556

Merged
merged 4 commits into from
Mar 19, 2024
Merged

Conversation

shazlehu
Copy link
Contributor

@shazlehu shazlehu commented Mar 13, 2024

Proposed Change

To generate host metrics:

telemetrygeneratorreceiver:
    payloads_per_second: 1
    generators:
        - type: host_metrics
          resource_attributes:
            host.name: 2ed77de7e4c1
            os.type: linux     

To generate random metrics:

telemetrygeneratorreceiver:
    payloads_per_second: 1
    generators:
        - type: metrics
          resource_attributes:
            host.name: 2ed77de7e4c1
            os.type: linux          
          additional_config:
            metrics: 
            # memory metrics
             - name:	system.memory.usage
                value_min: 100000
                value_max: 1000000000
                type:	Sum
                unit:	By
                attributes:
                  state: cached
            # load metrics                  
              - name:	system.cpu.load_average.1m
                value_min: 0
                value_max: 1
                type: Gauge
                unit:	"{thread}"   
            # file system metrics                                          
              - name: system.filesystem.usage
                value_min: 0
                value_max: 15616700416
                type: Sum
                unit: By
                attributes:
                  device: "/dev/vda1"
                  mode: rw
                  mountpoint: "/etc/hosts"
                  state: reserved
                  type: ext4          

See README.md and sample_configs/metrics_config.yaml for additional details.

Checklist
  • Changes are tested
  • CI has passed

@shazlehu shazlehu force-pushed the feat/host-metrics-generator branch from 651809e to 98de140 Compare March 13, 2024 22:00
@shazlehu shazlehu marked this pull request as ready for review March 14, 2024 12:59
@shazlehu shazlehu requested review from cpheps, BinaryFissionGames and a team as code owners March 14, 2024 12:59
@shazlehu shazlehu force-pushed the feat/host-metrics-generator branch from 9e5a5ea to a1c6d34 Compare March 15, 2024 14:46
@shazlehu shazlehu force-pushed the feat/host-metrics-generator branch from 75c0e84 to e553cc9 Compare March 18, 2024 13:23
@shazlehu shazlehu requested a review from cpheps March 18, 2024 13:43
@shazlehu shazlehu force-pushed the feat/host-metrics-generator branch from e553cc9 to 237da23 Compare March 18, 2024 15:24
@shazlehu shazlehu requested a review from cpheps March 18, 2024 15:59
@shazlehu shazlehu merged commit db76ac9 into release/v1.47.0 Mar 19, 2024
15 checks passed
@shazlehu shazlehu deleted the feat/host-metrics-generator branch March 19, 2024 11:57
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.

2 participants