Skip to content

Automatically infer beats based on the URL protocol #5

Description

@gtramontina

As the title says, we could parse the given URLs and infer which beat to run. For example:

  • postgres://example.com/database - would run a postgres beat with a default query (SELECT 1, as the post on Extract beats and notifiers modules. #3 suggests);
  • mongodb://example.com/database - would run a mongodb beat with a query similar to postgres';
  • http://example.com - would run a GET;

This could also simplify the config, as we could simply have something along these lines:

{
  "database": "mongodb://example.com/database",
  "my-microservice": "http://example.com",

  // And if you'd like to specify the beat, like a ping instead of a GET, you could do:
  "my-microservice2": { "beat": "ping", "target": "http://example2.com" },
  …
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions