Skip to content

Add support for creating metrics from HTTP probe output #356

Closed

Description

@manugarg

I had opened ticket a long time back at the older location:
google/cloudprober#297

Recently while running a probe, I realized it can be quite a useful thing to be able to build metrics from HTTP probe's output.

Activity

  1. added
    enhancement
    on Apr 20, 2023
  2. manugarg commented on Sep 11, 2023

    @manugarg
    ContributorAuthor

    From the discussion on #508, I realized that we can probably go a step further and use HTTP headers for custom metrics as well. Something like:

    output_metric_options {
      header_to_metrics {
        header: LastModified (LastModified | ContentLength)
        metric: last-modified
      }
      header_to_metrics {
        header: ContentLength
        metric: content-length
      }
      ...
    }
    
  3. self-assigned this
    on Sep 11, 2023
  4. manugarg commented on Sep 15, 2023

    @manugarg
    ContributorAuthor

    We can go a step further and provide an option generate metrics from JSON when output is JSON.

  5. added this to the v0.13.8 milestone on Sep 10, 2024
  6. manugarg commented on Sep 10, 2024

    @manugarg
    ContributorAuthor

    This is now down. You can generate metrics from HTTP response headers, JSON, and plain old line based content.

    For example, to generate content_length metric by adding something like the following to your http_probe config stanza:

        response_metrics_options {
          header_metric {
            metric_name: "content-length"
            type: INT
          }
        }
    
  7. manugarg commented on Sep 10, 2024

    @manugarg
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions