@kubernetes-models/grafana-agent-operator
TypeScript icon, indicating that this package has built-in type declarations

2.2.3 • Public • Published

@kubernetes-models/grafana-agent-operator

Grafana agent operator models.

Installation

Install with npm.

npm install @kubernetes-models/grafana-agent-operator

Usage

import { GrafanaAgent } from "@kubernetes-models/grafana-agent-operator/monitoring.grafana.com/v1alpha1/GrafanaAgent";

// Create a new GrafanaAgent
const agent = new GrafanaAgent({
  metadata: { name: "grafana-agent" },
  spec: {
    image: "grafana/agent:v0.21.2",
    logLevel: "info",
    metrics: {
      instanceSelector: {
        matchLabels: {
          agent: "grafana-agent-metrics"
        }
      }
    }
  }
});

// Validate against JSON schema
agent.validate();

License

See LICENSE

Dependents (1)

Package Sidebar

Install

npm i @kubernetes-models/grafana-agent-operator

Weekly Downloads

1,725

Version

2.2.3

License

MIT

Unpacked Size

1.73 MB

Total Files

42

Last publish

Collaborators

  • tommy351