Skip to content
Snippets Groups Projects
Select Git revision
16 results Searching

prometheus-frontend-svc.yaml

Blame
    • eedugon's avatar
      3238ba25
      small changes in k8s/minikube and example-app (#392) · 3238ba25
      eedugon authored
      * namespace has to be kube-system
      
      In order for this service to be discovered by ServiceMonitor k8s-apps-http, it should belong to namespace kube-system.
      
      * namespace has to be kube-system
      
      * namespace has to be kube-system
      
      for service discovery to work within prometheus configuration (ServiceMonitor k8s-app) these service and endpoints should belong to kube-system namespace. Otherwise the service monitor won't fetch it.
      
      * selector was incorrect
      
      selector prometheus: prometheus-frontend is incorrect, the name of the Prometheus resource in the example is "frontend", not "prometheus-frontend"
      3238ba25
      History
      small changes in k8s/minikube and example-app (#392)
      eedugon authored
      * namespace has to be kube-system
      
      In order for this service to be discovered by ServiceMonitor k8s-apps-http, it should belong to namespace kube-system.
      
      * namespace has to be kube-system
      
      * namespace has to be kube-system
      
      for service discovery to work within prometheus configuration (ServiceMonitor k8s-app) these service and endpoints should belong to kube-system namespace. Otherwise the service monitor won't fetch it.
      
      * selector was incorrect
      
      selector prometheus: prometheus-frontend is incorrect, the name of the Prometheus resource in the example is "frontend", not "prometheus-frontend"
    streams.spec.ts 315 B
    import { Readable } from 'stream';
    import { streamToString } from './streams';
    
    describe('util/streams', () => {
      describe('streamToString', () => {
        it('handles Readables', async () => {
          const res = await streamToString(Readable.from(['abc', 'zxc']));
          expect(res).toBe('abczxc');
        });
      });
    });