Ad Widget

Collapse

Zabbix API for Monitoring Docker/K8S Runtime without zabbix_sender/zabbix_agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cccdemon
    Junior Member
    • Apr 2018
    • 2

    #1

    Zabbix API for Monitoring Docker/K8S Runtime without zabbix_sender/zabbix_agent

    Hi there,

    is there a way to send Events via Zabbix API?
    What we want is to Send Values thru the API, like zabbix_sender does.

    For Example: A PHP Job (without shell/exec stuff) should report his status to Zabbix. How we are able to do that?

    Why is the API not able to do that?

    (Zabbix 3.4, Large Docker Swarm Setup, next step k8s in GKE)
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    No, there is no API. API is based on "slow" PHP frontend, so performance will poor and overhead will be high if data ingestion will be part of the API.

    But you can use trapper item https://www.zabbix.com/documentation.../items/trapper.
    Also new HTTP agent item type (in trapper mode) in unreleased Zabbix 4 can be useful for your case - https://www.zabbix.com/documentation...itemtypes/http.
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    • cccdemon
      Junior Member
      • Apr 2018
      • 2

      #3
      Hey jan.garaj thanks for your answer. The new Zabbix 4.0 HTTP Agent Item Type is exactly what we want. Thanks for that.

      So for now we have to find a workaround with Zabbix_Sender and implement this in our Docker Images.

      I am fine with that


      Comment

      • jan.garaj
        Senior Member
        Zabbix Certified Specialist
        • Jan 2010
        • 506

        #4
        Originally posted by austinshenoy
        "Hello everyone. This is my first post :-D Have any of you guys ever had to monitor with zabbix, docker containers that are created via kubernetes ? My kubernetes master & pods ( minions ) live in AWS and also all docker containers are spawned on pod ( minion ) nodes via kubernetes master and I'm in great need of a solution to monitor docker containers (OS metrics for now). I know docker are LXC at base and that they actually use the same resources as the pod (minion) nodes . I have searched on google a lot but I cannot find something automated and straight forward to do it."
        https://github.com/monitoringartist/...ker-monitoring has been design also for LXC containers (but as I know no modern Docker uses LXC execution driver, so you don't have LXC containers). Please use lightly tested devel branch https://github.com/monitoringartist/...ing/tree/devel for monitoring of Kubernetes containers (K8S use some special cgroup configuration, which is available only in devel branch for now).
        Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
        My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

        Comment

        Working...