forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- v1.8.0-alpha.3
- v1.8.0-alpha.2
- v1.8.0-alpha.1
- v1.8.0-alpha.0
- v1.7.5-beta.0
- v1.7.4
- v1.7.4-beta.0
- v1.7.3
- v1.7.3-beta.0
- v1.7.2
- v1.7.2-beta.0
- v1.7.1
- v1.7.1-beta.0
- v1.7.0
- v1.7.0-rc.1
- v1.7.0-beta.3
- v1.7.0-beta.2
- v1.7.0-beta.1
- v1.7.0-beta.0
- v1.7.0-alpha.4
- v1.7.0-alpha.3
- v1.7.0-alpha.2
- v1.7.0-alpha.1
- v1.7.0-alpha.0
- v1.6.10-beta.0
- v1.6.9
- v1.6.9-beta.0
- v1.6.8
- v1.6.8-beta.0
- v1.6.7
- v1.6.7-beta.0
- v1.6.6
- v1.6.6-beta.0
- v1.6.5
- v1.6.5-beta.0
- v1.6.4
- v1.6.4-beta.1
- v1.6.4-beta.0
- v1.6.3
- v1.6.3-beta.1
- v1.6.3-beta.0
- v1.6.2
- v1.6.2-beta.0
- v1.6.1
- v1.6.1-beta.0
- v1.6.0
- v1.6.0-rc.1
- v1.6.0-beta.4
- v1.6.0-beta.3
- v1.6.0-beta.2
- v1.6.0-beta.1
- v1.6.0-beta.0
- v1.6.0-alpha.3
- v1.6.0-alpha.2
- v1.6.0-alpha.1
Oguz Pastirmaci
committed
Jan 6, 2017
1 parent
25e8360
commit be838e0
Showing
5 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Microsoft Operations Management Suite (OMS) Container Monitoring Example | ||
|
||
The [Microsoft Operations Management Suite (OMS)](https://www.microsoft.com/en-us/cloud-platform/operations-management-suite) is a software-as-a-service offering from Microsoft that allows Enterprise IT to manage any hybrid cloud. | ||
|
||
This example will create a DeamonSet to deploy the OMS Linux agents running as containers to every node in the Kubernetes cluster. | ||
|
||
### Supported Linux Operating Systems & Docker | ||
- Docker 1.10 thru 1.12.1 | ||
|
||
- An x64 version of the following: | ||
- Ubuntu 14.04 LTS, 16.04 LTS | ||
- CoreOS (stable) | ||
- Amazon Linux 2016.09.0 | ||
- openSUSE 13.2 | ||
- CentOS 7 | ||
- SLES 12 | ||
- RHEL 7.2 | ||
|
||
## Step 1 | ||
|
||
If you already have a Microsoft Azure account, you can quickly create a free OMS account by following the steps [here](https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-get-started#sign-up-quickly-using-microsoft-azure). | ||
|
||
If you don't have a Microsoft Azure account, you can create a free OMS account by following the guide [here](https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-get-started#sign-up-in-3-steps-using-oms). | ||
|
||
## Step 2 | ||
|
||
You will need to edit the [omsagent-daemonset.yaml](./omsagent-daemonset.yaml) file to add your Workspace ID and Primary Key of your OMS account. | ||
|
||
``` | ||
- env: | ||
- name: WSID | ||
value: <your workspace ID> | ||
- name: KEY | ||
value: <your key> | ||
``` | ||
|
||
The Workspace ID and Primary Key can be found inside the OMS Portal under Settings in the connected sources tab (see below screenshot). | ||
![connected-resources](./images/connected-resources.png) | ||
|
||
## Step 3 | ||
|
||
Run the following command to deploy the OMS agent to your Kubernetes nodes: | ||
|
||
``` | ||
kubectl -f omsagent-daemonset.yaml | ||
``` | ||
|
||
## Step 4 | ||
|
||
Add the Container solution to your OMS workspace: | ||
|
||
1. Log in to the OMS portal. | ||
2. Click the Solutions Gallery tile. | ||
3. On the OMS Solutions Gallery page, click on Containers. | ||
4. On the page for the Containers solution, detailed information about the solution is displayed. Click Add. | ||
|
||
A new tile for the Container solution that you added appears on the Overview page in OMS. It would take 5 minutes for your data to appear in OMS. | ||
|
||
![oms-portal](./images/oms-portal.png) | ||
|
||
![coms-container-solution](./images/oms-container-solution.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: DaemonSet | ||
metadata: | ||
name: omsagent | ||
spec: | ||
template: | ||
metadata: | ||
labels: | ||
app: omsagent | ||
spec: | ||
containers: | ||
- env: | ||
- name: WSID | ||
value: <your workspace ID> | ||
- name: KEY | ||
value: <your key> | ||
image: microsoft/oms | ||
name: omsagent | ||
ports: | ||
- containerPort: 25225 | ||
protocol: TCP | ||
securityContext: | ||
privileged: true | ||
volumeMounts: | ||
- mountPath: /var/run/docker.sock | ||
name: docker-sock | ||
volumes: | ||
- name: docker-sock | ||
hostPath: | ||
path: /var/run/docker.sock |