Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse index for ServiceMonitor to Prometheus #47

Merged
merged 1 commit into from Jul 20, 2017

Conversation

Projects
None yet
2 participants
@sadlil
Copy link
Contributor

commented Jul 20, 2017

// http://localhost:8081/apis/monitoring.coreos.com/v1alpha1/namespaces/default/servicemonitors/example-app/prometheuses

{
  "metadata": {
    
  },
  "items": [
    {
      "kind": "Prometheus",
      "apiVersion": "monitoring.coreos.com/v1alpha1",
      "metadata": {
        "name": "prometheus",
        "namespace": "default",
        "selfLink": "/apis/monitoring.coreos.com/v1alpha1/namespaces/default/prometheuses/prometheus",
        "uid": "d8b91861-6d39-11e7-b25b-0800276cdbf9",
        "resourceVersion": "3412",
        "creationTimestamp": "2017-07-20T10:54:47Z"
      },
      "spec": {
        "serviceMonitorSelector": {
          "matchLabels": {
            "team": "frontend"
          }
        },
        "version": "v1.7.0",
        "alerting": {
          "alertmanagers": null
        },
        "resources": {
          "requests": {
            "memory": "400Mi"
          }
        }
      }
    }
  ]
}

@sadlil sadlil added the enhancement label Jul 20, 2017

@sadlil sadlil added this to the 0.1.0 milestone Jul 20, 2017

@sadlil sadlil self-assigned this Jul 20, 2017

@sadlil sadlil requested a review from tamalsaha Jul 20, 2017

@tamalsaha tamalsaha merged commit 680eba6 into master Jul 20, 2017

@tamalsaha tamalsaha deleted the prometheus-index branch Jul 20, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.