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

4.4.0 • Public • Published

@kubernetes-models/prometheus-operator

Prometheus operator models.

Installation

Install with npm.

npm install @kubernetes-models/prometheus-operator

Usage

import { ServiceMonitor } from "@kubernetes-models/prometheus-operator/monitoring.coreos.com/v1/ServiceMonitor";

const monitor = new ServiceMonitor({
  metadata: {
    name: "my-service-monitor"
  },
  spec: {
    selector: {
      matchLabels: {
        app: "some-app"
      }
    },
    endpoints: [
      {
        port: web
      }
    ]
  }
});

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

License

MIT

Package Sidebar

Install

npm i @kubernetes-models/prometheus-operator

Weekly Downloads

285

Version

4.4.0

License

MIT

Unpacked Size

2.71 MB

Total Files

65

Last publish

Collaborators

  • tommy351