Dagger
Search

prometheus

No long description provided.

Installation

dagger install github.com/EladAviczer/daggerverse/prometheus@30f61187ccc72f9d44cbb4cb43c50bc5b7145dbc

Entrypoint

Return Type
Prometheus !
Arguments
NameTypeDefault ValueDescription
prometheusurlString !-prometheus server URL
Example
dagger -m github.com/EladAviczer/daggerverse/prometheus@30f61187ccc72f9d44cbb4cb43c50bc5b7145dbc call \
 --prometheusurl string
func (m *MyModule) Example(prometheusurl string) *dagger.Prometheus  {
	return dag.
			Prometheus(prometheusurl)
}
@function
def example(prometheusurl: str) -> dagger.Prometheus:
	return (
		dag.prometheus(prometheusurl)
	)
@func()
example(prometheusurl: string): Prometheus {
	return dag
		.prometheus(prometheusurl)
}

Types

Prometheus 🔗

baseUrl() 🔗

Return Type
String !
Example
dagger -m github.com/EladAviczer/daggerverse/prometheus@30f61187ccc72f9d44cbb4cb43c50bc5b7145dbc call \
 --prometheusurl string base-url
func (m *MyModule) Example(ctx context.Context, prometheusurl string) string  {
	return dag.
			Prometheus(prometheusurl).
			BaseUrl(ctx)
}
@function
async def example(prometheusurl: str) -> str:
	return await (
		dag.prometheus(prometheusurl)
		.base_url()
	)
@func()
async example(prometheusurl: string): Promise<string> {
	return dag
		.prometheus(prometheusurl)
		.baseUrl()
}

promQl() 🔗

PromQl runs an instant PromQL query via /api/v1/query (JSON output).

Return Type
String !
Arguments
NameTypeDefault ValueDescription
promQueryString !-query in PromQL format
bearerSecret -No description provided
Example
dagger -m github.com/EladAviczer/daggerverse/prometheus@30f61187ccc72f9d44cbb4cb43c50bc5b7145dbc call \
 --prometheusurl string prom-ql --prom-query string
func (m *MyModule) Example(ctx context.Context, prometheusurl string, promQuery string) string  {
	return dag.
			Prometheus(prometheusurl).
			PromQl(ctx, promQuery)
}
@function
async def example(prometheusurl: str, prom_query: str) -> str:
	return await (
		dag.prometheus(prometheusurl)
		.prom_ql(prom_query)
	)
@func()
async example(prometheusurl: string, promQuery: string): Promise<string> {
	return dag
		.prometheus(prometheusurl)
		.promQl(promQuery)
}

firingAlerts() 🔗

FiringAlerts queries the /api/v1/alerts endpoint to list all firing alerts.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
bearerSecret -No description provided
Example
dagger -m github.com/EladAviczer/daggerverse/prometheus@30f61187ccc72f9d44cbb4cb43c50bc5b7145dbc call \
 --prometheusurl string firing-alerts
func (m *MyModule) Example(ctx context.Context, prometheusurl string) string  {
	return dag.
			Prometheus(prometheusurl).
			FiringAlerts(ctx)
}
@function
async def example(prometheusurl: str) -> str:
	return await (
		dag.prometheus(prometheusurl)
		.firing_alerts()
	)
@func()
async example(prometheusurl: string): Promise<string> {
	return dag
		.prometheus(prometheusurl)
		.firingAlerts()
}

targets() 🔗

Targets queries the /api/v1/targets endpoint to list all targets.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
bearerSecret -No description provided
Example
dagger -m github.com/EladAviczer/daggerverse/prometheus@30f61187ccc72f9d44cbb4cb43c50bc5b7145dbc call \
 --prometheusurl string targets
func (m *MyModule) Example(ctx context.Context, prometheusurl string) string  {
	return dag.
			Prometheus(prometheusurl).
			Targets(ctx)
}
@function
async def example(prometheusurl: str) -> str:
	return await (
		dag.prometheus(prometheusurl)
		.targets()
	)
@func()
async example(prometheusurl: string): Promise<string> {
	return dag
		.prometheus(prometheusurl)
		.targets()
}

rules() 🔗

Rules queries the /api/v1/rules endpoint to list all alerting and recording rules.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
bearerSecret -No description provided
Example
dagger -m github.com/EladAviczer/daggerverse/prometheus@30f61187ccc72f9d44cbb4cb43c50bc5b7145dbc call \
 --prometheusurl string rules
func (m *MyModule) Example(ctx context.Context, prometheusurl string) string  {
	return dag.
			Prometheus(prometheusurl).
			Rules(ctx)
}
@function
async def example(prometheusurl: str) -> str:
	return await (
		dag.prometheus(prometheusurl)
		.rules()
	)
@func()
async example(prometheusurl: string): Promise<string> {
	return dag
		.prometheus(prometheusurl)
		.rules()
}