httpsd

package module
v0.0.0-...-009cb35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

README

prometheus-http-sd

a RAFT based prometheus http sd provider

API

GET    /api/v1/target/                                        # return targets list
POST   /api/v1/target/                                        # creates a new target group
GET    /api/v1/target/<target_group_id>                       # retrieves the target group
PUT    /api/v1/target/<target_group_id>/label                 # add a label or server to target group
PATCH  /api/v1/target/<target_group_id>/label/<label_key>     # updates a label in a target group
DELETE /api/v1/target/<target_group_id>/label/<label_key>     # deletes a label in a target group
DELETE /api/v1/target/<target_group_id>/server/<server_id>  # deletes a server in a target group

Data Model |––root | ├─TargetGroup/ | | ├─ 1/ | | │ ├─ label | | │ ├─ target/ | | │ │ ├─ 1 | | │ │ ├─ 2

example

Documentation

Overview

raftexample is a simple KV store using the raft and rafthttp libraries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config() string

Types

This section is empty.

Directories

Path Synopsis
cmd
internal
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL