prometheus-agnet
This module has been generated via dagger init and serves as a reference tobasic module structure as you get started with Dagger.
Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.
The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.
Installation
dagger install github.com/EladAviczer/daggerverse/prometheus-agent@30f61187ccc72f9d44cbb4cb43c50bc5b7145dbc
Entrypoint
Return Type
PrometheusAgnet
Example
dagger -m github.com/EladAviczer/daggerverse/prometheus-agent@30f61187ccc72f9d44cbb4cb43c50bc5b7145dbc call \
func (m *MyModule) Example() *dagger.PrometheusAgnet {
return dag.
PrometheusAgnet()
}
@function
def example() -> dagger.PrometheusAgnet:
return (
dag.prometheus_agnet()
)
@func()
example(): PrometheusAgnet {
return dag
.prometheusAgnet()
}
Types
PrometheusAgnet 🔗
ask() 🔗
Ask queries the Prometheus server with a natural language question.
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
server | String ! | - | the prometheus server URL to use |
question | String ! | - | the natural language question to ask about the prometheus server |
Example
dagger -m github.com/EladAviczer/daggerverse/prometheus-agent@30f61187ccc72f9d44cbb4cb43c50bc5b7145dbc call \
ask --server string --question string
func (m *MyModule) Example(ctx context.Context, server string, question string) string {
return dag.
PrometheusAgnet().
Ask(ctx, server, question)
}
@function
async def example(server: str, question: str) -> str:
return await (
dag.prometheus_agnet()
.ask(server, question)
)
@func()
async example(server: string, question: string): Promise<string> {
return dag
.prometheusAgnet()
.ask(server, question)
}